diff options
author | solar <solar@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-06-04 02:02:29 +0000 |
---|---|---|
committer | solar <solar@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-06-04 02:02:29 +0000 |
commit | e9c5f7b914cd9504837dc785b076e1f17aaf644a (patch) | |
tree | d4c10c56dbd2243518fca4d4f2a4ea2c76eb3d32 | |
parent | 326f4b5320ff49fe29f30e2e6e481580bd2c0d0b (diff) |
working iproute2. tested with mipsel i386
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@58 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | obsolete-buildroot/make/iproute2.mk | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/obsolete-buildroot/make/iproute2.mk b/obsolete-buildroot/make/iproute2.mk index 7a33034b62..e7210b6cab 100644 --- a/obsolete-buildroot/make/iproute2.mk +++ b/obsolete-buildroot/make/iproute2.mk @@ -3,6 +3,7 @@ # iproute2 # ############################################################# + IPROUTE2_DIR=$(BUILD_DIR)/iproute2 #IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/ @@ -12,7 +13,7 @@ IPROUTE2_DIR=$(BUILD_DIR)/iproute2 IPROUTE2_SOURCE_URL=http://ftp.debian.org/debian/pool/main/i/iproute/ IPROUTE2_SOURCE=iproute_20010824.orig.tar.gz IPROUTE2_PATCH:=iproute_20010824-8.diff.gz - +IPROUTE2_PATCH_2:=iproute2-cross-ar-20010824.patch $(DL_DIR)/$(IPROUTE2_SOURCE): $(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)$(IPROUTE2_SOURCE) @@ -26,6 +27,13 @@ $(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PA rm -rf $(IPROUTE2_DIR).orig $(IPROUTE2_DIR) zcat $(DL_DIR)/$(IPROUTE2_SOURCE) | tar -C $(BUILD_DIR) -xvf - #zcat $(DL_DIR)/$(IPROUTE2_PATCH) | patch -p1 -d $(IPROUTE2_DIR) + cat $(SOURCE_DIR)/$(IPROUTE2_PATCH_2) | patch -p1 -d $(IPROUTE2_DIR) + # fun sed hacks. + $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(IPROUTE2_DIR)/Makefile +ifeq ($(ARCH),i386) + @# needed on atleast i386.. however breaks on mipsel + $(SED) 's:-I\.\./include-glibc::g' $(IPROUTE2_DIR)/Makefile +endif touch $(IPROUTE2_DIR)/.unpacked $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked @@ -40,13 +48,16 @@ $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked touch $(IPROUTE2_DIR)/.configured $(IPROUTE2_DIR)/tc/tc: $(IPROUTE2_DIR)/.configured - $(MAKE) -C $(IPROUTE2_DIR) KERNEL_INCLUDE=$(LINUX_SOURCE_DIR)/include CC=$(TARGET_CC) AR=$(TARGET_AR) + $(MAKE) -C $(IPROUTE2_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include $(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc - # Copy The tc binary - cp -af $(IPROUTE2_DIR)/tc/tc $(TARGET_DIR)/usr/sbin/ + @# Make sure our $(TARGET_DIR)/usr/sbin/ exists. + -mkdir -p $(TARGET_DIR)/usr/sbin/ + @# Copy The tc binary + cp -af $(IPROUTE2_DIR)/tc/tc $(TARGET_DIR)/usr/sbin/ && \ + $(STRIP) $(TARGET_DIR)/usr/sbin/tc -iproute2: $(TARGET_DIR)/usr/sbin/tc +iproute2: $(TARGET_DIR)/usr/sbin/tc iproute2-clean: $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPROUTE2_DIR) uninstall @@ -54,4 +65,3 @@ iproute2-clean: iproute2-dirclean: rm -rf $(IPROUTE2_DIR) - |