summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/brcm80211/brcmfmac/Makefile
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2014-09-12 00:51:31 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-09-15 23:09:26 +0400
commitf1d56039b58f6f786450a858b2c8d2459a3382cc (patch)
tree2566ab263d36c19b8453d7688dc8c0b61ac32e87 /drivers/net/wireless/brcm80211/brcmfmac/Makefile
parentfac7d2a3b8798f8b58004c74c4b37b9643b5897a (diff)
downloadlinux-f1d56039b58f6f786450a858b2c8d2459a3382cc.tar.xz
brcmfmac: conditionally compile firmware protocol source code
The host-interface can select which protocol implementation it needs. Selecting PCIe will include the msgbuf protocol and selecting USB and/or SDIO will include the bcdc protocol. The PCIe kconfig option assures the dependencies for msgbuf are met, ie. HAS_DMA. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/Makefile')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/Makefile b/drivers/net/wireless/brcm80211/brcmfmac/Makefile
index c35adf4bc70b..90a977fe9a64 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/Makefile
+++ b/drivers/net/wireless/brcm80211/brcmfmac/Makefile
@@ -30,16 +30,18 @@ brcmfmac-objs += \
fwsignal.o \
p2p.o \
proto.o \
- bcdc.o \
- commonring.o \
- flowring.o \
- msgbuf.o \
dhd_common.o \
dhd_linux.o \
firmware.o \
feature.o \
btcoex.o \
vendor.o
+brcmfmac-$(CONFIG_BRCMFMAC_PROTO_BCDC) += \
+ bcdc.o
+brcmfmac-$(CONFIG_BRCMFMAC_PROTO_MSGBUF) += \
+ commonring.o \
+ flowring.o \
+ msgbuf.o
brcmfmac-$(CONFIG_BRCMFMAC_SDIO) += \
dhd_sdio.o \
bcmsdh.o