Package ssb glue code out of the kernel, and make b43 be built for non-brcm47xx targe...
authorFlorian Fainelli <florian@openwrt.org>
Thu, 20 Nov 2008 23:01:07 +0000 (23:01 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 20 Nov 2008 23:01:07 +0000 (23:01 +0000)
SVN-Revision: 13301

package/kernel/modules/other.mk
package/mac80211/Makefile

index 513517d26cd62e79ecc39ad9a2c53f5f07babb16..593aa7fd335dd6a3d81947ee9c7a7520dd46c589 100644 (file)
@@ -192,6 +192,28 @@ endef
 
 $(eval $(call KernelPackage,pcmcia-serial))
 
+define KernelPackage/ssb
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Silicon Sonics Backplane glue code
+  DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx
+  KCONFIG:=\
+       CONFIG_SSB \
+       CONFIG_SSB_B43_PCI_BRIDGE \
+       CONFIG_SSB_DRIVER_PCICORE_POSSIBLE \
+       CONFIG_SSB_PCIHOST \
+       CONFIG_SSB_PCIHOST_POSSIBLE \
+       CONFIG_SSB_POSSIBLE \
+       CONFIG_SSB_SPROM
+  FILES:=$(LINUX_DIR)/drivers/ssb/ssb.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,29,ssb)
+endef
+
+define KernelPackage/ssb/description
+  Silicon Sonics Backplane glue code.
+endef
+
+$(eval $(call KernelPackage,ssb))
+
 
 define KernelPackage/bluetooth
   SUBMENU:=$(OTHER_MENU)
index 2e17b3c58a6fda68eb83418b3a84f9266cd83266..f694bd4f296258205bcb704a51a8866a2051823f 100644 (file)
@@ -288,7 +288,7 @@ define KernelPackage/b43-common
   SUBMENU:=$(WMENU)
   TITLE:=Generic stuff for Broadcom wireless devices
   URL:=http://linuxwireless.org/en/users/Drivers/b43
-  DEPENDS:=@TARGET_brcm47xx +kmod-mac80211
+  DEPENDS:=+kmod-mac80211 $(if !$(CONFIG_TARGET_brcm47xx),+kmod-ssb)
 endef
 
 define KernelPackage/b43