]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fix bpf build/test workflow regression when KBUILD_OUTPUT is set
authorShuah Khan <skhan@linuxfoundation.org>
Sat, 11 May 2019 01:38:39 +0000 (19:38 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 13 May 2019 16:19:43 +0000 (10:19 -0600)
commite136a23b1e6d0eb7c2427a187ce8f5c84aaeede8
treecb0a4b547ceadb81dc10c093fa706997b3803f22
parent57c26e388a335523ca21f64f1ff4a47b7990dec7
selftests: fix bpf build/test workflow regression when KBUILD_OUTPUT is set

commit 940245dcf8fa ("selftests: fix headers_install circular dependency")
broke bpf build/test workflow. When KBUILD_OUTPUT is set, bpf objects end
up in KBUILD_OUTPUT build directory instead of in ../selftests/bpf.

The following bpf workflow breaks when it can't find the test_verifier:

cd tools/testing/selftests/bpf; make; ./test_verifier;

Fix it to set OUTPUT only when it is undefined in lib.mk. It didn't need
to be set in the first place.

Fixes: 940245dcf8fa ("selftests: fix headers_install circular dependency")
Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/lib.mk