MTU-tests: iproute2 'tc' tool doesn't understand BTF debug info

It still works when loading, but results in a huge warning
which is really annoying.

Add a Makefile hack to strip the object file.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2020-10-13 15:33:31 +02:00
parent 5f3898ca61
commit 4f8b36e569

View File

@@ -7,3 +7,11 @@ EXTRA_DEPS := encap.h
LIB_DIR = ../lib
include $(LIB_DIR)/common.mk
# The iproute2 'tc' tool doesn't understand BTF debug info
# use llvm-strip to remove this debug info from object file
.PHONY: strip_tc_obj
strip_tc_obj: tc_bpf_inc_pkt_size.o
$(Q) llvm-strip $?
all: strip_tc_obj