2 # Copyright (C) 2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE project
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=brcmfmac-firmware-43430-sdio
11 PKG_VERSION:=2016-06-07
12 PKG_RELEASE:=a7491de4c4b2f1ceb5d0dfa5350b95e5c6fb9bd4
14 include $(INCLUDE_DIR)/package.mk
16 BRCMFMAC43430_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(PKG_RELEASE)/brcm80211/brcm/
17 BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(PKG_RELEASE)
19 define Download/brcmfmac43430_sdio_bin
20 FILE:=$(BRCMFMAC43430_SDIO_FILE).bin
21 URL:=$(BRCMFMAC43430_SDIO_URL)
22 URL_FILE:=brcmfmac43430-sdio.bin
23 MD5SUM:=b24aad300e161782072b227abe9862f7
25 $(eval $(call Download,brcmfmac43430_sdio_bin))
27 define Download/brcmfmac43430_sdio_txt
28 FILE:=$(BRCMFMAC43430_SDIO_FILE).txt
29 URL:=$(BRCMFMAC43430_SDIO_URL)
30 URL_FILE:=brcmfmac43430-sdio.txt
31 MD5SUM:=8c3cb6d8f0609b43f09d083b4006ec5a
33 $(eval $(call Download,brcmfmac43430_sdio_txt))
35 define Package/brcmfmac-firmware-43430-sdio
38 TITLE:=Broadcom BCM43430 FullMac SDIO firmware
39 URL:=http://www.broadcom.com/
42 define Package/brcmfmac-firmware-43430-sdio/description
43 Broadcom BCM43430 fullmac SDIO firmware
47 rm -rf $(PKG_BUILD_DIR)
48 mkdir -p $(PKG_BUILD_DIR)
49 cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).bin $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin
50 cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt
57 define Package/brcmfmac-firmware-43430-sdio/install
58 $(INSTALL_DIR) $(1)/lib/firmware/brcm/
59 $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin $(1)/lib/firmware/brcm/
60 $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt $(1)/lib/firmware/brcm/
63 $(eval $(call BuildPackage,brcmfmac-firmware-43430-sdio))