--- a/ip/Makefile +++ b/ip/Makefile @@ -19,6 +19,13 @@ RTMONOBJ=rtmon.o include ../config.mk +STATIC_SYM_FILTER:= +ifeq ($(IP_CONFIG_TINY),y) + STATIC_SYM_FILTER:=iplink_can.c iplink_ipoib.c iplink_vxlan.c + CFLAGS += -DIPROUTE2_TINY +endif +STATIC_SYM_SOURCES:=$(filter-out $(STATIC_SYM_FILTER),$(wildcard *.c)) + ALLOBJ=$(IPOBJ) $(RTMONOBJ) SCRIPTS=routel TARGETS=ip rtmon @@ -48,7 +55,7 @@ else ip: static-syms.o static-syms.o: static-syms.h -static-syms.h: $(wildcard *.c) +static-syms.h: $(STATIC_SYM_SOURCES) files="$^" ; \ for s in `grep -B 3 '\