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)
commite93d99180abdaaa362bb02427a84266cd61bfd30
treee395f92b6a29274e38747854d44859eb424642ee
parent313e7f6fb1d9a8814424c2c6878848648c9c090f
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: 74b5a5968fe8 ("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