brcmfmac43430-firmware: rename to brcmfmac-firmware-43430-sdio
[openwrt/staging/dedeckeh.git] / package / firmware / brcmfmac43430-firmware / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE project
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=brcmfmac-firmware-43430-sdio
11 PKG_VERSION:=2016-06-07
12 PKG_RELEASE:=a7491de4c4b2f1ceb5d0dfa5350b95e5c6fb9bd4
13
14 include $(INCLUDE_DIR)/package.mk
15
16 BRCMFMAC43430_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(PKG_RELEASE)/brcm80211/brcm/
17 BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(PKG_RELEASE)
18
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
24 endef
25 $(eval $(call Download,brcmfmac43430_sdio_bin))
26
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
32 endef
33 $(eval $(call Download,brcmfmac43430_sdio_txt))
34
35 define Package/brcmfmac-firmware-43430-sdio
36 SECTION:=firmware
37 CATEGORY:=Firmware
38 TITLE:=Broadcom BCM43430 FullMac SDIO firmware
39 URL:=http://www.broadcom.com/
40 endef
41
42 define Package/brcmfmac-firmware-43430-sdio/description
43 Broadcom BCM43430 fullmac SDIO firmware
44 endef
45
46 define Build/Prepare
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
51 endef
52
53 define Build/Compile
54 true
55 endef
56
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/
61 endef
62
63 $(eval $(call BuildPackage,brcmfmac-firmware-43430-sdio))