3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=2.6.11-050330
8 PKG_MD5SUM
:=e705f26b5ae93e0332e46a3ff15d934
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
,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
)/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_IPROUTE2_IP
)/usr
/sbin
39 cp
$(PKG_BUILD_DIR
)/ip
/ip
$(IDIR_IPROUTE2_IP
)/usr
/sbin
/
40 $(STRIP
) $(IDIR_IPROUTE2_IP
)/usr
/sbin
/*
41 $(IPKG_BUILD
) $(IDIR_IPROUTE2_IP
) $(PACKAGE_DIR
)
44 mkdir
-p
$(IDIR_IPROUTE2_TC
)/usr
/sbin
45 cp
$(PKG_BUILD_DIR
)/tc
/tc
$(IDIR_IPROUTE2_TC
)/usr
/sbin
/
46 $(STRIP
) $(IDIR_IPROUTE2_TC
)/usr
/sbin
/*
47 $(IPKG_BUILD
) $(IDIR_IPROUTE2_TC
) $(PACKAGE_DIR
)