diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2018-07-10 08:07:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-15 16:16:16 +0100 |
commit | 3c16339f7321ca9476f16f5235974b42b6d6d4ad (patch) | |
tree | 4805a0f8c93fbca07615fc24f03f0dbac4cabe8c /meta/recipes-graphics/drm | |
parent | 8e3fb6ff24ef52d0176f8a3d966af8dc6c83a6c6 (diff) | |
download | poky-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/drm')
-rw-r--r-- | meta/recipes-graphics/drm/libdrm_2.4.92.bb | 26 |
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" | |||
8 | LICENSE = "MIT" | 8 | LICENSE = "MIT" |
9 | LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" | 9 | LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" |
10 | PROVIDES = "drm" | 10 | PROVIDES = "drm" |
11 | DEPENDS = "libpthread-stubs libpciaccess" | 11 | DEPENDS = "libpthread-stubs" |
12 | 12 | ||
13 | SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \ | 13 | SRC_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 | ||
18 | inherit meson pkgconfig manpages | 18 | inherit meson pkgconfig manpages |
19 | 19 | ||
20 | EXTRA_OEMESON = "-Dvalgrind=false \ | 20 | PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs" |
21 | -Dcairo-tests=false \ | 21 | PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false" |
22 | -Dinstall-test-programs=true \ | 22 | PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess" |
23 | -Domap=true \ | 23 | PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false" |
24 | -Detnaviv=true" | 24 | PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false" |
25 | 25 | PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false" | |
26 | PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false" | ||
27 | PACKAGECONFIG[omap] = "-Domap=true,-Domap=false" | ||
28 | PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false" | ||
29 | PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false" | ||
30 | PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false" | ||
31 | PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false" | ||
32 | PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false" | ||
33 | PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false" | ||
34 | PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind" | ||
35 | PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false" | ||
36 | PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false" | ||
37 | PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev" | ||
26 | PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native" | 38 | PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native" |
27 | 39 | ||
28 | ALLOW_EMPTY_${PN}-drivers = "1" | 40 | ALLOW_EMPTY_${PN}-drivers = "1" |