[v2,1/1] package/linux-firmware : Install binary blobs for e100 ethernet driver

Message ID 20190111075009.5274-1-dplamp@gmx.com
State Superseded
Headers show
Series
  • [v2,1/1] package/linux-firmware : Install binary blobs for e100 ethernet driver
Related show

Commit Message

David PICARD Jan. 11, 2019, 7:50 a.m.
From: David Picard <dplamp@gmx.com>

Add an option in the menuconfig  submenu of linux-firmware package. Install
the firmware binary files to the target directory if the option is selected.

---
Changes v1 -> v2
- change BR2_PACKAGE_LINUX_FIRMWARE_E100 to BR2_PACKAGE_LINUX_FIRMWARE_INTEL_E100
- change menu caption from "e100 / Intel 825xx" to "Intel e100 825xx"

Signed-off-by: David Picard <dplamp@gmx.com>
---
 package/linux-firmware/Config.in         | 6 ++++++
 package/linux-firmware/linux-firmware.mk | 5 +++++
 2 files changed, 11 insertions(+)

Comments

Yann E. MORIN Jan. 12, 2019, 7:43 a.m. | #1
David, All,

On 2019-01-11 08:50 +0100, dplamp@gmx.com spake thusly:
> From: David Picard <dplamp@gmx.com>
> 
> Add an option in the menuconfig  submenu of linux-firmware package. Install
> the firmware binary files to the target directory if the option is selected.
> 
> ---
> Changes v1 -> v2
> - change BR2_PACKAGE_LINUX_FIRMWARE_E100 to BR2_PACKAGE_LINUX_FIRMWARE_INTEL_E100
> - change menu caption from "e100 / Intel 825xx" to "Intel e100 825xx"
> 
> Signed-off-by: David Picard <dplamp@gmx.com>

Your SoB line should go before the first '---'.

[--SNIP--]
> diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
> index ee02c7a030..86e1d1e750 100644
> --- a/package/linux-firmware/linux-firmware.mk
> +++ b/package/linux-firmware/linux-firmware.mk
> @@ -389,6 +389,11 @@ LINUX_FIRMWARE_FILES += cxgb4/t5fw*.bin
>  LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_INTEL_E100),y)
> +LINUX_FIRMWARE_FILES += e100/*.bin
> +LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.e100

Please, also add the hash for the license file in
package/linux-firmware/linux-firmware.hash

Regards,
Yann E. MORIN.

> +endif
> +
>  ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_QLOGIC_4X),y)
>  LINUX_FIRMWARE_FILES += \
>  	qed/qed_init_values_zipped-*.bin
> -- 
> 2.17.1
>

Patch

diff --git a/package/linux-firmware/Config.in b/package/linux-firmware/Config.in
index dcc8d4bade..eaf68de8a5 100644
--- a/package/linux-firmware/Config.in
+++ b/package/linux-firmware/Config.in
@@ -325,6 +325,12 @@  config BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T5
 	  Firmware files for Chelsio T5 1Gb and 10Gb ethernet cards
 	  (cxgb4)
 
+config BR2_PACKAGE_LINUX_FIRMWARE_INTEL_E100
+	bool "Intel e100 825xx"
+	help
+	  Firmware files for Intel 825xx handled by driver e100
+	  (e100)
+
 config BR2_PACKAGE_LINUX_FIRMWARE_QLOGIC_4X
 	bool "QLogic FastLinQ 4xxxx"
 	help
diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index ee02c7a030..86e1d1e750 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -389,6 +389,11 @@  LINUX_FIRMWARE_FILES += cxgb4/t5fw*.bin
 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_INTEL_E100),y)
+LINUX_FIRMWARE_FILES += e100/*.bin
+LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.e100
+endif
+
 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_QLOGIC_4X),y)
 LINUX_FIRMWARE_FILES += \
 	qed/qed_init_values_zipped-*.bin