Files
xdp-project-bpf-examples/MTU-tests/Makefile
Jesper Dangaard Brouer 7c2badedd4 MTU-tests: Fix stripping object file from .BTF section
Shot myself in the foot with stripping ELF obj file.
This was the reason I could not load BPF program with TC.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2020-10-13 17:08:42 +02:00

22 lines
516 B
Makefile

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
USER_TARGETS :=
BPF_TARGETS := tc_bpf_inc_pkt_size
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
#
# *BUT* cannot strip everything as it removes ELF elems needed for
# creating maps
#
.PHONY: strip_tc_obj
strip_tc_obj: tc_bpf_inc_pkt_size.o
$(Q) llvm-strip --no-strip-all --remove-section .BTF $?
all: strip_tc_obj