brcm47xx: fix kmod-usb-brcm47xx build on legacy and mips74k subtargets
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 09:45:55 +0000 (09:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Jun 2014 09:45:55 +0000 (09:45 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41052

target/linux/brcm47xx/modules.mk

index 4dd5edb338640193d44d1b4306787cf5d44d7c88..5738d6aa0d4099763b94543219fd6dc0dba8fb0f 100644 (file)
@@ -13,9 +13,11 @@ define KernelPackage/usb-brcm47xx
        CONFIG_USB_HCD_BCMA \
        CONFIG_USB_HCD_SSB
   FILES:= \
-       $(LINUX_DIR)/drivers/usb/host/bcma-hcd.ko \
-       $(LINUX_DIR)/drivers/usb/host/ssb-hcd.ko
-  AUTOLOAD:=$(call AutoLoad,19,bcma-hcd ssb-hcd,1)
+       $(if $(CONFIG_USB_HCD_BCMA),$(LINUX_DIR)/drivers/usb/host/bcma-hcd.ko) \
+       $(if $(CONFIG_USB_HCD_SSB),$(LINUX_DIR)/drivers/usb/host/ssb-hcd.ko)
+  AUTOLOAD:=$(call AutoLoad,19, \
+       $(if $(CONFIG_USB_HCD_BCMA),bcma-hcd) \
+       $(if $(CONFIG_USB_HCD_SSB),ssb-hcd),1)
   $(call AddDepends/usb)
 endef