From ac65841defece904e91afe1fb51419084c993dba Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Tue, 8 Aug 2023 08:41:07 +0200 Subject: [PATCH] package/onevpl-intel-gpu: new package Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/onevpl-intel-gpu/Config.in | 23 +++++++++++++++++++ .../onevpl-intel-gpu/onevpl-intel-gpu.hash | 3 +++ package/onevpl-intel-gpu/onevpl-intel-gpu.mk | 13 +++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/onevpl-intel-gpu/Config.in create mode 100644 package/onevpl-intel-gpu/onevpl-intel-gpu.hash create mode 100644 package/onevpl-intel-gpu/onevpl-intel-gpu.mk diff --git a/DEVELOPERS b/DEVELOPERS index eb703d52c7..7b6010a556 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -418,6 +418,7 @@ F: package/mpg123/ F: package/ntp/ F: package/nut/ F: package/onevpl/ +F: package/onevpl-intel-gpu/ F: package/opus/ F: package/pciutils/ F: package/perl-crypt-openssl-guess/ diff --git a/package/Config.in b/package/Config.in index 58e653dcd9..1617f7488a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1643,6 +1643,7 @@ menu "Graphics" source "package/libwpe/Config.in" source "package/menu-cache/Config.in" source "package/onevpl/Config.in" + source "package/onevpl-intel-gpu/Config.in" source "package/opencl-clhpp/Config.in" source "package/opencv3/Config.in" source "package/opencv4/Config.in" diff --git a/package/onevpl-intel-gpu/Config.in b/package/onevpl-intel-gpu/Config.in new file mode 100644 index 0000000000..11a1c60a0f --- /dev/null +++ b/package/onevpl-intel-gpu/Config.in @@ -0,0 +1,23 @@ +config BR2_PACKAGE_ONEVPL_INTEL_GPU + bool "onevpl-intel-gpu" + depends on BR2_PACKAGE_ONEVPL_ARCH_SUPPORTS # onevpl + depends on BR2_INSTALL_LIBSTDCPP # onevpl + depends on !BR2_STATIC_LIBS # onevpl + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # onevpl + depends on BR2_TOOLCHAIN_HAS_SYNC_1 # intel-mediadriver + depends on BR2_TOOLCHAIN_HAS_THREADS # onevpl + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # intel-mediadriver + select BR2_PACKAGE_INTEL_MEDIADRIVER # runtime + select BR2_PACKAGE_LIBVA + select BR2_PACKAGE_ONEVPL + help + IntelĀ® oneVPL GPU Runtime is a Runtime implementation of + oneVPL API for Intel Gen GPUs, starting with Tiger Lake. + + https://github.com/oneapi-src/oneVPL-intel-gpu + +comment "onevpl-intel-gpu needs a toolchain w/ dynamic library, gcc >= 7, C++, NPTL" + depends on BR2_PACKAGE_ONEVPL_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_HAS_SYNC_1 + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \ + !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/onevpl-intel-gpu/onevpl-intel-gpu.hash b/package/onevpl-intel-gpu/onevpl-intel-gpu.hash new file mode 100644 index 0000000000..fa8e96959b --- /dev/null +++ b/package/onevpl-intel-gpu/onevpl-intel-gpu.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 51052b2cb0c1d0e628aa1e04b19ffdcd5098993c6c368045a79d87d21ca4ebe5 onevpl-intel-gpu-23.3.1.tar.gz +sha256 c31c3cc5fd66d1250dbca1c3d9011a9f874537442ac71c8de80f2f0fed13f297 LICENSE diff --git a/package/onevpl-intel-gpu/onevpl-intel-gpu.mk b/package/onevpl-intel-gpu/onevpl-intel-gpu.mk new file mode 100644 index 0000000000..33b32b5d94 --- /dev/null +++ b/package/onevpl-intel-gpu/onevpl-intel-gpu.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# onevpl-intel-gpu +# +################################################################################ + +ONEVPL_INTEL_GPU_VERSION = 23.3.1 +ONEVPL_INTEL_GPU_SITE = $(call github,oneapi-src,oneVPL-intel-gpu,intel-onevpl-$(ONEVPL_INTEL_GPU_VERSION)) +ONEVPL_INTEL_GPU_LICENSE = MIT +ONEVPL_INTEL_GPU_LICENSE_FILES = LICENSE +ONEVPL_INTEL_GPU_DEPENDENCIES = libva onevpl + +$(eval $(cmake-package))