mirror of
				https://github.com/xdp-project/bpf-examples.git
				synced 2024-05-06 15:54:53 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			18 lines
		
	
	
		
			391 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			391 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
 | 
						|
.PHONY: strip_tc_obj
 | 
						|
strip_tc_obj: tc_bpf_inc_pkt_size.o
 | 
						|
	$(Q) llvm-strip $?
 | 
						|
 | 
						|
all: strip_tc_obj
 |