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)
commit61098e89e6c80d6a141774ef8ee41e38471b069e
treedbed6e52ba69d51e12b9ecc53770a9b70874ab5d
parent943e398dd36c2f50ab5828e6ce502a16d4bad4db
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