]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Support out-of-tree vmlinux builds for VMLINUX_BTF
authorAndrii Nakryiko <andriin@fb.com>
Wed, 4 Mar 2020 18:43:36 +0000 (10:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 4 Mar 2020 20:00:05 +0000 (12:00 -0800)
commit0f7abbd02163d1e34c3716ce7df0e28656b3a8ed
tree24bb4d39df3788a10cae4429b58ecdff650c199a
parent814af903206855540eca2ed9f486a2a71730258e
selftests/bpf: Support out-of-tree vmlinux builds for VMLINUX_BTF

Add detection of out-of-tree built vmlinux image for the purpose of
VMLINUX_BTF detection. According to Documentation/kbuild/kbuild.rst, O takes
precedence over KBUILD_OUTPUT.

Also ensure ~/path/to/build/dir also works by relying on wildcard's resolution
first, but then applying $(abspath) at the end to also handle
O=../../whatever cases.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200304184336.165766-1-andriin@fb.com
tools/testing/selftests/bpf/Makefile