summaryrefslogtreecommitdiffstats
path: root/package/firmware
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-04-01 07:11:39 +0000
committerJohn Crispin <john@openwrt.org>2016-04-01 07:11:39 +0000
commit3282079c0c82a550cfda4becb80a0000874e6db3 (patch)
tree37e3b84b73fd348f51dae2aaefe39d760accb2a2 /package/firmware
parentba2d1ccffa97b69e0aa9bfe11ba91c3391452dbc (diff)
downloadmaster-31e0f0ae-3282079c0c82a550cfda4becb80a0000874e6db3.tar.gz
master-31e0f0ae-3282079c0c82a550cfda4becb80a0000874e6db3.tar.bz2
master-31e0f0ae-3282079c0c82a550cfda4becb80a0000874e6db3.zip
brcmfmac43430-firmware: add new package
This adds the firmware needed for the BCM43438 included in Raspberry Pi 3. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 49102
Diffstat (limited to 'package/firmware')
-rw-r--r--package/firmware/brcmfmac43430-firmware/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/package/firmware/brcmfmac43430-firmware/Makefile b/package/firmware/brcmfmac43430-firmware/Makefile
new file mode 100644
index 0000000000..6e78e9d871
--- /dev/null
+++ b/package/firmware/brcmfmac43430-firmware/Makefile
@@ -0,0 +1,61 @@
+# Copyright (C) 2016 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=brcmfmac43430-firmware-sdio
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+BRCMFMAC43430_SDIO_REV:=54bab3d6a6d43239c71d26464e6e10e5067ffea7
+BRCMFMAC43430_SDIO_URL:=https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/$(BRCMFMAC43430_SDIO_REV)/brcm80211/brcm/
+BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(BRCMFMAC43430_SDIO_REV)
+
+define Download/brcmfmac43430_sdio_bin
+ FILE:=$(BRCMFMAC43430_SDIO_FILE).bin
+ URL:=$(BRCMFMAC43430_SDIO_URL)
+ URL_FILE:=brcmfmac43430-sdio.bin
+ MD5SUM:=4a410ab9a1eefe82e158d36df02b3589
+endef
+$(eval $(call Download,brcmfmac43430_sdio_bin))
+
+define Download/brcmfmac43430_sdio_txt
+ FILE:=$(BRCMFMAC43430_SDIO_FILE).txt
+ URL:=$(BRCMFMAC43430_SDIO_URL)
+ URL_FILE:=brcmfmac43430-sdio.txt
+ MD5SUM:=8c3cb6d8f0609b43f09d083b4006ec5a
+endef
+$(eval $(call Download,brcmfmac43430_sdio_txt))
+
+define Package/brcmfmac43430-firmware-sdio
+ SECTION:=firmware
+ CATEGORY:=Firmware
+ TITLE:=Broadcom BCM43430 fullmac SDIO firmware
+ URL:=http://www.broadcom.com/
+endef
+
+define Package/brcmfmac43430-firmware-sdio/description
+ Broadcom BCM43430 fullmac SDIO firmware
+endef
+
+define Build/Prepare
+ rm -rf $(PKG_BUILD_DIR)
+ mkdir -p $(PKG_BUILD_DIR)
+ cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).bin $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin
+ cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt
+endef
+
+define Build/Compile
+ true
+endef
+
+define Package/brcmfmac43430-firmware-sdio/install
+ $(INSTALL_DIR) $(1)/lib/firmware/brcm/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin $(1)/lib/firmware/brcm/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt $(1)/lib/firmware/brcm/
+endef
+
+$(eval $(call BuildPackage,brcmfmac43430-firmware-sdio))