diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-04-24 15:59:20 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:19:19 +0100 |
commit | 4c14b094985216c433d330fb3d9532d4b6c91fcf (patch) | |
tree | 6970f383436ca29450779bd98c378aae89f2e079 /meta/recipes-graphics/mesa | |
parent | 08a38a7865c41ec60f4b993b964f8d477ea0f680 (diff) | |
download | poky-4c14b094985216c433d330fb3d9532d4b6c91fcf.tar.gz |
Globally replace 'base_contains' calls with 'bb.utils.contains'
The base_contains is kept as a compatibility method and we ought to
not use it in OE-Core so we can remove it from base metadata in
future.
(From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl_9.2.5.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 14 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_9.2.5.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_git.bb | 4 |
5 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb index 4bb92f4b05..d6e6fbceb1 100644 --- a/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb +++ b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb | |||
@@ -22,10 +22,10 @@ SRC_URI[sha256sum] = "9703fa0646b32a1e68d2abf5628f936f77bf97c69ffcaac90de380820a | |||
22 | inherit autotools pkgconfig | 22 | inherit autotools pkgconfig |
23 | 23 | ||
24 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ | 24 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ |
25 | ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 25 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
26 | 26 | ||
27 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now | 27 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now |
28 | #${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" | 28 | #${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" |
29 | 29 | ||
30 | PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" | 30 | PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" |
31 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" | 31 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" |
diff --git a/meta/recipes-graphics/mesa/mesa-gl_9.2.5.bb b/meta/recipes-graphics/mesa/mesa-gl_9.2.5.bb index 21f6151f29..8c7d8e8d63 100644 --- a/meta/recipes-graphics/mesa/mesa-gl_9.2.5.bb +++ b/meta/recipes-graphics/mesa/mesa-gl_9.2.5.bb | |||
@@ -6,6 +6,6 @@ FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/mesa-${PV}", "${FILE_DIRNAM | |||
6 | 6 | ||
7 | PROVIDES = "virtual/libgl virtual/mesa" | 7 | PROVIDES = "virtual/libgl virtual/mesa" |
8 | 8 | ||
9 | PACKAGECONFIG ??= "dri ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 9 | PACKAGECONFIG ??= "dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
10 | 10 | ||
11 | EXCLUDE_FROM_WORLD = "1" | 11 | EXCLUDE_FROM_WORLD = "1" |
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 96313b5da5..a33b7b52a0 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -26,8 +26,8 @@ REQUIRED_DISTRO_FEATURES = "opengl" | |||
26 | EXTRA_OECONF = "--enable-shared-glapi" | 26 | EXTRA_OECONF = "--enable-shared-glapi" |
27 | 27 | ||
28 | PACKAGECONFIG ??= "egl gles dri \ | 28 | PACKAGECONFIG ??= "egl gles dri \ |
29 | ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\ | 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\ |
30 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ | 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ |
31 | " | 31 | " |
32 | 32 | ||
33 | X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" | 33 | X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" |
@@ -45,18 +45,18 @@ EXTRA_OECONF += "--enable-gbm" | |||
45 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" | 45 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" |
46 | 46 | ||
47 | EGL_PLATFORMS = "drm" | 47 | EGL_PLATFORMS = "drm" |
48 | EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'x11', ',x11', '', d)}" | 48 | EGL_PLATFORMS .="${@bb.utils.contains('PACKAGECONFIG', 'x11', ',x11', '', d)}" |
49 | EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}" | 49 | EGL_PLATFORMS .="${@bb.utils.contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}" |
50 | PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl" | 50 | PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl" |
51 | 51 | ||
52 | PACKAGECONFIG[openvg] = "--enable-openvg, --disable-openvg" | 52 | PACKAGECONFIG[openvg] = "--enable-openvg, --disable-openvg" |
53 | 53 | ||
54 | GALLIUMDRIVERS = "swrast" | 54 | GALLIUMDRIVERS = "swrast" |
55 | GALLIUMDRIVERS_LLVM33 = "${@base_contains('PACKAGECONFIG', 'r600', 'radeonsi,r600', '', d)}" | 55 | GALLIUMDRIVERS_LLVM33 = "${@bb.utils.contains('PACKAGECONFIG', 'r600', 'radeonsi,r600', '', d)}" |
56 | GALLIUMDRIVERS_LLVM33_ENABLED = "${@base_version_less_or_equal('MESA_LLVM_RELEASE', '3.2', False, len('${GALLIUMDRIVERS_LLVM33}') > 0, d)}" | 56 | GALLIUMDRIVERS_LLVM33_ENABLED = "${@base_version_less_or_equal('MESA_LLVM_RELEASE', '3.2', False, len('${GALLIUMDRIVERS_LLVM33}') > 0, d)}" |
57 | GALLIUMDRIVERS_LLVM = "r300,svga,nouveau${@',${GALLIUMDRIVERS_LLVM33}' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" | 57 | GALLIUMDRIVERS_LLVM = "r300,svga,nouveau${@',${GALLIUMDRIVERS_LLVM33}' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" |
58 | GALLIUMDRIVERS_append_x86 = "${@base_contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" | 58 | GALLIUMDRIVERS_append_x86 = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" |
59 | GALLIUMDRIVERS_append_x86-64 = "${@base_contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" | 59 | GALLIUMDRIVERS_append_x86-64 = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" |
60 | # keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers | 60 | # keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers |
61 | PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" | 61 | PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" |
62 | PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" | 62 | PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" |
diff --git a/meta/recipes-graphics/mesa/mesa_9.2.5.bb b/meta/recipes-graphics/mesa/mesa_9.2.5.bb index 737ed1a6cb..02ecd463e6 100644 --- a/meta/recipes-graphics/mesa/mesa_9.2.5.bb +++ b/meta/recipes-graphics/mesa/mesa_9.2.5.bb | |||
@@ -13,7 +13,7 @@ S = "${WORKDIR}/Mesa-${PV}" | |||
13 | #because we cannot rely on the fact that all apps will use pkgconfig, | 13 | #because we cannot rely on the fact that all apps will use pkgconfig, |
14 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER | 14 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER |
15 | do_install_append() { | 15 | do_install_append() { |
16 | if ${@base_contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then | 16 | if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then |
17 | sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@base_contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h | 17 | sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h |
18 | fi | 18 | fi |
19 | } | 19 | } |
diff --git a/meta/recipes-graphics/mesa/mesa_git.bb b/meta/recipes-graphics/mesa/mesa_git.bb index 0abedbcb83..1e6fdb5cf0 100644 --- a/meta/recipes-graphics/mesa/mesa_git.bb +++ b/meta/recipes-graphics/mesa/mesa_git.bb | |||
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git" | |||
18 | #because we cannot rely on the fact that all apps will use pkgconfig, | 18 | #because we cannot rely on the fact that all apps will use pkgconfig, |
19 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER | 19 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER |
20 | do_install_append() { | 20 | do_install_append() { |
21 | if ${@base_contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then | 21 | if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then |
22 | sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@base_contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h | 22 | sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h |
23 | fi | 23 | fi |
24 | } | 24 | } |