[2/2] gstreamer1.0-plugins-base: Use bb.utils.filter to reduce code

Submitted by Otavio Salvador on Nov. 20, 2020, 5:36 p.m. | Patch ID: 178211

Details

Message ID 20201120173630.1296722-2-otavio@ossystems.com.br
State New
Headers show

Commit Message

Otavio Salvador Nov. 20, 2020, 5:36 p.m.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

---

 .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb          | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

-- 
2.29.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144877): https://lists.openembedded.org/g/openembedded-core/message/144877
Mute This Topic: https://lists.openembedded.org/mt/78394639/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
index 8813b8faca..43d51552f1 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
@@ -64,12 +64,7 @@  PACKAGECONFIG[wayland]      = ",,wayland-native wayland wayland-protocols libdrm
 PACKAGECONFIG[dispmanx]     = ",,virtual/libomxil"
 PACKAGECONFIG[viv-fb]       = ",,virtual/libgles2 virtual/libg2d"
 
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' wayland', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' dispmanx', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' viv-fb', '', d)}"
+OPENGL_WINSYS_append = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}"
 
 EXTRA_OEMESON += " \
     -Ddoc=disabled \

Comments

Andre McCurdy Nov. 20, 2020, 9:21 p.m.
On Fri, Nov 20, 2020 at 9:36 AM Otavio Salvador
<otavio.salvador@gmail.com> wrote:
>

> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

> ---

>

>  .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb          | 7 +------

>  1 file changed, 1 insertion(+), 6 deletions(-)

>

> diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb

> index 8813b8faca..43d51552f1 100644

> --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb

> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb

> @@ -64,12 +64,7 @@ PACKAGECONFIG[wayland]      = ",,wayland-native wayland wayland-protocols libdrm

>  PACKAGECONFIG[dispmanx]     = ",,virtual/libomxil"

>  PACKAGECONFIG[viv-fb]       = ",,virtual/libgles2 virtual/libg2d"

>

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', '', d)}"

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', '', d)}"

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' wayland', '', d)}"

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' dispmanx', '', d)}"

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', '', d)}"

> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' viv-fb', '', d)}"

> +OPENGL_WINSYS_append = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}"


This drops the first leading space so isn't exactly equivalent.

>  EXTRA_OEMESON += " \

>      -Ddoc=disabled \

> --

> 2.29.2

>

>

> 

>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144882): https://lists.openembedded.org/g/openembedded-core/message/144882
Mute This Topic: https://lists.openembedded.org/mt/78394639/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-