]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa-demos: Refactor to use the new i.MX feature overrides
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 12 Oct 2016 16:59:35 +0000 (11:59 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 27 Oct 2016 12:36:28 +0000 (10:36 -0200)
Configure the package using the existence of 2D and/or
3D hardware.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-graphics/mesa/mesa-demos_%.bbappend

index 722d53dd9861aa192f797be96a79451d5049ac78..e900e1f8716c26d144c038aff90771f3a997d417 100644 (file)
@@ -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}"