mac80211: use mac address from platform data if present on ath9k
[openwrt.git] / package / iproute2 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iproute2
11 PKG_VERSION:=2.6.29-1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://devresources.linux-foundation.org/dev/iproute2/download/
16 PKG_MD5SUM:=c1bc258a6c345905e79935ac7a3cc582
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/iproute2-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/iproute2/Default
23 SECTION:=net
24 CATEGORY:=Network
25 URL:=http://linux-net.osdl.org/index.php/Iproute2
26 endef
27
28 define Package/ip
29 $(call Package/iproute2/Default)
30 TITLE:=Routing control utility
31 endef
32
33 define Package/tc
34 $(call Package/iproute2/Default)
35 TITLE:=Traffic control utility
36 endef
37
38 define Package/genl
39 $(call Package/iproute2/Default)
40 TITLE:=General netlink utility frontend
41 endef
42
43 define Build/Configure
44 $(SED) "s,-I/usr/include/db3,," $(PKG_BUILD_DIR)/Makefile
45 $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
46 $(PKG_BUILD_DIR)/Makefile
47 $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
48 $(PKG_BUILD_DIR)/Makefile
49 # For now disable compiling of the misc directory because it seems to fail
50 rm -rf $(PKG_BUILD_DIR)/misc
51 $(SED) "s, misc,," $(PKG_BUILD_DIR)/Makefile
52 endef
53
54 MAKE_FLAGS += \
55 EXTRA_CCOPTS="$(TARGET_CFLAGS)" \
56 KERNEL_INCLUDE="$(LINUX_DIR)/include" \
57 FPIC="$(FPIC)" \
58 all tc/tc ip/ip
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR)/netem HOSTCC="$(HOSTCC)" EXTRA_CCOPTS="$(TARGET_CFLAGS)" CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
62 $(Build/Compile/Default)
63 endef
64
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/include
67 $(CP) $(PKG_BUILD_DIR)/include/libnetlink.h $(1)/usr/include/
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_BUILD_DIR)/lib/libnetlink.a $(1)/usr/lib/
70 endef
71
72 define Package/ip/install
73 $(INSTALL_DIR) $(1)/usr/sbin
74 $(INSTALL_DIR) $(1)/etc/iproute2
75 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/iproute2/rt_tables $(1)/etc/iproute2
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/usr/sbin/
77 endef
78
79 define Package/tc/install
80 $(INSTALL_DIR) $(1)/usr/sbin
81 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/
82 endef
83
84 define Package/genl/install
85 $(INSTALL_DIR) $(1)/usr/sbin
86 $(INSTALL_BIN) $(PKG_BUILD_DIR)/genl/genl $(1)/usr/sbin/
87 endef
88
89 $(eval $(call BuildPackage,ip))
90 $(eval $(call BuildPackage,tc))
91 $(eval $(call BuildPackage,genl))
92
93
This page took 0.048883 seconds and 5 git commands to generate.