cleanup, nuke obsolete 'Kernel drivers' category, convert remaining kmod packages...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 20 Jan 2007 02:01:53 +0000 (02:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 20 Jan 2007 02:01:53 +0000 (02:01 +0000)
SVN-Revision: 6136

package/ar7-atm/Makefile
package/broadcom-diag/Makefile
package/broadcom-wl/Makefile
package/hostap/Makefile
package/spca5xx/Makefile
package/switch/Makefile
package/ueagle-atm/Makefile
package/ueagle-atm/files/ueagle-atm.modules [deleted file]
package/wlcompat/Makefile

index 03bd5c119a45e1882399caedd05b1ee9154fad6a..11c3345e9477427beeae1c1b97e9575a44b307c5 100644 (file)
@@ -33,7 +33,7 @@ define KernelPackage/sangam-atm-annex-a
 endef
 
 define KernelPackage/sangam-atm-annex-b
-  $(call Package/kmod-sangam-atm-annex-a)
+  $(call KernelPackage/sangam-atm-annex-a)
   TITLE:=AR7 ADSL driver (Annex B)
   DESCRIPTION:=The AR7 ADSL driver for Annex B
 endef
index edc1026c272f36445ddab15ae82ff815b864bbec..73f66136c315b3c7bbc6de4bf460168f785f99d6 100644 (file)
@@ -17,8 +17,7 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 include $(INCLUDE_DIR)/package.mk
 
 define KernelPackage/diag
-  SECTION:=kernel
-  CATEGORY:=Kernel drivers
+  SUBMENU:=Other modules
   DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_6_BRCM
   TITLE:=Driver for router LEDs and Buttons
   VERSION:=$(PKG_RELEASE)+$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
index 93fc378979d9fbd0806494358ec1980aa19e6993..fd6671b28945462c0cd7f0b3d72c3605d895423e 100644 (file)
@@ -24,14 +24,14 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 include $(INCLUDE_DIR)/package.mk
 
 define Package/broadcom-wl/Default
-  SECTION:=net
-  CATEGORY:=Kernel drivers
+  SECTION:=kernel
+  CATEGORY:=Kernel modules
   DEPENDS:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
   SUBMENU:=Proprietary BCM43xx WiFi driver
   SUBMENUDEP:=@LINUX_2_4_BRCM
 endef
 
-define Package/kmod-brcm-wl/Default
+define KernelPackage/brcm-wl/Default
   $(call Package/broadcom-wl/Default)
   SECTION:=kernel
   DEPENDS:=@LINUX_2_4_BRCM
@@ -40,16 +40,18 @@ define Package/kmod-brcm-wl/Default
        This package contains the proprietary wireless driver for the Broadcom \\\
        BCM43xx chipset
   VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE)
+  FILES:=$(PKG_BUILD_DIR)/kmod/wl$(1).o
+  AUTOLOAD:=$(call AutoLoad,30,wl$(1))
 endef
 
-define Package/kmod-brcm-wl
-  $(call Package/kmod-brcm-wl/Default)
+define KernelPackage/brcm-wl
+  $(call KernelPackage/brcm-wl/Default,)
   TITLE+= (normal version)
   DESCRIPTION+= (normal version).
 endef
 
-define Package/kmod-brcm-wl-mimo
-  $(call Package/kmod-brcm-wl/Default)
+define KernelPackage/brcm-wl-mimo
+  $(call KernelPackage/brcm-wl/Default,_mimo)
   TITLE+= (MIMO version)
   DESCRIPTION+= (MIMO version).
 endef
@@ -104,21 +106,6 @@ define Build/Compile
                all
 endef
 
-define wl_template
-       $(INSTALL_DIR) $(1)/etc/modules.d
-       echo "wl$(2)" > $(1)/etc/modules.d/20-wl$(2)
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/kmod/wl$(2).o $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
-endef
-
-define Package/kmod-brcm-wl/install
-       $(call wl_template,$(1))
-endef
-
-define Package/kmod-brcm-wl-mimo/install
-       $(call wl_template,$(1),_mimo)
-endef
-
 define Package/wlc/install
        $(CP) ./files/* $(1)/
        $(INSTALL_DIR) $(1)/sbin
@@ -139,8 +126,8 @@ define Package/nas/install
        ln -sf nas $(1)/usr/sbin/nas4wds
 endef
 
-$(eval $(call BuildPackage,kmod-brcm-wl))
-$(eval $(call BuildPackage,kmod-brcm-wl-mimo))
+$(eval $(call KernelPackage,brcm-wl))
+$(eval $(call KernelPackage,brcm-wl-mimo))
 $(eval $(call BuildPackage,wlc))
 $(eval $(call BuildPackage,wl))
 $(eval $(call BuildPackage,nas))
index 4cc77a2177e7cd147da04741241f9b96cc030f0b..38cdf072d69f2cef8493cec61fec70d81714d18e 100644 (file)
@@ -120,13 +120,13 @@ ifeq ($(KERNEL),2.4)
                modules
   endef
 
-  define Package/kmod-hostap-pci/install
+  define KernelPackage/hostap-pci/install
        $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) \
                $(1)/lib/modules/$(LINUX_VERSION)/
   endef
 
-  define Package/kmod-hostap-plx/install
+  define KernelPackage/hostap-plx/install
        $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) \
                $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \
index e2aebfda2e57eed388a56741183acf398b9f4339..33f4ef0c47a8f8fbfdc328380dd8d6119efd7059 100644 (file)
@@ -22,14 +22,14 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 
 include $(INCLUDE_DIR)/package.mk
 
-#FIXME: add proper dependency handling on kmod-usb-core & kmod-videodev packages
-define Package/kmod-spca5xx
-  SECTION:=kernel
-  CATEGORY:=Kernel drivers
-  DEPENDS:=@PACKAGE_KMOD_USB&&PACKAGE_KMOD_VIDEODEV
+define KernelPackage/spca5xx
+  SUBMENU:=Other modules
+  DEPENDS:=kmod-usb-core kmod-videodev
   TITLE:=Driver for SPCA5xx based USB cameras
   URL:=http://mxhaard.free.fr/
   VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+  FILES:=$(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX)
+  AUTLOAD:=$(call AutoLoad,90,spca5xx)
 endef
 
 define Build/Compile
@@ -43,10 +43,4 @@ define Build/Compile
                modules
 endef
 
-define Package/kmod-spca5xx/install
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP) $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \
-               $(1)/lib/modules/$(LINUX_VERSION)/
-endef
-
-$(eval $(call BuildPackage,kmod-spca5xx))
+$(eval $(call KernelPackage,spca5xx))
index a0644abeb155220edc17527409b5dbe0a87c6c31..0ad6c3398d2f4acbb31bae5479c51d22591947ba 100644 (file)
@@ -16,14 +16,18 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/kmod-switch
-  SECTION:=kernel
-  CATEGORY:=Kernel drivers
+define KernelPackage/switch
+  SUBMENU:=Other modules
   DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
   TITLE:=Switch drivers
   DESCRIPTION:=\
        This package contains switch drivers for ADM6996L and BCM53XX RoboSwitch.
   VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
+  FILES:= \
+       $(PKG_BUILD_DIR)/switch-core.$(LINUX_KMOD_SUFFIX) \
+       $(PKG_BUILD_DIR)/switch-adm.$(LINUX_KMOD_SUFFIX) \
+       $(PKG_BUILD_DIR)/switch-robo.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm)
 endef
 
 define Build/Prepare
@@ -40,14 +44,9 @@ define Build/Compile
                modules
 endef
        
-define Package/kmod-switch/install
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
-               $(1)/lib/modules/$(LINUX_VERSION)
+define KernelPackage/switch/install
        $(INSTALL_DIR) $(1)/lib/network/
        $(INSTALL_BIN) ./files/switch.sh $(1)/lib/network/
-       $(INSTALL_DIR) $(1)/etc/modules.d/
-       printf 'switch-core\nswitch-robo\nswitch-adm\n' > $(1)/etc/modules.d/20-switch
 endef
 
-$(eval $(call BuildPackage,kmod-switch))
+$(eval $(call KernelPackage,switch))
index 2e2bf43255a38b791683dbcbadda0f440a6544aa..5d0e5ee6fa02b8895d4bad04617f07ce77869f6a 100644 (file)
@@ -23,14 +23,16 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(INCLUDE_DIR)/package.mk
 
-#FIXME: add dependency on kmod-usb-core
-define Package/kmod-ueagle-atm
-  SECTION:=kernel
-  CATEGORY:=Kernel drivers
-  DEPENDS:=@LINUX_2_6_BRCM @PACKAGE_KMOD_USB
+define KernelPackage/ueagle-atm
+  SUBMENU:=Network Devices
+  DEPENDS:=@ATM_SUPPORT kmod-usb-core 
   TITLE:=Driver for Eagle 8051 based USB ADSL modems
   URL:=http://www.eagle-usb.org/
   VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+  FILES:= \
+       $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
+       $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50,usbatm ueagle-atm)
 endef
 
 define Build/Compile
@@ -42,14 +44,4 @@ define Build/Compile
                all
 endef
 
-define Package/kmod-ueagle-atm/install
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP)   $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \
-               $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
-               $(1)/lib/modules/$(LINUX_VERSION)/
-       $(INSTALL_DIR) $(1)/etc/modules.d
-       $(INSTALL_DATA) ./files/$(PKG_NAME).modules \
-               $(1)/etc/modules.d/10-$(PKG_NAME)
-endef
-
-$(eval $(call BuildPackage,kmod-ueagle-atm))
+$(eval $(call KernelPackage,ueagle-atm))
diff --git a/package/ueagle-atm/files/ueagle-atm.modules b/package/ueagle-atm/files/ueagle-atm.modules
deleted file mode 100644 (file)
index 6343f50..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usbatm
-ueagle-atm
index aa34e61aae43c3c3264748b634d6553429ce1b6e..02ad5469c4a3cfd43214582d5ce484071dd28773 100644 (file)
@@ -16,10 +16,10 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/kmod-wlcompat/Default
-  SECTION:=kernel
-  CATEGORY:=Kernel drivers
-  DEPENDS:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo +wireless-tools
+define KernelPackage/wlcompat/Default
+  SUBMENU:=Proprietary BCM43xx WiFi driver
+  SUBMENUDEP:=@LINUX_2_4_BRCM
+  DEPENDS:=@LINUX_2_4_BRCM @PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo +wireless-tools
   TITLE:=Broadcom wl wrapper module
   DESCRIPTION:=\
        This package contains a wrapper module, that provides Wireless Extension \\\
@@ -27,16 +27,19 @@ define Package/kmod-wlcompat/Default
   VERSION:=$(LINUX_VERSION)+$(BOARD)-$(PKG_RELEASE)
 endef
 
-define Package/kmod-wlcompat
-  $(call Package/kmod-wlcompat/Default)
+define KernelPackage/wlcompat
+  $(call KernelPackage/wlcompat/Default)
+  FILES:=$(PKG_BUILD_DIR)/wlcompat.o
+  AUTOLOAD:=$(call AutoLoad,50,wlcompat)
 endef
 
-define Package/kmod-wlcompat-debug
-  $(call Package/kmod-wlcompat/Default)
+define KernelPackage/wlcompat-debug
+  $(call KernelPackage/wlcompat/Default)
   TITLE+= (debug)
   DESCRIPTION+=\\\
        \\\
        This is a debugging version.
+  FILES:=$(PKG_BUILD_DIR)/wlcompat-debug.o
 endef
 
 define Build/Prepare
@@ -60,17 +63,5 @@ define Build/Compile
                modules
 endef
 
-define Package/kmod-wlcompat/install
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP) $(PKG_BUILD_DIR)/wlcompat.o $(1)/lib/modules/$(LINUX_VERSION)/
-       $(INSTALL_DIR) $(1)/etc/modules.d
-       echo "wlcompat" > $(1)/etc/modules.d/30-wlcompat
-endef
-
-define Package/kmod-wlcompat-debug/install
-       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP) $(PKG_BUILD_DIR)/wlcompat-debug.o $(1)/lib/modules/$(LINUX_VERSION)/
-endef
-
-$(eval $(call BuildPackage,kmod-wlcompat))
-$(eval $(call BuildPackage,kmod-wlcompat-debug))
+$(eval $(call KernelPackage,wlcompat))
+$(eval $(call KernelPackage,wlcompat-debug))