3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4b3f335b0139cb909c6a2ae8bf72e548
10 PKG_SOURCE_URL
:=http
://developer.osdl.org
/dev
/iproute2
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-2.6.9-041019.
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/iproute2-2.6
.9
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,IPROUTE2_IP
,ip
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(eval
$(call PKG_template
,IPROUTE2_TC
,tc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 $(SED
) "s:-O2:${TARGET_CFLAGS}:g" $(PKG_BUILD_DIR
)/Makefile
22 $(SED
) "s,-I/usr/include/db3,," $(PKG_BUILD_DIR
)/Makefile
23 $(SED
) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
24 $(PKG_BUILD_DIR
)/Makefile
25 $(SED
) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
26 $(PKG_BUILD_DIR
)/Makefile
27 # For now disable compiling of the misc directory because it seems to fail
28 rm -rf
$(PKG_BUILD_DIR
)/misc
29 $(SED
) "s, misc,," $(PKG_BUILD_DIR
)/Makefile
32 $(PKG_BUILD_DIR
)/.built
:
33 $(MAKE
) -j1
-C
$(PKG_BUILD_DIR
) $(TARGET_CONFIGURE_OPTS
) KERNEL_INCLUDE
=$(LINUX_DIR
)/include all tc
/tc ip
/ip
37 mkdir
-p
$(IDIR_IPROUTE2_IP
)/usr
/sbin
38 cp
$(PKG_BUILD_DIR
)/ip
/ip
$(IDIR_IPROUTE2_IP
)/usr
/sbin
/
39 $(STRIP
) $(IDIR_IPROUTE2_IP
)/usr
/sbin
/*
40 $(IPKG_BUILD
) $(IDIR_IPROUTE2_IP
) $(PACKAGE_DIR
)
43 mkdir
-p
$(IDIR_IPROUTE2_TC
)/usr
/sbin
44 cp
$(PKG_BUILD_DIR
)/tc
/tc
$(IDIR_IPROUTE2_TC
)/usr
/sbin
/
45 $(STRIP
) $(IDIR_IPROUTE2_TC
)/usr
/sbin
/*
46 $(IPKG_BUILD
) $(IDIR_IPROUTE2_TC
) $(PACKAGE_DIR
)