diff options
| author | Ilya Leoshkevich <[email protected]> | 2023-02-08 23:12:11 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-02-13 17:14:50 +0000 |
| commit | 0b0757244754ea1d0721195c824770f5576e119e (patch) | |
| tree | 8a250e0d5a2cf21839619bb3ce8c389d2d6d6ecc /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahol... (diff) | |
| download | kernel-0b0757244754ea1d0721195c824770f5576e119e.tar.gz kernel-0b0757244754ea1d0721195c824770f5576e119e.zip | |
selftests/bpf: Fix out-of-srctree build
Building BPF selftests out of srctree fails with:
make: *** No rule to make target '/linux-build//ima_setup.sh', needed by 'ima_setup.sh'. Stop.
The culprit is the rule that defines convenient shorthands like
"make test_progs", which builds $(OUTPUT)/test_progs. These shorthands
make sense only for binaries that are built though; scripts that live
in the source tree do not end up in $(OUTPUT).
Therefore drop $(TEST_PROGS) and $(TEST_PROGS_EXTENDED) from the rule.
The issue exists for a while, but it became a problem only after commit
d68ae4982cb7 ("selftests/bpf: Install all required files to run selftests"),
which added dependencies on these scripts.
Fixes: 03dcb78460c2 ("selftests/bpf: Add simple per-test targets to Makefile")
Signed-off-by: Ilya Leoshkevich <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions
