]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
firmware: Add support for Airoha EN7581 NPU firmware
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 1 Sep 2025 16:03:35 +0000 (18:03 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 2 Sep 2025 22:58:48 +0000 (00:58 +0200)
Add support for Airoha EN7581 NPU firmware present in linux-firmware.
Support for it is fully upstream with the Ethernet part fully pushed and
the Wireless Offload currently in progress for various WiFi chip.

Link: https://github.com/openwrt/openwrt/pull/19816
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/firmware/linux-firmware/airoha.mk

index 4d46ac544728181852f73f90a00c93695ad9b913..a89a1966e45233199425f55e60560a08bf8f905e 100644 (file)
@@ -15,3 +15,14 @@ endif
 endef
 
 $(eval $(call BuildPackage,airoha-en8811h-firmware))
+
+Package/airoha-en7581-npu-firmware = $(call Package/firmware-default,Airoha EN7581 NPU firmware,,LICENSE.airoha)
+define Package/airoha-en7581-npu-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/airoha
+       $(CP) \
+               $(PKG_BUILD_DIR)/airoha/en7581_npu_data.bin \
+               $(PKG_BUILD_DIR)/airoha/en7581_npu_rv32.bin \
+               $(1)/lib/firmware/airoha
+endef
+
+$(eval $(call BuildPackage,airoha-en7581-npu-firmware))