summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2021-12-11 17:35:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-12 11:20:00 +0000
commit8af5ed024e11426a45fca2c7b304c1ecf2297abd (patch)
tree830a5f06f19a66a1395ea388563315a4a383c125 /meta/recipes-graphics
parent65c94ca3196e5ef3344a469fea8e30444f2e967a (diff)
downloadpoky-8af5ed024e11426a45fca2c7b304c1ecf2297abd.tar.gz
libva: move PACKAGECONFIG options to libva.inc
This fixes an error in libva-initial build if 'systemd' is in DISTRO_FEATURES and libdrm is set to be built with udev support. | Run-time dependency xfixes found: NO (tried pkgconfig and cmake) | Run-time dependency wayland-client found: YES 1.19.0 | Program wayland-scanner /usr/bin/wayland-scanner found: NO | | ../libva-2.13.0/meson.build:107:4: ERROR: Program 'wayland-scanner /usr/bin/wayland-scanner' not found | | A full log can be found at /home/flk/build/poky/build-rock/tmp/work/cortexa72-cortexa53-crypto-poky-linux/libva-initial/2.13.0-r0/build/meson-logs/meson-log.txt | ERROR: meson failed | WARNING: exit code 1 from a shell command. (From OE-Core rev: cb9923f4e62339192c0d8e3d2852f1e71c1963b9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/libva/libva-initial_2.13.0.bb3
-rw-r--r--meta/recipes-graphics/libva/libva.inc6
-rw-r--r--meta/recipes-graphics/libva/libva_2.13.0.bb5
3 files changed, 9 insertions, 5 deletions
diff --git a/meta/recipes-graphics/libva/libva-initial_2.13.0.bb b/meta/recipes-graphics/libva/libva-initial_2.13.0.bb
index 4c3045bc65..453096822f 100644
--- a/meta/recipes-graphics/libva/libva-initial_2.13.0.bb
+++ b/meta/recipes-graphics/libva/libva-initial_2.13.0.bb
@@ -1,5 +1,8 @@
1require libva.inc 1require libva.inc
2 2
3PACKAGECONFIG ?= ""
4
3do_install:append () { 5do_install:append () {
4 rm -f ${D}${libdir}/*.so* 6 rm -f ${D}${libdir}/*.so*
5} 7}
8
diff --git a/meta/recipes-graphics/libva/libva.inc b/meta/recipes-graphics/libva/libva.inc
index bcf9757c1a..dcdc1f378c 100644
--- a/meta/recipes-graphics/libva/libva.inc
+++ b/meta/recipes-graphics/libva/libva.inc
@@ -27,3 +27,9 @@ UPSTREAM_CHECK_URI = "https://github.com/intel/libva/releases"
27DEPENDS = "libdrm" 27DEPENDS = "libdrm"
28 28
29inherit meson pkgconfig 29inherit meson pkgconfig
30
31PACKAGECONFIG[x11] = "-Dwith_x11=yes,-Dwith_x11=no,virtual/libx11 libxext libxfixes"
32PACKAGECONFIG[glx] = "-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa"
33
34PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native wayland"
35
diff --git a/meta/recipes-graphics/libva/libva_2.13.0.bb b/meta/recipes-graphics/libva/libva_2.13.0.bb
index ed2be289fc..63dc5af8f2 100644
--- a/meta/recipes-graphics/libva/libva_2.13.0.bb
+++ b/meta/recipes-graphics/libva/libva_2.13.0.bb
@@ -5,11 +5,6 @@ PACKAGECONFIG ??= " \
5 ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} \ 5 ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} \
6" 6"
7 7
8PACKAGECONFIG[x11] = "-Dwith_x11=yes,-Dwith_x11=no,virtual/libx11 libxext libxfixes"
9PACKAGECONFIG[glx] = "-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa"
10
11PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native wayland"
12
13PACKAGES =+ "${PN}-x11 ${PN}-glx ${PN}-wayland" 8PACKAGES =+ "${PN}-x11 ${PN}-glx ${PN}-wayland"
14 9
15RDEPENDS:${PN}-x11 =+ "${PN}" 10RDEPENDS:${PN}-x11 =+ "${PN}"