update busybox config
[openwrt.git] / obsolete-buildroot / make / iproute2.mk
1 #############################################################
2 #
3 # iproute2
4 #
5 #############################################################
6 IPROUTE2_DIR=$(BUILD_DIR)/iproute2
7
8 #IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/
9 #IPROUTE2_SOURCE=iproute2-2.4.7-now-ss020116-try.tar.gz
10
11 #Use the debian source for now, as the .ru site has availability problems
12 IPROUTE2_SOURCE_URL=http://ftp.debian.org/debian/pool/main/i/iproute/
13 IPROUTE2_SOURCE=iproute_20010824.orig.tar.gz
14 IPROUTE2_PATCH:=iproute_20010824-8.diff.gz
15
16
17 $(DL_DIR)/$(IPROUTE2_SOURCE):
18 $(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)$(IPROUTE2_SOURCE)
19
20 $(DL_DIR)/$(IPROUTE2_PATCH):
21 $(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)/$(IPROUTE2_PATCH)
22
23 iproute2-source: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
24
25 $(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
26 rm -rf $(IPROUTE2_DIR).orig $(IPROUTE2_DIR)
27 zcat $(DL_DIR)/$(IPROUTE2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
28 #zcat $(DL_DIR)/$(IPROUTE2_PATCH) | patch -p1 -d $(IPROUTE2_DIR)
29 touch $(IPROUTE2_DIR)/.unpacked
30
31 $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
32 $(SED) "s,-I/usr/include/db3,," $(IPROUTE2_DIR)/Makefile
33 $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
34 $(IPROUTE2_DIR)/Makefile
35 $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
36 $(IPROUTE2_DIR)/Makefile
37 # For now disable compiling of the misc directory because it seems to fail
38 rm -rf $(IPROUTE2_DIR)/misc
39 $(SED) "s, misc,," $(IPROUTE2_DIR)/Makefile
40 touch $(IPROUTE2_DIR)/.configured
41
42 $(IPROUTE2_DIR)/tc/tc: $(IPROUTE2_DIR)/.configured
43 $(MAKE) -C $(IPROUTE2_DIR) KERNEL_INCLUDE=$(LINUX_SOURCE_DIR)/include CC=$(TARGET_CC) AR=$(TARGET_AR)
44
45 $(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc
46 # Copy The tc binary
47 cp -af $(IPROUTE2_DIR)/tc/tc $(TARGET_DIR)/usr/sbin/
48
49 iproute2: $(TARGET_DIR)/usr/sbin/tc
50
51 iproute2-clean:
52 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPROUTE2_DIR) uninstall
53 -$(MAKE) -C $(IPROUTE2_DIR) clean
54
55 iproute2-dirclean:
56 rm -rf $(IPROUTE2_DIR)
57
This page took 0.056461 seconds and 5 git commands to generate.