e4a1152337dbd7b99038bf2882ea10cce9669b00
[openwrt/openwrt.git] / package / firmware / brcmfmac43430-firmware / Makefile
1 # Copyright (C) 2016 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=brcmfmac43430-firmware-sdio
9 PKG_RELEASE:=1
10
11 include $(INCLUDE_DIR)/package.mk
12
13 BRCMFMAC43430_SDIO_REV:=54bab3d6a6d43239c71d26464e6e10e5067ffea7
14 BRCMFMAC43430_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(BRCMFMAC43430_SDIO_REV)/brcm80211/brcm/
15 BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(BRCMFMAC43430_SDIO_REV)
16
17 define Download/brcmfmac43430_sdio_bin
18 FILE:=$(BRCMFMAC43430_SDIO_FILE).bin
19 URL:=$(BRCMFMAC43430_SDIO_URL)
20 URL_FILE:=brcmfmac43430-sdio.bin
21 MD5SUM:=4a410ab9a1eefe82e158d36df02b3589
22 endef
23 $(eval $(call Download,brcmfmac43430_sdio_bin))
24
25 define Download/brcmfmac43430_sdio_txt
26 FILE:=$(BRCMFMAC43430_SDIO_FILE).txt
27 URL:=$(BRCMFMAC43430_SDIO_URL)
28 URL_FILE:=brcmfmac43430-sdio.txt
29 MD5SUM:=8c3cb6d8f0609b43f09d083b4006ec5a
30 endef
31 $(eval $(call Download,brcmfmac43430_sdio_txt))
32
33 define Package/brcmfmac43430-firmware-sdio
34 SECTION:=firmware
35 CATEGORY:=Firmware
36 TITLE:=Broadcom BCM43430 fullmac SDIO firmware
37 URL:=http://www.broadcom.com/
38 endef
39
40 define Package/brcmfmac43430-firmware-sdio/description
41 Broadcom BCM43430 fullmac SDIO firmware
42 endef
43
44 define Build/Prepare
45 rm -rf $(PKG_BUILD_DIR)
46 mkdir -p $(PKG_BUILD_DIR)
47 cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).bin $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin
48 cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt
49 endef
50
51 define Build/Compile
52 true
53 endef
54
55 define Package/brcmfmac43430-firmware-sdio/install
56 $(INSTALL_DIR) $(1)/lib/firmware/brcm/
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin $(1)/lib/firmware/brcm/
58 $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt $(1)/lib/firmware/brcm/
59 endef
60
61 $(eval $(call BuildPackage,brcmfmac43430-firmware-sdio))