split wireless-tools and iwlib to produce smaller micro images
authorFelix Fietkau <nbd@openwrt.org>
Tue, 13 Dec 2005 20:08:53 +0000 (20:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 13 Dec 2005 20:08:53 +0000 (20:08 +0000)
SVN-Revision: 2664

openwrt/package/Makefile
openwrt/package/wireless-tools/Config.in
openwrt/package/wireless-tools/Makefile
openwrt/package/wireless-tools/ipkg/iwlib.control [new file with mode: 0644]
openwrt/package/wireless-tools/ipkg/wireless-tools.control
openwrt/target/linux/imagebuilder/lists/default.brcm-2.4
openwrt/target/linux/imagebuilder/lists/micro.brcm-2.4
openwrt/target/linux/imagebuilder/lists/pptp.brcm-2.4

index 9756129aafc7341e19e7199c3938c7a2ce4fe9fa..80048683d29a15f3d1dec7f2695e07d6ebc6cdd0 100644 (file)
@@ -115,7 +115,7 @@ package-$(BR2_PACKAGE_VTUN) += vtun
 package-$(BR2_PACKAGE_VSFTPD) += vsftpd
 package-$(BR2_PACKAGE_WEBIF) += webif
 package-$(BR2_PACKAGE_WIFICONF) += wificonf
-package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
+package-$(BR2_COMPILE_WIRELESS_TOOLS) += wireless-tools
 package-$(BR2_PACKAGE_WOL) += wol
 package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
 package-$(BR2_PACKAGE_WPUT) += wput
index 1c155bb776dfcbb3cfabe3b269fe80f9b8e58da9..c957d40dd989943679d45b97900d446ce1d9e9ce 100644 (file)
@@ -1,5 +1,20 @@
+config BR2_COMPILE_WIRELESS_TOOLS
+       tristate
+       default n
+       depends BR2_PACKAGE_IWLIB
+
 config BR2_PACKAGE_WIRELESS_TOOLS
        tristate "wireless-tools - Tools for manipulating Linux Wireless Extensions"
        default y
+       select BR2_PACKAGE_IWLIB
        help
          Tools for configuring Wireless Adapters implementing the "Wireless Extension"
+
+config BR2_PACKAGE_IWLIB
+       tristate "iwlib - Library for manipulating Linux Wireless Extensions"
+       default y
+       select BR2_COMPILE_WIRELESS_TOOLS
+       help
+         Library configuring Wireless Adapters implementing the "Wireless Extension"
+
+
index 4d132b99ddd51f82696ea893b29c9c9ef9e32003..fb9cca0feea8cbc3590c5a84d525bc77fe014507 100644 (file)
@@ -16,6 +16,7 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
+$(eval $(call PKG_template,IWLIB,iwlib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,WIRELESS_TOOLS,wireless-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
@@ -33,9 +34,13 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
                install install-iwmulticall
        touch $@
 
+$(IPKG_IWLIB):
+       mkdir -p $(IDIR_IWLIB)/usr/lib
+       cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_IWLIB)/usr/lib/
+       $(RSTRIP) $(IDIR_IWLIB)
+       $(IPKG_BUILD) $(IDIR_IWLIB) $(PACKAGE_DIR)
+       
 $(IPKG_WIRELESS_TOOLS):
-       mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/lib
-       cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
        mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/sbin
        cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
        $(RSTRIP) $(IDIR_WIRELESS_TOOLS)
diff --git a/openwrt/package/wireless-tools/ipkg/iwlib.control b/openwrt/package/wireless-tools/ipkg/iwlib.control
new file mode 100644 (file)
index 0000000..ca866bc
--- /dev/null
@@ -0,0 +1,4 @@
+Package: iwlib
+Priority: optional
+Section: net
+Description: Library for setting up WiFi cards using the Wireless Extension
index 5f472d958d3065c594182ea463840f94b04b3fd4..9ff780114998cd59a29835291c3d459973fbf500 100644 (file)
@@ -1,4 +1,5 @@
 Package: wireless-tools
 Priority: optional
 Section: net
+Depends: iwlib
 Description: Tools for setting up WiFi cards using the Wireless Extension
index 132ff48222f8771bfcd150a1eca4babf33b05f8b..3de5c0981961958972e7d93ab1998be1fc1d64e5 100644 (file)
@@ -7,6 +7,7 @@ dropbear
 haserl
 ipkg
 iptables
+iwlib
 kmod-brcm-et
 kmod-brcm-wl
 kmod-diag
index 3541bfa4825b886253aa1befeece3e8a3d7d9d6c..f10696f54d3f75c835ddd404d4cfc92e167a91dd 100644 (file)
@@ -6,6 +6,7 @@ dnsmasq
 dropbear
 ipkg-sh
 iptables
+iwlib
 kmod-brcm-et
 kmod-brcm-wl
 kmod-diag
@@ -14,6 +15,5 @@ libgcc
 mtd
 nvram
 uclibc
-wireless-tools
 wificonf
 zlib
index cfad67b1c1e3aa56903b66eace07b27c3ab6135e..f54b06d9805b1837162d3ef8d63a478bff108298 100644 (file)
@@ -7,6 +7,7 @@ dropbear
 haserl
 ipkg
 iptables
+iwlib
 kmod-brcm-et
 kmod-brcm-wl
 kmod-diag