Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=brcmfmac43430-firmware-sdio
  7. PKG_RELEASE:=1
  8. include $(INCLUDE_DIR)/package.mk
  9. BRCMFMAC43430_SDIO_REV:=54bab3d6a6d43239c71d26464e6e10e5067ffea7
  10. BRCMFMAC43430_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(BRCMFMAC43430_SDIO_REV)/brcm80211/brcm/
  11. BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(BRCMFMAC43430_SDIO_REV)
  12. define Download/brcmfmac43430_sdio_bin
  13. FILE:=$(BRCMFMAC43430_SDIO_FILE).bin
  14. URL:=$(BRCMFMAC43430_SDIO_URL)
  15. URL_FILE:=brcmfmac43430-sdio.bin
  16. MD5SUM:=4a410ab9a1eefe82e158d36df02b3589
  17. endef
  18. $(eval $(call Download,brcmfmac43430_sdio_bin))
  19. define Download/brcmfmac43430_sdio_txt
  20. FILE:=$(BRCMFMAC43430_SDIO_FILE).txt
  21. URL:=$(BRCMFMAC43430_SDIO_URL)
  22. URL_FILE:=brcmfmac43430-sdio.txt
  23. MD5SUM:=8c3cb6d8f0609b43f09d083b4006ec5a
  24. endef
  25. $(eval $(call Download,brcmfmac43430_sdio_txt))
  26. define Package/brcmfmac43430-firmware-sdio
  27. SECTION:=firmware
  28. CATEGORY:=Firmware
  29. TITLE:=Broadcom BCM43430 fullmac SDIO firmware
  30. URL:=http://www.broadcom.com/
  31. endef
  32. define Package/brcmfmac43430-firmware-sdio/description
  33. Broadcom BCM43430 fullmac SDIO firmware
  34. endef
  35. define Build/Prepare
  36. rm -rf $(PKG_BUILD_DIR)
  37. mkdir -p $(PKG_BUILD_DIR)
  38. cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).bin $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin
  39. cp $(DL_DIR)/$(BRCMFMAC43430_SDIO_FILE).txt $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt
  40. endef
  41. define Build/Compile
  42. true
  43. endef
  44. define Package/brcmfmac43430-firmware-sdio/install
  45. $(INSTALL_DIR) $(1)/lib/firmware/brcm/
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.bin $(1)/lib/firmware/brcm/
  47. $(INSTALL_DATA) $(PKG_BUILD_DIR)/brcmfmac43430-sdio.txt $(1)/lib/firmware/brcm/
  48. endef
  49. $(eval $(call BuildPackage,brcmfmac43430-firmware-sdio))