weston : refactor to identify EGL, cairoglesv2 support
PATCH v2 1/1 weston : refactor to identify EGL, cairoglesv2 support
From: Prabhu Sundararaj <[email protected]>
--- meta/recipes-graphics/wayland/weston_1.4.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
meta/recipes-graphics/wayland/weston_1.4.0.bb +6 -3
@@ -23,13 +23,12 @@ EXTRA_OECONF = "--enable-setuid-install \ --enable-simple-clients \ --enable-clients \ --enable-demo-clients-install \ - --disable-simple-egl-clients \ --disable-libunwind \ --disable-rpi-compositor \ --disable-rdp-compositor" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ "
@@ -39,7 +38,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev way # Weston on KMS PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" # Weston on Wayland (nested Weston) -PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-egl --disable-wayland-compositor,virtual/mesa" +PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" # Weston on X11 PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" # Headless Weston
@@ -50,6 +49,10 @@ PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,ude PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" # VA-API desktop recorder PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" +# Weston with EGL support +PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" +# Weston with cairo glesv2 support +PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo" do_install_append() { # Weston doesn't need the .la files to load modules, so wipe them
Signature · 1 line
1.9.1
Quoted 37 lines · Otavio Salvador
From: Prabhu Sundararaj <[email protected]>
Signed-off-by Prabhu Sundararaj <[email protected]>Signed-off-by Otavio Salvador <[email protected]>--- meta/recipes-graphics/wayland/weston_1.4.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)meta/recipes-graphics/wayland/weston_1.4.0.bb +2
-3@@ -23,13 +23,12 @@ EXTRA_OECONF = "--enable-setuid-install \ --enable-simple-clients \ --enable-clients \ --enable-demo-clients-install \ - --disable-simple-egl-clients \ --disable-libunwind \ --disable-rpi-compositor \ --disable-rdp-compositor" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ "@@ -39,7 +38,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev way # Weston on KMS PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" # Weston on Wayland (nested Weston) -PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-egl --disable-wayland-compositor,virtual/mesa" +PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" # Weston on X11 PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" # Headless Weston
meta/recipes-graphics/wayland/weston_1.4.0.bb PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,ude · line 58
Quoted 10 lines
meta/recipes-graphics/wayland/weston_1.4.0.bb +4
-0@@ -50,6 +49,10 @@ PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,ude PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" # VA-API desktop recorder PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" +# Weston with EGL support +PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" +# Weston with cairo glesv2 support +PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo" do_install_append() { # Weston doesn't need the .la files to load modules, so wipe them
Looks good to me.
Sorry Otavio for the delay introduced by the discussions. Hope it will be merged quickly and get your issue solved :) Thanks!
Quoted 61 lines · Valentin Popa
Quoted 60 lines · Otavio Salvador
From: Prabhu Sundararaj <[email protected]>
Signed-off-by Prabhu Sundararaj <[email protected]>Signed-off-by Otavio Salvador <[email protected]>--- meta/recipes-graphics/wayland/weston_1.4.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)meta/recipes-graphics/wayland/weston_1.4.0.bb +1
-1@@ -23,13 +23,12 @@ EXTRA_OECONF = "--enable-setuid-install \ --enable-simple-clients \ --enable-clients \ --enable-demo-clients-install \ - --disable-simple-egl-clients \ --disable-libunwind \ --disable-rpi-compositor \ --disable-rdp-compositor" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'pam', 'launch','', d)} \ "meta/recipes-graphics/wayland/weston_1.4.0.bb +0
-0@@ -39,7 +38,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','wayland', 'kms fbdev way
# Weston on KMS
PACKAGECONFIG[kms] =
"--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev"
# Weston on Wayland (nested Weston)meta/recipes-graphics/wayland/weston_1.4.0.bb +1
-2-PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-egl --disable-wayland-compositor,virtual/mesa" +PACKAGECONFIG[wayland] ="--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa"
# Weston on X11
PACKAGECONFIG[x11] =
"--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo"
# Headless Westonmeta/recipes-graphics/wayland/weston_1.4.0.bb +0
-0@@ -50,6 +49,10 @@ PACKAGECONFIG[fbdev] ="--enable-fbdev-compositor,--disable-fbdev-compositor,ude
PACKAGECONFIG[launch] =
"--enable-weston-launch,--disable-weston-launch,libpam drm"
# VA-API desktop recorder
PACKAGECONFIG[vaapi] =
"--enable-vaapi-recorder,--disable-vaapi-recorder,libva"meta/recipes-graphics/wayland/weston_1.4.0.bb +4
-2+# Weston with EGL support +PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" +# Weston with cairo glesv2 support +PACKAGECONFIG[cairo-glesv2] =
Quoted 8 lines
Quoted 3 lines
"--with-cairo-glesv2,--with-cairo=image,cairo"
do_install_append(){
# Weston doesn't need the .la files to load modules, so wipe themLooks good to me.
Sorry Otavio for the delay introduced by the discussions. Hope it will be merged quickly and get your issue solved :)
No problem; it was for the better and ensures we have a full understanding of it :-) Please 'ack' it if you can.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Valentin Popa
Acked-by [email protected].Quoted 68 lines · Otavio Salvador
Quoted 59 lines · Valentin Popa
Quoted 58 lines · Otavio Salvador
From: Prabhu Sundararaj <[email protected]>
Signed-off-by Prabhu Sundararaj <[email protected]>Signed-off-by Otavio Salvador <[email protected]>--- meta/recipes-graphics/wayland/weston_1.4.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)meta/recipes-graphics/wayland/weston_1.4.0.bb +1
-1@@ -23,13 +23,12 @@ EXTRA_OECONF = "--enable-setuid-install \ --enable-simple-clients \ --enable-clients \ --enable-demo-clients-install \ - --disable-simple-egl-clients \ --disable-libunwind \ --disable-rpi-compositor \ --disable-rdp-compositor" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'pam', 'launch','', d)} \ "meta/recipes-graphics/wayland/weston_1.4.0.bb +0
-0@@ -39,7 +38,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','wayland', 'kms fbdev way
# Weston on KMS
PACKAGECONFIG[kms] =
"--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev"
# Weston on Wayland (nested Weston)meta/recipes-graphics/wayland/weston_1.4.0.bb +1
-2-PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-egl --disable-wayland-compositor,virtual/mesa" +PACKAGECONFIG[wayland] ="--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa"
# Weston on X11
PACKAGECONFIG[x11] =
"--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo"
# Headless Westonmeta/recipes-graphics/wayland/weston_1.4.0.bb +0
-0@@ -50,6 +49,10 @@ PACKAGECONFIG[fbdev] ="--enable-fbdev-compositor,--disable-fbdev-compositor,ude
PACKAGECONFIG[launch] =
"--enable-weston-launch,--disable-weston-launch,libpam drm"
# VA-API desktop recorder
PACKAGECONFIG[vaapi] =
"--enable-vaapi-recorder,--disable-vaapi-recorder,libva"meta/recipes-graphics/wayland/weston_1.4.0.bb +3
-2+# Weston with EGL support +PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" +# Weston with cairo glesv2 supportQuoted 8 lines
Quoted 4 lines
+PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo"
do_install_append(){
# Weston doesn't need the .la files to load modules, so wipe themLooks good to me.
Sorry Otavio for the delay introduced by the discussions. Hope it will be merged quickly and get your issue solved :)
Quoted 3 lines
No problem; it was for the better and ensures we have a full understanding of it :-) Please 'ack' it if you can.
Quoted 37 lines · Otavio Salvador
From: Prabhu Sundararaj <[email protected]>
Signed-off-by Prabhu Sundararaj <[email protected]>Signed-off-by Otavio Salvador <[email protected]>--- meta/recipes-graphics/wayland/weston_1.4.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)meta/recipes-graphics/wayland/weston_1.4.0.bb +2
-3@@ -23,13 +23,12 @@ EXTRA_OECONF = "--enable-setuid-install \ --enable-simple-clients \ --enable-clients \ --enable-demo-clients-install \ - --disable-simple-egl-clients \ --disable-libunwind \ --disable-rpi-compositor \ --disable-rdp-compositor" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ "@@ -39,7 +38,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev way # Weston on KMS PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" # Weston on Wayland (nested Weston) -PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-egl --disable-wayland-compositor,virtual/mesa" +PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" # Weston on X11 PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" # Headless Weston
meta/recipes-graphics/wayland/weston_1.4.0.bb PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,ude · line 55
Quoted 7 lines
meta/recipes-graphics/wayland/weston_1.4.0.bb +4
-0@@ -50,6 +49,10 @@ PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,ude PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" # VA-API desktop recorder PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" +# Weston with EGL support +PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" +# Weston with cairo glesv2 support +PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo"
Thanks! This was something I was also looking at recently. I'll give it a shot in my testing.
Signature · 1 line
Denys
Quoted 10 lines
meta/recipes-graphics/wayland/weston_1.4.0.bb +0
-0do_install_append() { # Weston doesn't need the .la files to load modules, so wipe themSignature · 7 lines
1.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core