diff options
| author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-02-27 14:02:50 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:17:45 +0000 |
| commit | 254bfb107134702d8d1e0bfbdd1b011212e8c291 (patch) | |
| tree | 188ddf3ea786bc1b913904330e4f95125bd6def4 /meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb | |
| parent | dec5650bc292aa3c4a0a04ace72d2cf762e9620b (diff) | |
| download | poky-254bfb107134702d8d1e0bfbdd1b011212e8c291.tar.gz | |
recipes: Make use of the new bb.utils.filter() function
(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb')
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb index 0d9a12993f..d747cf18f0 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb | |||
| @@ -38,15 +38,12 @@ EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \ | |||
| 38 | 38 | ||
| 39 | # opengl packageconfig factored out to make it easy for distros | 39 | # opengl packageconfig factored out to make it easy for distros |
| 40 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL | 40 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL |
| 41 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)}" | 41 | PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" |
| 42 | 42 | ||
| 43 | PACKAGECONFIG ??= " \ | 43 | PACKAGECONFIG ??= " \ |
| 44 | ${PACKAGECONFIG_GL} \ | 44 | ${PACKAGECONFIG_GL} \ |
| 45 | ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ | 45 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ |
| 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ | ||
| 47 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \ | ||
| 48 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ | 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ |
| 49 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
| 50 | " | 47 | " |
| 51 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," | 48 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," |
| 52 | PACKAGECONFIG[directfb] = "--enable-video-directfb,--disable-video-directfb,directfb" | 49 | PACKAGECONFIG[directfb] = "--enable-video-directfb,--disable-video-directfb,directfb" |
