mac80211: include brcmfmac USB firmware only if support was enabled
authorRafał Miłecki <zajec5@gmail.com>
Mon, 16 Mar 2015 07:04:28 +0000 (07:04 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 16 Mar 2015 07:04:28 +0000 (07:04 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44808

package/kernel/mac80211/Makefile

index 60dfb748d013402b953b61ebd991f8a12f192c5e..589b0cb1bd071a4c7c851c127d6588b57c43e6b3 100644 (file)
@@ -2002,12 +2002,14 @@ endef
 
 define KernelPackage/brcmfmac/install
        $(INSTALL_DIR) $(1)/lib/firmware/brcm
+ifneq ($(CONFIG_BRCMFMAC_USB),)
        $(INSTALL_DATA) \
                $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43236b.bin \
                $(1)/lib/firmware/brcm/
        $(INSTALL_DATA) \
                $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43143.bin \
                $(1)/lib/firmware/brcm/
+endif
 endef
 
 $(eval $(call KernelPackage,adm8211))