cleanup, nuke obsolete 'Kernel drivers' category, convert remaining kmod packages to KernelPackage interface

SVN-Revision: 6136
master
Felix Fietkau 18 years ago
parent 146500a67c
commit c606df6563
  1. 2
      package/ar7-atm/Makefile
  2. 3
      package/broadcom-diag/Makefile
  3. 35
      package/broadcom-wl/Makefile
  4. 4
      package/hostap/Makefile
  5. 18
      package/spca5xx/Makefile
  6. 19
      package/switch/Makefile
  7. 24
      package/ueagle-atm/Makefile
  8. 2
      package/ueagle-atm/files/ueagle-atm.modules
  9. 35
      package/wlcompat/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

@ -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)

@ -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))

@ -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) \

@ -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))

@ -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))

@ -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))

@ -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))

Loading…
Cancel
Save