Skip to contentSkip to conversation

gstreamer1.0-plugins-base: Add 'viv-fb' OpenGL Window System option

PATCH New Otavio Salvador 1 participant 2 messages Apr 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 gstreamer1.0-plugins-base: Add 'viv-fb' OpenGL Window System option

This adds the 'viv-fb' PACKAGECONFIG option to allow Vivante GPU window system to work.

---

(no changes since v1)

 .../gstreamer/gstreamer1.0-plugins-base_1.18.4.bb               | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.4.bb +2 -0
index 728a99e08b..4621d9f198 100644
@@ -65,12 +65,14 @@ PACKAGECONFIG[egl]          = ",,virtual/egl"
 PACKAGECONFIG[gbm]          = ",,virtual/libgbm libgudev libdrm"
 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)}"
 
 EXTRA_OEMESON += " \
     -Ddoc=disabled \
Signature · 1 line
2.31.0
#1 lore raw

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

---

Changes in v2:
- drop _append as we are not appending the variable

 .../gstreamer/gstreamer1.0-plugins-base_1.18.4.bb          | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.4.bb +1 -6
index 4621d9f198..beddfb0386 100644
@@ -67,12 +67,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 = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}"
 
 EXTRA_OEMESON += " \
     -Ddoc=disabled \
Signature · 1 line
2.31.0