diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2019-11-19 13:56:26 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-25 03:58:45 +0300 |
commit | a89b2cbf71d64b61e79bbe5cb7ff4664797eeaaf (patch) | |
tree | 3ce36bc3f89b98f8b62709d5b3df099db7d71850 /tools/spi | |
parent | a0f17cc6665c80ab2765f9244c41ec127821f343 (diff) | |
download | linux-a89b2cbf71d64b61e79bbe5cb7ff4664797eeaaf.tar.xz |
tools, bpf: Fix build for 'make -s tools/bpf O=<dir>'
Building selftests with 'make TARGETS=bpf kselftest' was fixed in commit
55d554f5d140 ("tools: bpf: Use !building_out_of_srctree to determine
srctree"). However, by updating $(srctree) in tools/bpf/Makefile for
in-tree builds only, we leave out the case where we pass an output
directory to build BPF tools, but $(srctree) is not set. This
typically happens for:
$ make -s tools/bpf O=/tmp/foo
Makefile:40: /tools/build/Makefile.feature: No such file or directory
Fix it by updating $(srctree) in the Makefile not only for out-of-tree
builds, but also if $(srctree) is empty.
Detected with test_bpftool_build.sh.
Fixes: 55d554f5d140 ("tools: bpf: Use !building_out_of_srctree to determine srctree")
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Link: https://lore.kernel.org/bpf/20191119105626.21453-1-quentin.monnet@netronome.com
Diffstat (limited to 'tools/spi')
0 files changed, 0 insertions, 0 deletions