mesa-demos: Make package configuration specific to i.MX
PATCH 1/3 mesa-demos: Make package configuration specific to i.MX
Changes to the package configuration should be applied only to i.MX builds.
Signed-off-by Tom Hochstein <[email protected]>
--- recipes-graphics/mesa/mesa-demos_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +1 -1
@@ -10,7 +10,7 @@ PACKAGECONFIG_remove_mx6 = " \ bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}" PACKAGECONFIG_remove_mx6sl = "gles1 gles2" -PACKAGECONFIG_append = "\ +PACKAGECONFIG_append_mx6 = " \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d), d)} \ "
Signature · 1 line
1.9.1
PATCH 2/3 mesa-demos: Fix configuration for Wayland on i.MX
If distro features contains wayland, we assume a wayland backend and configure the package accordingly.
Signed-off-by Tom Hochstein <[email protected]>
--- recipes-graphics/mesa/mesa-demos_%.bbappend | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +3 -4
@@ -6,11 +6,10 @@ SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i. file://Add-OpenVG-demos-to-support-wayland.patch" PACKAGECONFIG_remove_mx6 = " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ - bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}" + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \ +" PACKAGECONFIG_remove_mx6sl = "gles1 gles2" PACKAGECONFIG_append_mx6 = " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ - bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d), d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)} \ "
Signature · 1 line
1.9.1
PATCH 3/3 mesa-demos: Refactor to use the new i.MX feature overrides
In reply to Tom HochsteinConfigure the package using the existence of 2D and/or 3D hardware.
Signed-off-by Tom Hochstein <[email protected]>
--- recipes-graphics/mesa/mesa-demos_%.bbappend | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +12 -3
@@ -5,11 +5,20 @@ SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i. file://Additional-eglSwapBuffer-calling-makes-wrong-throttl.patch \ file://Add-OpenVG-demos-to-support-wayland.patch" -PACKAGECONFIG_remove_mx6 = " \ +PACKAGECONFIG_IMX_TO_REMOVE = "" +PACKAGECONFIG_IMX_TO_REMOVE_imxgpu2d = " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \ + gles1 \ + gles2 \ +" +PACKAGECONFIG_IMX_TO_REMOVE_imxgpu3d = " \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \ " -PACKAGECONFIG_remove_mx6sl = "gles1 gles2" -PACKAGECONFIG_append_mx6 = " \ +PACKAGECONFIG_IMX_TO_APPEND = "" +PACKAGECONFIG_IMX_TO_APPEND_imxgpu2d = " \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)} \ " + +PACKAGECONFIG_remove = " ${PACKAGECONFIG_IMX_TO_REMOVE}" +PACKAGECONFIG_append = " ${PACKAGECONFIG_IMX_TO_APPEND}"
Signature · 1 line
1.9.1