Skip to contentSkip to conversation

mesa-demos: Make package configuration specific to i.MX

PATCH New Tom Hochstein 1 participant 3 messages Oct 12, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 recipes-graphics/mesa/mesa-demos_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +1 -1
index 1f070a4..ac5bf65 100644
@@ -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
#2 lore raw

PATCH 3/3 mesa-demos: Refactor to use the new i.MX feature overrides

Configure the package using the existence of 2D and/or 3D hardware.

---
 recipes-graphics/mesa/mesa-demos_%.bbappend | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +12 -3
index 722d53d..e900e1f 100644
@@ -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
#1 lore raw

PATCH 2/3 mesa-demos: Fix configuration for Wayland on i.MX

In reply to Tom Hochstein

If distro features contains wayland, we assume a wayland backend and configure the package accordingly.

---
 recipes-graphics/mesa/mesa-demos_%.bbappend | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +3 -4
index ac5bf65..722d53d 100644
@@ -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