Don't build SSB modules when SSB isn't present
authorPhilip A Prindeville <philipp@redfish-solutions.com>
Fri, 13 Nov 2009 19:22:59 +0000 (11:22 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 13 Nov 2009 19:22:59 +0000 (11:22 -0800)
If you're building for a platform that has (for example) no SSB,
then having a single knob to turn to disable this is a major
win.  Especially if more devices get add later that are SSB-based.

Signed-off-by: Philip A Prindeville <philipp@redfish-solutions.com>
config.mk

index 9a04dea8025934280984427e045ef5ef637fef49..8d4916e8660e6901ea99472621b49e861114ceb5 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -9,6 +9,8 @@ ifeq ($(wildcard $(KLIB_BUILD)/.config),)
  CONFIG_PCI=y
  CONFIG_USB=y
  CONFIG_PCMCIA=y
+ CONFIG_SSB_POSSIBLE=y
+ CONFIG_SSB=m
 else
 include $(KLIB_BUILD)/.config
 endif
@@ -218,6 +220,11 @@ CONFIG_IPW2200_QOS=y
 #
 # % echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface
 
+ifneq ($(CONFIG_SSB),)
+# Sonics Silicon Backplane
+CONFIG_SSB_SPROM=y
+# CONFIG_SSB_DEBUG=y
+
 CONFIG_SSB_BLOCKIO=y
 CONFIG_SSB_PCIHOST_POSSIBLE=y
 CONFIG_SSB_PCIHOST=y
@@ -229,6 +236,7 @@ endif
 # CONFIG_SSB_DEBUG=y
 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y
 CONFIG_SSB_DRIVER_PCICORE=y
+endif
 
 CONFIG_P54_PCI=m
 
@@ -397,12 +405,6 @@ CONFIG_WL1251_SPI=m
 CONFIG_WL1251_SDIO=m
 CONFIG_WL1271=m
 
-# Sonics Silicon Backplane
-CONFIG_SSB_POSSIBLE=y
-CONFIG_SSB=m
-CONFIG_SSB_SPROM=y
-# CONFIG_SSB_DEBUG=y
-
 ifdef CONFIG_COMPAT_WIRELESS_27
 CONFIG_LIBERTAS=n
 else