disable jpeg and xpm explicitly
[openwrt.git] / obsolete-buildroot / make / iproute2.mk
index e7210b6..94bed41 100644 (file)
@@ -5,6 +5,8 @@
 #############################################################
 
 IPROUTE2_DIR=$(BUILD_DIR)/iproute2
+IP_IPK_DIR=$(BUILD_DIR)/ip-2.0-ipk
+TC_IPK_DIR=$(BUILD_DIR)/tc-2.0-ipk
 
 #IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/
 #IPROUTE2_SOURCE=iproute2-2.4.7-now-ss020116-try.tar.gz
@@ -13,7 +15,8 @@ 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
+IPROUTE2_PATCH_2:=iproute2-*.patch
+
 
 $(DL_DIR)/$(IPROUTE2_SOURCE):
         $(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)$(IPROUTE2_SOURCE)
@@ -21,13 +24,14 @@ $(DL_DIR)/$(IPROUTE2_SOURCE):
 $(DL_DIR)/$(IPROUTE2_PATCH):
        $(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)/$(IPROUTE2_PATCH)
 
+
 iproute2-source: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
 
 $(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
        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)
+       $(SOURCE_DIR)/patch-kernel.sh $(IPROUTE2_DIR) $(SOURCE_DIR) $(IPROUTE2_PATCH_2)
        # fun sed hacks.
        $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(IPROUTE2_DIR)/Makefile
 ifeq ($(ARCH),i386)
@@ -64,4 +68,19 @@ iproute2-clean:
        -$(MAKE) -C $(IPROUTE2_DIR) clean
 
 iproute2-dirclean:
-       rm -rf $(IPROUTE2_DIR)
+       rm -rf $(IPROUTE2_DIR) $(IP_IPK_DIR) $(TC_IPK_DIR)
+       
+
+iproute2-ipk:  $(IPROUTE2_DIR)/tc/tc
+       mkdir -p $(IP_IPK_DIR)
+       mkdir -p $(TC_IPK_DIR)
+       cp -a $(OPENWRT_IPK_DIR)/iproute/ip/CONTROL $(IP_IPK_DIR)/CONTROL
+       cp -a $(OPENWRT_IPK_DIR)/iproute/tc/CONTROL $(TC_IPK_DIR)/CONTROL
+       mkdir -p $(IP_IPK_DIR)/usr/sbin
+       mkdir -p $(TC_IPK_DIR)/usr/sbin
+       install -m 755 $(IPROUTE2_DIR)/ip/ip $(IP_IPK_DIR)/usr/sbin/
+       install -m 755 $(IPROUTE2_DIR)/tc/tc $(TC_IPK_DIR)/usr/sbin/
+       $(STRIP) $(IP_IPK_DIR)/usr/sbin/ip
+       $(STRIP) $(TC_IPK_DIR)/usr/sbin/tc
+       cd $(BUILD_DIR); $(IPKG_BUILD) $(IP_IPK_DIR)
+       cd $(BUILD_DIR); $(IPKG_BUILD) $(TC_IPK_DIR)
This page took 0.02427 seconds and 4 git commands to generate.