From: Felix Fietkau Date: Sat, 20 Jan 2007 02:01:53 +0000 (+0000) Subject: cleanup, nuke obsolete 'Kernel drivers' category, convert remaining kmod packages... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c606df6563b0969de226087bebae65ee361fb5e6;p=openwrt%2Fstaging%2Fjow.git cleanup, nuke obsolete 'Kernel drivers' category, convert remaining kmod packages to KernelPackage interface SVN-Revision: 6136 --- diff --git a/package/ar7-atm/Makefile b/package/ar7-atm/Makefile index 03bd5c119a..11c3345e94 100644 --- a/package/ar7-atm/Makefile +++ b/package/ar7-atm/Makefile @@ -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 diff --git a/package/broadcom-diag/Makefile b/package/broadcom-diag/Makefile index edc1026c27..73f66136c3 100644 --- a/package/broadcom-diag/Makefile +++ b/package/broadcom-diag/Makefile @@ -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) diff --git a/package/broadcom-wl/Makefile b/package/broadcom-wl/Makefile index 93fc378979..fd6671b289 100644 --- a/package/broadcom-wl/Makefile +++ b/package/broadcom-wl/Makefile @@ -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)) diff --git a/package/hostap/Makefile b/package/hostap/Makefile index 4cc77a2177..38cdf072d6 100644 --- a/package/hostap/Makefile +++ b/package/hostap/Makefile @@ -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) \ diff --git a/package/spca5xx/Makefile b/package/spca5xx/Makefile index e2aebfda2e..33f4ef0c47 100644 --- a/package/spca5xx/Makefile +++ b/package/spca5xx/Makefile @@ -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)) diff --git a/package/switch/Makefile b/package/switch/Makefile index a0644abeb1..0ad6c3398d 100644 --- a/package/switch/Makefile +++ b/package/switch/Makefile @@ -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)) diff --git a/package/ueagle-atm/Makefile b/package/ueagle-atm/Makefile index 2e2bf43255..5d0e5ee6fa 100644 --- a/package/ueagle-atm/Makefile +++ b/package/ueagle-atm/Makefile @@ -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 index 6343f50e73..0000000000 --- a/package/ueagle-atm/files/ueagle-atm.modules +++ /dev/null @@ -1,2 +0,0 @@ -usbatm -ueagle-atm diff --git a/package/wlcompat/Makefile b/package/wlcompat/Makefile index aa34e61aae..02ad5469c4 100644 --- a/package/wlcompat/Makefile +++ b/package/wlcompat/Makefile @@ -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))