aboutsummaryrefslogtreecommitdiffstats
path: root/package/firmware
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-06-14 17:21:19 +0200
committerDaniel Golle <daniel@makrotopia.org>2018-06-14 18:15:33 +0200
commit037ef13a161c6167b328aaf6ca0e259a5b7db037 (patch)
tree2601e5e3bad7bc780f580ff8f6c7efb711d233de /package/firmware
parenta2f17214cd40c3557db34e262b28e25dcbf47edf (diff)
downloadupstream-037ef13a161c6167b328aaf6ca0e259a5b7db037.tar.gz
upstream-037ef13a161c6167b328aaf6ca0e259a5b7db037.tar.bz2
upstream-037ef13a161c6167b328aaf6ca0e259a5b7db037.zip
brcm2708: move wifi calibration EEPROMs out of base-files
Ship EEPROM blobs for specific supported board only and don't have them lurking around in our source tree but rather download them from @github/RPi-Distro/firmware-nonfree upstream. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/firmware')
-rw-r--r--package/firmware/brcmfmac-board-rpi/Makefile88
1 files changed, 88 insertions, 0 deletions
diff --git a/package/firmware/brcmfmac-board-rpi/Makefile b/package/firmware/brcmfmac-board-rpi/Makefile
new file mode 100644
index 0000000000..4268d9124c
--- /dev/null
+++ b/package/firmware/brcmfmac-board-rpi/Makefile
@@ -0,0 +1,88 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=brcmfmac-board-rpi
+PKG_VERSION:=2018-03-12
+PKG_RELEASE:=86e88fbf0345da49555d0ec34c80b4fbae7d0cd3
+PKG_FLAGS:=nonshared
+
+include $(INCLUDE_DIR)/package.mk
+
+BRCMFMAC434XX_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(PKG_RELEASE)/brcm/
+BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(PKG_RELEASE)
+BRCMFMAC43455_SDIO_FILE:=brcmfmac43455-sdio-$(PKG_RELEASE)
+
+define Download/brcmfmac43430_sdio_txt
+ FILE:=$(BRCMFMAC43430_SDIO_FILE).txt
+ URL:=$(BRCMFMAC434XX_SDIO_URL)
+ URL_FILE:=brcmfmac43430-sdio.txt
+ HASH:=e4ce7ad5ce72406f958ed758539b65d958d1c0eb3e46e3f8e9f02b510d88e0b0
+endef
+$(eval $(call Download,brcmfmac43430_sdio_txt))
+
+define Download/brcmfmac43455_sdio_txt
+ FILE:=$(BRCMFMAC43455_SDIO_FILE).txt
+ URL:=$(BRCMFMAC434XX_SDIO_URL)
+ URL_FILE:=brcmfmac43455-sdio.txt
+ HASH:=15698c62457bcf25e60d063e6c666d6e1b7dacdf2b03e6d14ebbc619de6da6b7
+endef
+$(eval $(call Download,brcmfmac43455_sdio_txt))
+
+define Download/brcmfmac43455_sdio_clm_blob
+ FILE:=$(BRCMFMAC43455_SDIO_FILE).clm_blob
+ URL:=$(BRCMFMAC434XX_SDIO_URL)
+ URL_FILE:=brcmfmac43455-sdio.clm_blob
+ HASH:=8e2250518bc789e53109728c3c0a6124bc3801a75a1cb4966125753cf1f0252e
+endef
+$(eval $(call Download,brcmfmac43455_sdio_clm_blob))
+
+define Package/brcmfmac-board-rpi/Default
+ SECTION:=firmware
+ CATEGORY:=Firmware
+ URL:=https://github.com/RPi-Distro/firmware-nonfree/
+ DEPENDS:=@TARGET_brcm2708
+ PKGARCH:=all
+endef
+
+define Package/brcmfmac-board-rpi2
+ $(call Package/brcmfmac-board-rpi/Default)
+ TITLE:=BCM43430 RPi SDIO NVRAM
+endef
+
+define Package/brcmfmac-board-rpi2/description
+ NVRAM for the Broadcom BCM43430 on RPi boards.
+endef
+
+define Package/brcmfmac-board-rpi3
+ $(call Package/brcmfmac-board-rpi/Default)
+ TITLE:=BCM43455 RPi SDIO NVRAM
+endef
+
+define Package/brcmfmac-board-rpi3/description
+ NVRAM and localisations blob for the Broadcom BCM43455 on RPi boards.
+endef
+
+define Build/Prepare
+ rm -rf $(PKG_BUILD_DIR)
+ mkdir -p $(PKG_BUILD_DIR)
+ cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt
+ cp $(DL_DIR)/$(BRCMFMAC43455_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43455-sdio.txt
+ cp $(DL_DIR)/$(BRCMFMAC43455_SDIO_FILE).clm_blob $(PKG_BUILD_DIR)/brcmfmac43455-sdio.clm_blob
+endef
+
+define Build/Compile
+ true
+endef
+
+define Package/brcmfmac-board-rpi2/install
+ $(INSTALL_DIR) $(1)/lib/firmware/brcm/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt $(1)/lib/firmware/brcm/
+endef
+
+define Package/brcmfmac-board-rpi3/install
+ $(INSTALL_DIR) $(1)/lib/firmware/brcm/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43455-sdio.txt $(1)/lib/firmware/brcm/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43455-sdio.clm_blob $(1)/lib/firmware/brcm/
+endef
+
+$(eval $(call BuildPackage,brcmfmac-board-rpi2))
+$(eval $(call BuildPackage,brcmfmac-board-rpi3))