-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86: add support for Intel NPU device AI accelerator (Meteor Lake/Lun…
…ar Lake/Arrow Lake)
- Loading branch information
1 parent
2f8001f
commit 812109c
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Copyright (C) 2022 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ivpu-firmware | ||
PKG_VERSION:=1.10.1 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://github.com/intel/linux-npu-driver/archive/refs/tags | ||
PKG_HASH:=a756de38cde7bd5a0402854d08429d271a33784835b80db3be672ade80570900 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/linux-npu-driver-$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ivpu-firmware | ||
SECTION:=firmware | ||
CATEGORY:=Firmware | ||
TITLE:=Intel VPU firmware | ||
URL:=$(PKG_SOURCE_URL) | ||
DEPENDS:= | ||
endef | ||
|
||
define Build/Compile | ||
true | ||
endef | ||
|
||
define Package/ivpu-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/intel/vpu | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/firmware/bin/*.bin \ | ||
$(1)/lib/firmware/intel/vpu | ||
endef | ||
|
||
$(eval $(call BuildPackage,ivpu-firmware)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters