selftests/bpf: Fix dependency ordering for attach_probe test
authorAndrii Nakryiko <andriin@fb.com>
Mon, 7 Oct 2019 20:41:49 +0000 (13:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 7 Oct 2019 20:47:04 +0000 (13:47 -0700)
commitdcb5f40054b1c64ed608a7eecdcf67044e189e30
treeec024e9439b71c7786de6cfccd5c186fca25d189
parent05949f63055fcf53947886ddb8e23c8a5d41bd80
selftests/bpf: Fix dependency ordering for attach_probe test

Current Makefile dependency chain is not strict enough and allows
test_attach_probe.o to be built before test_progs's
prog_test/attach_probe.o is built, which leads to assembler complaining
about missing included binary.

This patch is a minimal fix to fix this issue by enforcing that
test_attach_probe.o (BPF object file) is built before
prog_tests/attach_probe.c is attempted to be compiled.

Fixes: 928ca75e59d7 ("selftests/bpf: switch tests to new bpf_object__open_{file, mem}() APIs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191007204149.1575990-1-andriin@fb.com
tools/testing/selftests/bpf/Makefile