staging: brcm80211: fix makefiles for building drivers in kernel
authorArend van Spriel <arend@broadcom.com>
Fri, 13 May 2011 09:59:30 +0000 (11:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 19:03:52 +0000 (12:03 -0700)
The makefiles used obj-m which forcibly builds the drivers as
modules ignoring the Kconfig setting. This has been fixed in this
patch.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/Makefile
drivers/staging/brcm80211/brcmsmac/Makefile

index 8c9c0dcdb33e76dd54b27fbf06034275cff21514..c5ec562c3645f9b69a0f60c27bddb46db2c32acc 100644 (file)
@@ -52,5 +52,5 @@ DHDOFILES = \
        bcmsdh_sdmmc.o \
        bcmsdh_sdmmc_linux.o
 
-obj-m += brcmfmac.o
+obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
 brcmfmac-objs += $(DHDOFILES)
index 84ae24534f9fbf2f2b88eea604ce1216f86b117f..8d75fe19ca9aecc0285756eccfec3431c80ddd39 100644 (file)
@@ -55,5 +55,5 @@ BRCMSMAC_OFILES := \
 
 MODULEPFX := brcmsmac
 
-obj- += $(MODULEPFX).o
+obj-$(CONFIG_BRCMSMAC) += $(MODULEPFX).o
 $(MODULEPFX)-objs      = $(BRCMSMAC_OFILES)