![Maxime Hadjinlian](/assets/img/avatar_default.png)
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>
25 lines
884 B
Makefile
25 lines
884 B
Makefile
################################################################################
|
|
#
|
|
# wilc1000-firmware
|
|
#
|
|
################################################################################
|
|
|
|
WILC1000_FIRMWARE_VERSION = 14.1
|
|
WILC1000_FIRMWARE_SITE = https://github.com/linux4sc/wireless-firmware/archive
|
|
WILC1000_FIRMWARE_SOURCE = v$(WILC1000_FIRMWARE_VERSION)_Firmware.zip
|
|
|
|
WILC1000_FIRMWARE_LICENSE = PROPRIETARY
|
|
|
|
define WILC1000_FIRMWARE_EXTRACT_CMDS
|
|
$(UNZIP) -d $(BUILD_DIR) $(WILC1000_FIRMWARE_DL_DIR)/$(WILC1000_FIRMWARE_SOURCE)
|
|
mv $(BUILD_DIR)/wireless-firmware-$(WILC1000_FIRMWARE_VERSION)_Firmware/* $(@D)
|
|
rmdir $(BUILD_DIR)/wireless-firmware-$(WILC1000_FIRMWARE_VERSION)_Firmware
|
|
endef
|
|
|
|
define WILC1000_FIRMWARE_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0644 $(@D)/wilc1003_firmware.bin \
|
|
$(TARGET_DIR)/lib/firmware/atmel/wilc1003_firmware.bin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|