summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-08-20 23:35:43 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2019-08-21 04:27:06 (GMT)
commit065895e2c5aae438de0194bc579505b18035eb13 (patch)
treeae8aa5923275c9f39785d27782401d90a5093e46 /recipes-multimedia
parent2558672de2e5b489b064776b2b0d3926ad1a0eb5 (diff)
downloadmeta-intel-065895e2c5aae438de0194bc579505b18035eb13.tar.gz
intel-media-driver: dont mark warnings as errors
Switch the driver configuration MEDIA_BUILD_FATAL_WARNINGS to OFF so -Werror is not used. Also patch out the use of -Werror=implicit-function-declaration to prevent errors when building with gcc9. | cc1plus: error: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ [-Werror] Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch35
-rw-r--r--recipes-multimedia/libva/intel-media-driver_19.2.1.bb7
2 files changed, 41 insertions, 1 deletions
diff --git a/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch b/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch
new file mode 100644
index 0000000..d3a7707
--- /dev/null
+++ b/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch
@@ -0,0 +1,35 @@
1From 676b76e16ba6468d95c452eb891e34fcfc498c07 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Wed, 21 Aug 2019 08:21:39 +0800
4Subject: [PATCH] dont mark implicit-function-declaration warnings as errors
5
6Otherwise, when building with gcc 9.2:
7
8| cc1plus: error: '-Werror=' argument
9|'-Werror=implicit-function-declaration' is not valid for C++ [-Werror]
10
11Also see:
12https://github.com/intel/media-driver/issues/712
13
14Upstream-Status: Pending
15
16Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
17---
18 media_driver/cmake/linux/media_compile_flags_linux.cmake | 1 -
19 1 file changed, 1 deletion(-)
20
21diff --git a/media_driver/cmake/linux/media_compile_flags_linux.cmake b/media_driver/cmake/linux/media_compile_flags_linux.cmake
22index 9253b2d6..d2cdb34e 100755
23--- a/media_driver/cmake/linux/media_compile_flags_linux.cmake
24+++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake
25@@ -32,7 +32,6 @@ set(MEDIA_COMPILER_FLAGS_COMMON
26 -Wno-overflow
27 -Wno-parentheses
28 -Wno-delete-incomplete
29- -Werror=implicit-function-declaration
30 -Werror=address
31 -Werror=format-security
32 -Werror=non-virtual-dtor
33--
342.21.0
35
diff --git a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
index ee5a7f0..53ade25 100644
--- a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
+++ b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
@@ -20,6 +20,7 @@ REQUIRED_DISTRO_FEATURES = "opengl"
20DEPENDS += "libva gmmlib" 20DEPENDS += "libva gmmlib"
21 21
22SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-19.2 \ 22SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-19.2 \
23 file://0001-dont-mark-implicit-function-declaration-warnings-as-.patch \
23 " 24 "
24 25
25SRCREV = "9b648d81fb43f70c49304011371279713cb13ccc" 26SRCREV = "9b648d81fb43f70c49304011371279713cb13ccc"
@@ -34,7 +35,11 @@ inherit cmake pkgconfig
34MEDIA_DRIVER_ARCH_x86 = "32" 35MEDIA_DRIVER_ARCH_x86 = "32"
35MEDIA_DRIVER_ARCH_x86-64 = "64" 36MEDIA_DRIVER_ARCH_x86-64 = "64"
36 37
37EXTRA_OECMAKE += "-DMEDIA_RUN_TEST_SUITE=OFF -DARCH=${MEDIA_DRIVER_ARCH}" 38EXTRA_OECMAKE += " \
39 -DMEDIA_RUN_TEST_SUITE=OFF \
40 -DARCH=${MEDIA_DRIVER_ARCH} \
41 -DMEDIA_BUILD_FATAL_WARNINGS=OFF \
42 "
38 43
39# See: https://github.com/intel/media-driver/issues/358 44# See: https://github.com/intel/media-driver/issues/358
40FILES_${PN} += " \ 45FILES_${PN} += " \