From 261cef0fe9598eadfe8a8efa80def40640f2e9f8 Mon Sep 17 00:00:00 2001 From: "ludovic.desroches@atmel.com" Date: Fri, 1 Apr 2016 08:19:36 +0200 Subject: [PATCH] wilc1000-firmware: new package Firmware for Atmel Wilc1000 wireless device. Signed-off-by: Ludovic Desroches [Thomas: - add missing hash file - simplify installation step] Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/wilc1000-firmware/Config.in | 6 +++++ .../wilc1000-firmware/wilc1000-firmware.hash | 2 ++ .../wilc1000-firmware/wilc1000-firmware.mk | 24 +++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 package/wilc1000-firmware/Config.in create mode 100644 package/wilc1000-firmware/wilc1000-firmware.hash create mode 100644 package/wilc1000-firmware/wilc1000-firmware.mk diff --git a/package/Config.in b/package/Config.in index 7b235191a4..64822bf5f6 100644 --- a/package/Config.in +++ b/package/Config.in @@ -336,6 +336,7 @@ menu "Firmware" source "package/rpi-firmware/Config.in" source "package/sunxi-boards/Config.in" source "package/ux500-firmware/Config.in" + source "package/wilc1000-firmware/Config.in" source "package/zd1211-firmware/Config.in" endmenu source "package/a10disp/Config.in" diff --git a/package/wilc1000-firmware/Config.in b/package/wilc1000-firmware/Config.in new file mode 100644 index 0000000000..df8a7a6b60 --- /dev/null +++ b/package/wilc1000-firmware/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_WILC1000_FIRMWARE + bool "wilc1000-firmware" + help + Firmware for Atmel Wilc1000 wireless device + + https://github.com/linux4sc/wireless-firmware.git diff --git a/package/wilc1000-firmware/wilc1000-firmware.hash b/package/wilc1000-firmware/wilc1000-firmware.hash new file mode 100644 index 0000000000..5344efe517 --- /dev/null +++ b/package/wilc1000-firmware/wilc1000-firmware.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 a2e7a327dd545ba2051946f7613005cbde88fdd952afb8eecdd1dacda7e767d2 v14.1_Firmware.zip diff --git a/package/wilc1000-firmware/wilc1000-firmware.mk b/package/wilc1000-firmware/wilc1000-firmware.mk new file mode 100644 index 0000000000..5dcf19045b --- /dev/null +++ b/package/wilc1000-firmware/wilc1000-firmware.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# 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) $(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)) -- 2.30.2