aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn@rivosinc.com>2023-07-05 13:39:26 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2023-07-05 14:34:33 +0200
commit21be9e477fd2e0b39b5180db6793a1ffeb84d504 (patch)
tree72ded11ca19c2846d2f5d8a44fba0909238452ba /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentce1f289f541e34f5ae235cb66a5c130436f327f1 (diff)
selftests/bpf: Honor $(O) when figuring out paths
When building the kselftests out-of-tree, e.g. ... | make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \ | O=/tmp/kselftest headers | make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \ | O=/tmp/kselftest HOSTCC=gcc FORMAT= \ | SKIP_TARGETS="arm64 ia64 powerpc sparc64 x86 sgx" \ | -C tools/testing/selftests gen_tar ... the kselftest build would not pick up the correct GENDIR path, and therefore not including autoconf.h. Correct that by taking $(O) into consideration when figuring out the GENDIR path. Signed-off-by: Björn Töpel <bjorn@rivosinc.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20230705113926.751791-3-bjorn@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions