From 93e26066df4ae40b648ff57b31407d228efd0187 Mon Sep 17 00:00:00 2001 From: Fedor Date: Wed, 24 Nov 2010 14:42:35 -0500 Subject: [PATCH] Build: iproute2: fix path to the kernel headers --- release/src/router/Makefile | 8 ++++++-- release/src/router/iproute2/Makefile | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/release/src/router/Makefile b/release/src/router/Makefile index 3b864ce5c6..381a442a95 100644 --- a/release/src/router/Makefile +++ b/release/src/router/Makefile @@ -167,7 +167,7 @@ lzma-loader-install: lzma-loader kmod: dummy - $(MAKE) -C $(LINUXDIR) modules + $(MAKE) -C $(LINUXDIR) modules CC=$(KERNELCC) testfind: cd $(TARGETDIR)/lib/modules/* && find -name "*.o" -exec mv -i {} . \; || true @@ -915,7 +915,11 @@ libbcm-install: $(STRIP) $(INSTALLDIR)/libbcm/usr/lib/libbcm.so -iproute2-install: +iproute2: + @$(SEP) + @$(MAKE) -C $@ KERNEL_INCLUDE=$(LINUXDIR)/include EXTRACFLAGS="$(EXTRACFLAGS)" + +iproute2-install: iproute2 install -D iproute2/tc/tc $(INSTALLDIR)/iproute2/usr/sbin/tc $(STRIP) $(INSTALLDIR)/iproute2/usr/sbin/tc install -D iproute2/ip/ip $(INSTALLDIR)/iproute2/usr/sbin/ip diff --git a/release/src/router/iproute2/Makefile b/release/src/router/iproute2/Makefile index 464b9a94fe..048655c7ab 100644 --- a/release/src/router/iproute2/Makefile +++ b/release/src/router/iproute2/Makefile @@ -22,7 +22,7 @@ ADDLIB+=ipx_ntop.o ipx_pton.o CC = $(CROSS_COMPILE)gcc HOSTCC = gcc CCOPTS = -D_GNU_SOURCE -Os -Wstrict-prototypes -Wall #-mips32 -CFLAGS = $(CCOPTS) $(EXTRACFLAGS) -I../include $(DEFINES) +CFLAGS = $(CCOPTS) $(EXTRACFLAGS) -isystem $(KERNEL_INCLUDE) -I../include $(DEFINES) YACCFLAGS = -d -t -v LDLIBS += -L../lib -lnetlink -lutil -- 2.11.4.GIT