summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2018-07-10 08:07:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-15 16:16:16 +0100
commit3c16339f7321ca9476f16f5235974b42b6d6d4ad (patch)
tree4805a0f8c93fbca07615fc24f03f0dbac4cabe8c /meta/recipes-graphics
parent8e3fb6ff24ef52d0176f8a3d966af8dc6c83a6c6 (diff)
downloadpoky-3c16339f7321ca9476f16f5235974b42b6d6d4ad.tar.gz
libdrm: Add PACKAGECONFIG support for all meson options
* Use the same defaults as meson does, with few modifications based on previous EXTRA_OEMESON * move libpciaccess dependency to new intel PACKAGECONFIG (From OE-Core rev: dc7d3b2ff79ae324b96a51ec1be557a432ed351d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/drm/libdrm_2.4.92.bb26
1 files changed, 19 insertions, 7 deletions
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
index 347090cd5f..3eabb10bfd 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
@@ -8,7 +8,7 @@ SECTION = "x11/base"
8LICENSE = "MIT" 8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" 9LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
10PROVIDES = "drm" 10PROVIDES = "drm"
11DEPENDS = "libpthread-stubs libpciaccess" 11DEPENDS = "libpthread-stubs"
12 12
13SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \ 13SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
14 file://musl-ioctl.patch" 14 file://musl-ioctl.patch"
@@ -17,12 +17,24 @@ SRC_URI[sha256sum] = "e9e48fdb4de139dc4d9880aa1473158a16ff6aff63d14341367bd30a51
17 17
18inherit meson pkgconfig manpages 18inherit meson pkgconfig manpages
19 19
20EXTRA_OEMESON = "-Dvalgrind=false \ 20PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs"
21 -Dcairo-tests=false \ 21PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false"
22 -Dinstall-test-programs=true \ 22PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess"
23 -Domap=true \ 23PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false"
24 -Detnaviv=true" 24PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false"
25 25PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false"
26PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false"
27PACKAGECONFIG[omap] = "-Domap=true,-Domap=false"
28PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false"
29PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false"
30PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false"
31PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false"
32PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false"
33PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
34PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind"
35PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
36PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false"
37PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
26PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native" 38PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native"
27 39
28ALLOW_EMPTY_${PN}-drivers = "1" 40ALLOW_EMPTY_${PN}-drivers = "1"