]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: prevent headers to be compiled as C code
authorAndrii Nakryiko <andriin@fb.com>
Sun, 28 Jul 2019 03:25:23 +0000 (20:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 28 Jul 2019 05:36:19 +0000 (22:36 -0700)
commitec8a1d12db42d9ca42a12cb416ccd070cbf9c337
treedbed6e52ba69d51e12b9ecc53770a9b70874ab5d
parent8325effc2fade62c8869ab66cf07506936008d25
selftests/bpf: prevent headers to be compiled as C code

Apprently listing header as a normal dependency for a binary output
makes it go through compilation as if it was C code. This currently
works without a problem, but in subsequent commits causes problems for
differently generated test.h for test_progs. Marking those headers as
order-only dependency solves the issue.

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