cleanup, nuke obsolete 'Kernel drivers' category, convert remaining kmod packages...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 20 Jan 2007 02:01:53 +0000 (02:01 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 20 Jan 2007 02:01:53 +0000 (02:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6136 3c298f89-4303-0410-b956-a3cf2f4a3e73

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 03bd5c1..11c3345 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 edc1026..73f6613 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 93fc378..fd6671b 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 4cc77a2..38cdf07 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 e2aebfd..33f4ef0 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 a0644ab..0ad6c33 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 2e2bf43..5d0e5ee 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 aa34e61..02ad546 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))
This page took 0.04583 seconds and 4 git commands to generate.