[2/2] package/linux-firmware: add option for Intel NPU firmware

Message ID 20250401142539.4009844-2-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/2] package/linux-firmware: bump version to 20250311
Related show

Commit Message

Dario Binacchi April 1, 2025, 2:25 p.m. UTC
Add an option to install the firmware files for Intel Neural Processing
Unit (NPU) device.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 package/linux-firmware/Config.in         | 13 +++++++++++++
 package/linux-firmware/linux-firmware.mk |  5 +++++
 2 files changed, 18 insertions(+)

Patch

diff --git a/package/linux-firmware/Config.in b/package/linux-firmware/Config.in
index 2daeeb53b496..83da3676db11 100644
--- a/package/linux-firmware/Config.in
+++ b/package/linux-firmware/Config.in
@@ -732,4 +732,17 @@  config BR2_PACKAGE_LINUX_FIRMWARE_RP2
 
 endmenu
 
+menu "NPU Firmware"
+
+config BR2_PACKAGE_LINUX_FIRMWARE_INTEL_NPU
+	bool "Intel NPU firmware"
+	help
+	  Firmware files for Intel NPU device. Intel NPU device is an
+	  AI inference accelerator integrated with Intel client CPUs.
+	  The full device name is Neural Processing Unit, but the
+	  Linux kernel driver uses the older name Versatile Processing
+	  Unit (VPU).
+
+endmenu
+
 endif
diff --git a/package/linux-firmware/linux-firmware.mk b/package/linux-firmware/linux-firmware.mk
index 0c0a2d5c4eb3..e5e1b32dfd84 100644
--- a/package/linux-firmware/linux-firmware.mk
+++ b/package/linux-firmware/linux-firmware.mk
@@ -932,6 +932,11 @@  ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RP2),y)
 LINUX_FIRMWARE_FILES += rp2.fw
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_INTEL_NPU),y)
+LINUX_FIRMWARE_FILES += intel/vpu/vpu_*.bin
+LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENSE.intel_vpu
+endif
+
 ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
 
 define LINUX_FIRMWARE_BUILD_CMDS