linux-firmware: separate packages for Broadcom FullMAC SDIO firmwares
[openwrt/openwrt.git] / package / firmware / linux-firmware / broadcom.mk
1 Package/brcmfmac-firmware-43602a1-pcie = $(call Package/firmware-default,Broadcom 43602a1 FullMAC PCIe firmware)
2 define Package/brcmfmac-firmware-43602a1-pcie/install
3 $(INSTALL_DIR) $(1)/lib/firmware/brcm
4 $(INSTALL_DATA) \
5 $(PKG_BUILD_DIR)/brcm/brcmfmac43602-pcie.ap.bin \
6 $(1)/lib/firmware/brcm/brcmfmac43602-pcie.bin
7 endef
8 $(eval $(call BuildPackage,brcmfmac-firmware-43602a1-pcie))
9
10 Package/brcmfmac-firmware-4366b1-pcie = $(call Package/firmware-default,Broadcom 4366b1 FullMAC PCIe firmware)
11 define Package/brcmfmac-firmware-4366b1-pcie/install
12 $(INSTALL_DIR) $(1)/lib/firmware/brcm
13 $(INSTALL_DATA) \
14 $(PKG_BUILD_DIR)/brcm/brcmfmac4366b-pcie.bin \
15 $(1)/lib/firmware/brcm/
16 endef
17 $(eval $(call BuildPackage,brcmfmac-firmware-4366b1-pcie))
18
19 Package/brcmfmac-firmware-4329-sdio = $(call Package/firmware-default,Broadcom BCM4329 FullMac SDIO firmware)
20 define Package/brcmfmac-firmware-4329-sdio/install
21 $(INSTALL_DIR) $(1)/lib/firmware/brcm
22 $(INSTALL_DATA) \
23 $(PKG_BUILD_DIR)/brcm/brcmfmac4329-sdio.bin \
24 $(1)/lib/firmware/brcm/brcmfmac4329-sdio.bin
25 endef
26 $(eval $(call BuildPackage,brcmfmac-firmware-4329-sdio))
27
28 Package/brcmfmac-firmware-43362-sdio = $(call Package/firmware-default,Broadcom BCM43362 FullMac SDIO firmware)
29 define Package/brcmfmac-firmware-43362-sdio/install
30 $(INSTALL_DIR) $(1)/lib/firmware/brcm
31 $(INSTALL_DATA) \
32 $(PKG_BUILD_DIR)/brcm/brcmfmac43362-sdio.bin \
33 $(1)/lib/firmware/brcm/brcmfmac43362-sdio.bin
34 endef
35 $(eval $(call BuildPackage,brcmfmac-firmware-43362-sdio))
36
37 Package/brcmfmac-firmware-usb = $(call Package/firmware-default,Broadcom BCM43xx fullmac USB firmware)
38 define Package/brcmfmac-firmware-usb/install
39 $(INSTALL_DIR) $(1)/lib/firmware/brcm
40 $(INSTALL_DATA) \
41 $(PKG_BUILD_DIR)/brcm/brcmfmac43236b.bin \
42 $(1)/lib/firmware/brcm/
43 $(INSTALL_DATA) \
44 $(PKG_BUILD_DIR)/brcm/brcmfmac43143.bin \
45 $(1)/lib/firmware/brcm/
46 endef
47 $(eval $(call BuildPackage,brcmfmac-firmware-usb))
48
49 Package/brcmsmac-firmware = $(call Package/firmware-default,Broadcom BCM43xx softmac PCIe firmware)
50 define Package/brcmsmac-firmware/install
51 $(INSTALL_DIR) $(1)/lib/firmware/brcm
52 $(INSTALL_DATA) \
53 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx-0.fw \
54 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx_hdr-0.fw \
55 $(1)/lib/firmware/brcm/
56 endef
57 $(eval $(call BuildPackage,brcmsmac-firmware))