3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=2.6.15-060110
8 PKG_MD5SUM
:=04f57a6d366d36426d276178b600f5c5
10 PKG_SOURCE_URL
:=http
://developer.osdl.org
/dev
/iproute2
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/iproute2-
$(PKG_VERSION
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,IP
,ip
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(eval
$(call PKG_template
,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
)/netem HOSTCC
=$(HOSTCC
) CFLAGS
="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
34 $(MAKE
) -j1
-C
$(PKG_BUILD_DIR
) $(TARGET_CONFIGURE_OPTS
) KERNEL_INCLUDE
=$(LINUX_DIR
)/include all tc
/tc ip
/ip
38 mkdir
-p
$(IDIR_IP
)/usr
/sbin
39 $(CP
) $(PKG_BUILD_DIR
)/ip
/ip
$(IDIR_IP
)/usr
/sbin
/
40 $(STRIP
) $(IDIR_IP
)/usr
/sbin
/*
41 $(IPKG_BUILD
) $(IDIR_IP
) $(PACKAGE_DIR
)
44 mkdir
-p
$(IDIR_TC
)/usr
/sbin
45 $(CP
) $(PKG_BUILD_DIR
)/tc
/tc
$(IDIR_TC
)/usr
/sbin
/
46 $(STRIP
) $(IDIR_TC
)/usr
/sbin
/*
47 $(IPKG_BUILD
) $(IDIR_TC
) $(PACKAGE_DIR
)