2016-04-03 20:05:55 +00:00
|
|
|
#
|
2016-04-01 07:11:39 +00:00
|
|
|
# Copyright (C) 2016 OpenWrt.org
|
2016-04-03 20:05:55 +00:00
|
|
|
# Copyright (C) 2016 LEDE project
|
2016-04-01 07:11:39 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2016-09-15 07:07:50 +00:00
|
|
|
PKG_NAME:=brcmfmac-firmware-43430-sdio
|
2016-07-27 10:08:50 +00:00
|
|
|
PKG_VERSION:=2016-06-07
|
|
|
|
PKG_RELEASE:=a7491de4c4b2f1ceb5d0dfa5350b95e5c6fb9bd4
|
2016-04-01 07:11:39 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2016-04-16 09:25:56 +00:00
|
|
|
BRCMFMAC43430_SDIO_URL:=@GITHUB/RPi-Distro/firmware-nonfree/$(PKG_RELEASE)/brcm80211/brcm/
|
|
|
|
BRCMFMAC43430_SDIO_FILE:=brcmfmac43430-sdio-$(PKG_RELEASE)
|
2016-04-01 07:11:39 +00:00
|
|
|
|
|
|
|
define Download/brcmfmac43430_sdio_bin
|
|
|
|
FILE:=$(BRCMFMAC43430_SDIO_FILE).bin
|
|
|
|
URL:=$(BRCMFMAC43430_SDIO_URL)
|
|
|
|
URL_FILE:=brcmfmac43430-sdio.bin
|
2016-07-27 10:08:50 +00:00
|
|
|
MD5SUM:=b24aad300e161782072b227abe9862f7
|
2016-04-01 07:11:39 +00:00
|
|
|
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))
|
|
|
|
|
2016-09-15 07:07:50 +00:00
|
|
|
define Package/brcmfmac-firmware-43430-sdio
|
2016-04-01 07:11:39 +00:00
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
2016-09-15 07:07:50 +00:00
|
|
|
TITLE:=Broadcom BCM43430 FullMac SDIO firmware
|
2016-04-01 07:11:39 +00:00
|
|
|
URL:=http://www.broadcom.com/
|
|
|
|
endef
|
|
|
|
|
2016-09-15 07:07:50 +00:00
|
|
|
define Package/brcmfmac-firmware-43430-sdio/description
|
2016-04-01 07:11:39 +00:00
|
|
|
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
|
|
|
|
|
2016-09-15 07:07:50 +00:00
|
|
|
define Package/brcmfmac-firmware-43430-sdio/install
|
2016-04-01 07:11:39 +00:00
|
|
|
$(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
|
|
|
|
|
2016-09-15 07:07:50 +00:00
|
|
|
$(eval $(call BuildPackage,brcmfmac-firmware-43430-sdio))
|