Author: nbd
Date: 2014-06-08 11:45:55 +0200 (Sun, 08 Jun 2014)
New Revision: 41052

Modified:
   trunk/target/linux/brcm47xx/modules.mk
Log:
brcm47xx: fix kmod-usb-brcm47xx build on legacy and mips74k subtargets

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/target/linux/brcm47xx/modules.mk
===================================================================
--- trunk/target/linux/brcm47xx/modules.mk      2014-06-07 19:14:17 UTC (rev 
41051)
+++ trunk/target/linux/brcm47xx/modules.mk      2014-06-08 09:45:55 UTC (rev 
41052)
@@ -13,9 +13,11 @@
        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
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to