Commit 812109c 1 parent 2f8001f commit 812109c Copy full SHA for 812109c
File tree 2 files changed +58
-0
lines changed
2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (C) 2022 OpenWrt.org
3
+ #
4
+ # This is free software, licensed under the GNU General Public License v2.
5
+ # See /LICENSE for more information.
6
+ #
7
+
8
+ include $(TOPDIR ) /rules.mk
9
+
10
+ PKG_NAME: =ivpu-firmware
11
+ PKG_VERSION: =1.10.1
12
+ PKG_RELEASE: =1
13
+
14
+ PKG_SOURCE: =$(PKG_NAME ) -$(PKG_VERSION ) .tar.gz
15
+ PKG_SOURCE_URL_FILE: =v$(PKG_VERSION ) .tar.gz
16
+ PKG_SOURCE_URL: =https://github.com/intel/linux-npu-driver/archive/refs/tags
17
+ PKG_HASH: =a756de38cde7bd5a0402854d08429d271a33784835b80db3be672ade80570900
18
+ PKG_BUILD_DIR: =$(BUILD_DIR ) /linux-npu-driver-$(PKG_VERSION )
19
+
20
+ include $(INCLUDE_DIR ) /package.mk
21
+
22
+ define Package/ivpu-firmware
23
+ SECTION:=firmware
24
+ CATEGORY:=Firmware
25
+ TITLE:=Intel VPU firmware
26
+ URL:=$(PKG_SOURCE_URL )
27
+ DEPENDS:=
28
+ endef
29
+
30
+ define Build/Compile
31
+ true
32
+ endef
33
+
34
+ define Package/ivpu-firmware/install
35
+ $(INSTALL_DIR ) $(1 ) /lib/firmware/intel/vpu
36
+ $(INSTALL_DATA ) \
37
+ $(PKG_BUILD_DIR ) /firmware/bin/*.bin \
38
+ $(1 ) /lib/firmware/intel/vpu
39
+ endef
40
+
41
+ $(eval $(call BuildPackage,ivpu-firmware))
Original file line number Diff line number Diff line change @@ -494,6 +494,23 @@ endef
494
494
495
495
$(eval $(call KernelPackage,drm-i915))
496
496
497
+ define KernelPackage/drm-ivpu
498
+ SUBMENU:=$(VIDEO_MENU )
499
+ TITLE:=Intel VPU DRM support
500
+ DEPENDS:=@TARGET_x86 +ivpu-firmware
501
+ KCONFIG:=CONFIG_DRM_ACCEL_IVPU \
502
+ CONFIG_DRM_ACCEL_HABANALABS=n \
503
+ CONFIG_DRM_ACCEL_QAIC=n \
504
+ CONFIG_DRM_ACCEL=y
505
+ FILES:=$(LINUX_DIR ) /drivers/accel/ivpu/intel_vpu.ko
506
+ AUTOLOAD:=$(call AutoProbe,intel_vpu)
507
+ endef
508
+
509
+ define KernelPackage/drm-ivpu/description
510
+ Direct Rendering Manager (DRM) support for Intel VPU
511
+ endef
512
+
513
+ $(eval $(call KernelPackage,drm-ivpu))
497
514
498
515
define KernelPackage/drm-imx
499
516
SUBMENU:=$(VIDEO_MENU )
You can’t perform that action at this time.
0 commit comments