mirror of https://github.com/hak5/openwrt.git
linux-firmware: separate packages for Broadcom FullMAC SDIO firmwares
Using few packages will allow saving some space by decreasing rootfs size. Moreover there are more firmware files that may require packaging and even more to come later. This can especially useful now, with per device rootfs. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>lede-17.01
parent
01e2024754
commit
daa5691a4d
|
@ -16,17 +16,23 @@ define Package/brcmfmac-firmware-4366b1-pcie/install
|
||||||
endef
|
endef
|
||||||
$(eval $(call BuildPackage,brcmfmac-firmware-4366b1-pcie))
|
$(eval $(call BuildPackage,brcmfmac-firmware-4366b1-pcie))
|
||||||
|
|
||||||
Package/brcmfmac-firmware-sdio = $(call Package/firmware-default,Broadcom BCM43xx fullmac SDIO firmware)
|
Package/brcmfmac-firmware-4329-sdio = $(call Package/firmware-default,Broadcom BCM4329 FullMac SDIO firmware)
|
||||||
define Package/brcmfmac-firmware-sdio/install
|
define Package/brcmfmac-firmware-4329-sdio/install
|
||||||
$(INSTALL_DIR) $(1)/lib/firmware/brcm
|
$(INSTALL_DIR) $(1)/lib/firmware/brcm
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_BUILD_DIR)/brcm/brcmfmac4329-sdio.bin \
|
$(PKG_BUILD_DIR)/brcm/brcmfmac4329-sdio.bin \
|
||||||
$(1)/lib/firmware/brcm/brcmfmac4329-sdio.bin
|
$(1)/lib/firmware/brcm/brcmfmac4329-sdio.bin
|
||||||
|
endef
|
||||||
|
$(eval $(call BuildPackage,brcmfmac-firmware-4329-sdio))
|
||||||
|
|
||||||
|
Package/brcmfmac-firmware-43362-sdio = $(call Package/firmware-default,Broadcom BCM43362 FullMac SDIO firmware)
|
||||||
|
define Package/brcmfmac-firmware-43362-sdio/install
|
||||||
|
$(INSTALL_DIR) $(1)/lib/firmware/brcm
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_BUILD_DIR)/brcm/brcmfmac43362-sdio.bin \
|
$(PKG_BUILD_DIR)/brcm/brcmfmac43362-sdio.bin \
|
||||||
$(1)/lib/firmware/brcm/brcmfmac43362-sdio.bin
|
$(1)/lib/firmware/brcm/brcmfmac43362-sdio.bin
|
||||||
endef
|
endef
|
||||||
$(eval $(call BuildPackage,brcmfmac-firmware-sdio))
|
$(eval $(call BuildPackage,brcmfmac-firmware-43362-sdio))
|
||||||
|
|
||||||
Package/brcmfmac-firmware-usb = $(call Package/firmware-default,Broadcom BCM43xx fullmac USB firmware)
|
Package/brcmfmac-firmware-usb = $(call Package/firmware-default,Broadcom BCM43xx fullmac USB firmware)
|
||||||
define Package/brcmfmac-firmware-usb/install
|
define Package/brcmfmac-firmware-usb/install
|
||||||
|
|
|
@ -682,7 +682,8 @@ define KernelPackage/brcmfmac
|
||||||
TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
|
TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
|
||||||
URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
|
URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
|
||||||
DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +@DRIVER_11N_SUPPORT +kmod-brcmutil \
|
DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +@DRIVER_11N_SUPPORT +kmod-brcmutil \
|
||||||
+BRCMFMAC_SDIO:kmod-mmc +BRCMFMAC_SDIO:brcmfmac-firmware-sdio \
|
+BRCMFMAC_SDIO:kmod-mmc +BRCMFMAC_SDIO:brcmfmac-firmware-4329-sdio \
|
||||||
|
+BRCMFMAC_SDIO:brcmfmac-firmware-43362-sdio \
|
||||||
+BRCMFMAC_USB:kmod-usb-core +BRCMFMAC_USB:brcmfmac-firmware-usb
|
+BRCMFMAC_USB:kmod-usb-core +BRCMFMAC_USB:brcmfmac-firmware-usb
|
||||||
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
|
||||||
AUTOLOAD:=$(call AutoProbe,brcmfmac)
|
AUTOLOAD:=$(call AutoProbe,brcmfmac)
|
||||||
|
|
Loading…
Reference in New Issue