514291f39e
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
24 lines
875 B
Makefile
24 lines
875 B
Makefile
################################################################################
|
|
#
|
|
# rpi-wifi-firmware
|
|
#
|
|
################################################################################
|
|
|
|
RPI_WIFI_FIRMWARE_VERSION = 54bab3d6a6d43239c71d26464e6e10e5067ffea7
|
|
# brcmfmac43430-sdio.bin comes from linux-firmware
|
|
RPI_WIFI_FIRMWARE_SOURCE = brcmfmac43430-sdio.txt
|
|
# git repo contains a lot of unrelated files
|
|
RPI_WIFI_FIRMWARE_SITE = https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/$(RPI_WIFI_FIRMWARE_VERSION)/brcm80211/brcm
|
|
RPI_WIFI_FIRMWARE_LICENSE = PROPRIETARY
|
|
|
|
define RPI_WIFI_FIRMWARE_EXTRACT_CMDS
|
|
cp $(RPI_WIFI_FIRMWARE_DL_DIR)/$($(PKG)_SOURCE) $(@D)/
|
|
endef
|
|
|
|
define RPI_WIFI_FIRMWARE_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0644 $(@D)/$(RPI_WIFI_FIRMWARE_SOURCE) \
|
|
$(TARGET_DIR)/lib/firmware/brcm/$(RPI_WIFI_FIRMWARE_SOURCE)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|