]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: tests.h should depend on .c files, not the output
authorStanislav Fomichev <sdf@google.com>
Tue, 2 Apr 2019 17:08:32 +0000 (10:08 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Apr 2019 21:17:18 +0000 (23:17 +0200)
commit1d13a488694378710c70be3eaa445d7f187156a0
tree6fe36cab6b66bfa4f5545ded26e03b3aa1b437d7
parentf99e7593d2242a93ea4ad313646085175bd7371f
selftests: bpf: tests.h should depend on .c files, not the output

This makes sure we don't put headers as input files when doing
compilation, because clang complains about the following:

clang-9: error: cannot specify -o when generating multiple output files
../lib.mk:152: recipe for target 'xxx/tools/testing/selftests/bpf/test_verifier' failed
make: *** [xxx/tools/testing/selftests/bpf/test_verifier] Error 1
make: *** Waiting for unfinished jobs....
clang-9: error: cannot specify -o when generating multiple output files
../lib.mk:152: recipe for target 'xxx/tools/testing/selftests/bpf/test_progs' failed

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile