summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-11-15 03:23:50 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2018-11-28 03:29:39 (GMT)
commitb90dc177252a8d63ae47567f49452486b49bdca5 (patch)
tree74c523db8a671b69ceb88a0ec995ba4c479e272d
parent80d9481197496e6a8e107bf6ce235f42b6238d46 (diff)
downloadmeta-intel-b90dc177252a8d63ae47567f49452486b49bdca5.tar.gz
intel-media-driver: add recipe
Hardware accelerated video driver that supports Intel(R) HD Graphics starting from Broadwell. Please see for details: https://01.org/intel-media-for-linux Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--conf/include/maintainers.inc1
-rw-r--r--recipes-multimedia/libva/intel-media-driver/0001-linux-fix-build-when-using-musl.patch28
-rw-r--r--recipes-multimedia/libva/intel-media-driver_18.3.0.bb37
3 files changed, 66 insertions, 0 deletions
diff --git a/conf/include/maintainers.inc b/conf/include/maintainers.inc
index 563831c..55df19d 100644
--- a/conf/include/maintainers.inc
+++ b/conf/include/maintainers.inc
@@ -5,6 +5,7 @@ RECIPE_MAINTAINER_pn-core-image-rt-sdk = "Anuj Mittal <anuj.mittal@intel.com>"
5RECIPE_MAINTAINER_pn-gma500-gfx-check = "Anuj Mittal <anuj.mittal@intel.com>" 5RECIPE_MAINTAINER_pn-gma500-gfx-check = "Anuj Mittal <anuj.mittal@intel.com>"
6RECIPE_MAINTAINER_pn-gmmlib = "Anuj Mittal <anuj.mittal@intel.com>" 6RECIPE_MAINTAINER_pn-gmmlib = "Anuj Mittal <anuj.mittal@intel.com>"
7RECIPE_MAINTAINER_pn-intel-gpu-tools = "Anuj Mittal <anuj.mittal@intel.com>" 7RECIPE_MAINTAINER_pn-intel-gpu-tools = "Anuj Mittal <anuj.mittal@intel.com>"
8RECIPE_MAINTAINER_pn-intel-media-driver = "Anuj Mittal <anuj.mittal@intel.com>"
8RECIPE_MAINTAINER_pn-intel-microcode = "Anuj Mittal <anuj.mittal@intel.com>" 9RECIPE_MAINTAINER_pn-intel-microcode = "Anuj Mittal <anuj.mittal@intel.com>"
9RECIPE_MAINTAINER_pn-core-image-minimal-initramfs = "Anuj Mittal <anuj.mittal@intel.com>" 10RECIPE_MAINTAINER_pn-core-image-minimal-initramfs = "Anuj Mittal <anuj.mittal@intel.com>"
10RECIPE_MAINTAINER_pn-iucode-tool = "Anuj Mittal <anuj.mittal@intel.com>" 11RECIPE_MAINTAINER_pn-iucode-tool = "Anuj Mittal <anuj.mittal@intel.com>"
diff --git a/recipes-multimedia/libva/intel-media-driver/0001-linux-fix-build-when-using-musl.patch b/recipes-multimedia/libva/intel-media-driver/0001-linux-fix-build-when-using-musl.patch
new file mode 100644
index 0000000..ea203ca
--- /dev/null
+++ b/recipes-multimedia/libva/intel-media-driver/0001-linux-fix-build-when-using-musl.patch
@@ -0,0 +1,28 @@
1From cc96bcbde6556cb412944ddc40f7b6a89fe4ae27 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Fri, 23 Nov 2018 14:22:36 +0800
4Subject: [PATCH] linux: fix build when using musl
5
6Alternative definition for CONCAT which is not defined by musl.
7
8Upstream-Status: Pending
9
10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
11---
12 media_driver/linux/common/os/mos_defs_specific.h | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/media_driver/linux/common/os/mos_defs_specific.h b/media_driver/linux/common/os/mos_defs_specific.h
16index 29a8d566..d8244207 100644
17--- a/media_driver/linux/common/os/mos_defs_specific.h
18+++ b/media_driver/linux/common/os/mos_defs_specific.h
19@@ -81,7 +81,8 @@ typedef struct _TP_CALLBACK_INSTANCE TP_CALLBACK_INSTANCE, *PTP_CALLBACK_INSTANC
20 /* compile-time ASSERT */
21
22 #ifndef C_ASSERT
23- #define __UNIQUENAME( a1, a2 ) __CONCAT( a1, a2 )
24+ #define __CONCATING( a1, a2 ) a1 ## a2
25+ #define __UNIQUENAME( a1, a2 ) __CONCATING( a1, a2 )
26 #define UNIQUENAME( __text ) __UNIQUENAME( __text, __COUNTER__ )
27 #define C_ASSERT(e) typedef char UNIQUENAME(STATIC_ASSERT_)[(e)?1:-1]
28 #endif
diff --git a/recipes-multimedia/libva/intel-media-driver_18.3.0.bb b/recipes-multimedia/libva/intel-media-driver_18.3.0.bb
new file mode 100644
index 0000000..d5f1ddc
--- /dev/null
+++ b/recipes-multimedia/libva/intel-media-driver_18.3.0.bb
@@ -0,0 +1,37 @@
1SUMMARY = "VA driver for Intel Gen based graphics hardware"
2DESCRIPTION = "Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API) \
3user mode driver supporting hardware accelerated decoding, encoding, \
4and video post processing for GEN based graphics hardware."
5
6HOMEPAGE = "https://github.com/intel/media-driver"
7BUGTRACKER = "https://github.com/intel/media-driver/issues"
8
9LICENSE = "MIT & BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6aab5363823095ce682b155fef0231f0 \
11 file://media_driver/media_libvpx.LICENSE;md5=d5b04755015be901744a78cc30d390d4 \
12 "
13
14# Only for 64 bit until this is resolved: https://github.com/intel/media-driver/issues/356
15COMPATIBLE_HOST = '(x86_64).*-linux'
16
17DEPENDS += "libva gmmlib"
18
19SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-18.3 \
20 file://0001-linux-fix-build-when-using-musl.patch \
21 "
22
23SRCREV = "00f9ae5dd6e2bff4da2aaa5b39df4f75588405de"
24S = "${WORKDIR}/git"
25
26inherit cmake pkgconfig
27
28MEDIA_DRIVER_ARCH_x86 = "32"
29MEDIA_DRIVER_ARCH_x86-64 = "64"
30
31EXTRA_OECMAKE += "-DMEDIA_RUN_TEST_SUITE=OFF -DARCH=${MEDIA_DRIVER_ARCH}"
32
33# See: https://github.com/intel/media-driver/issues/358
34FILES_${PN} += " \
35 ${libdir}/dri/ \
36 ${libdir}/igfxcmrt64.so \
37 "