]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Restore $(OUTPUT)/test_stub.o rule
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 28 Oct 2019 10:21:10 +0000 (11:21 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Oct 2019 15:16:10 +0000 (16:16 +0100)
commitc7eb5ec6e9cc46b6be8211fafa3428f6f3ebd07c
treee395f92b6a29274e38747854d44859eb424642ee
parent8edffa2d6f73a3739f0b397d0e90676f4ffbcf18
selftests/bpf: Restore $(OUTPUT)/test_stub.o rule

`make O=/linux-build kselftest TARGETS=bpf` fails with

make[3]: *** No rule to make target '/linux-build/bpf/test_stub.o', needed by '/linux-build/bpf/test_verifier'

The same command without the O= part works, presumably thanks to the
implicit rule.

Fix by restoring the explicit $(OUTPUT)/test_stub.o rule.

Fixes: 5ff9b45984d3 ("selftests/bpf: Replace test_progs and test_maps w/ general rule")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191028102110.7545-1-iii@linux.ibm.com
tools/testing/selftests/bpf/Makefile