MTU-tests: Makefile detect if TC have libbpf

Only strip BTF info when TC don't have libbpf support.

Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
This commit is contained in:
Jesper Dangaard Brouer
2021-01-08 18:07:41 +01:00
parent 175fb4ad6c
commit ae7b0948f9

View File

@@ -8,7 +8,8 @@ LIB_DIR = ../lib
include $(LIB_DIR)/common.mk
# The iproute2 'tc' tool doesn't understand BTF debug info
ifndef HAVE_TC_LIBBPF
# If the iproute2 'tc' tool doesn't understand BTF debug info
# use llvm-strip to remove this debug info from object file
#
# *BUT* cannot strip everything as it removes ELF elems needed for
@@ -19,3 +20,4 @@ strip_tc_obj: tc_bpf_inc_pkt_size.o
$(Q) llvm-strip --no-strip-all --remove-section .BTF $?
all: strip_tc_obj
endif