summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch41
1 files changed, 25 insertions, 16 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
index cb3bb7d361..273b45bd49 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
@@ -1,4 +1,4 @@
1From 1f00d5026118ebd48e4ccf83d32d67155c4e7f60 Mon Sep 17 00:00:00 2001 1From e31f68c46ff0c29fa3c22755f18d5dde87b23bf2 Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com> 2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Wed, 30 Dec 2020 16:37:47 +0800 3Date: Wed, 30 Dec 2020 16:37:47 +0800
4Subject: [PATCH] msdk: fix includedir path 4Subject: [PATCH] msdk: fix includedir path
@@ -8,24 +8,33 @@ In cross compilation, need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path.
8Upstream-Status: Inappropriate [OE-specific] 8Upstream-Status: Inappropriate [OE-specific]
9 9
10Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> 10Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
11Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
12
11--- 13---
12 sys/msdk/meson.build | 2 ++ 14 sys/msdk/meson.build | 4 ++++
13 1 file changed, 2 insertions(+) 15 1 file changed, 4 insertions(+)
14 16
15diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build 17diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build
16index 6346c9451..068f38548 100644 18index 24aabc7..6003bb7 100644
17--- a/sys/msdk/meson.build 19--- a/sys/msdk/meson.build
18+++ b/sys/msdk/meson.build 20+++ b/sys/msdk/meson.build
19@@ -40,7 +40,9 @@ endif 21@@ -46,7 +46,9 @@ if mfx_api != 'oneVPL'
22 mfx_dep = dependency('libmfx', version: ['>= 1.0', '<= 1.99'], required: false)
20 23
21 mfx_dep = dependency('libmfx', required: false) 24 if mfx_dep.found()
22 if mfx_dep.found() 25+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
23+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() 26 mfx_incdir = mfx_dep.get_variable('includedir')
24 mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir') 27+ mfx_incdir = pkgconf_sysroot + mfx_incdir
25+ mfx_incdir = pkgconf_sysroot + mfx_incdir 28 mfx_inc = []
26 mfx_inc = [] 29 use_msdk = true
27 else 30 else
28 # Old versions of MediaSDK don't provide a pkg-config file 31@@ -75,7 +77,9 @@ if not use_msdk and mfx_api != 'MSDK'
29-- 32 mfx_dep = dependency('vpl', version: '>= 2.2', required: false)
302.17.1 33
31 34 if mfx_dep.found()
35+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
36 mfx_incdir = mfx_dep.get_variable('includedir')
37+ mfx_incdir = pkgconf_sysroot + mfx_incdir
38 mfx_inc = []
39 use_onevpl = true
40 endif