]> code.ossystems Code Review - meta-freescale.git/commitdiff
Rework i.MX6 UltraLite support to not use other i.MX6 code
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 2 Sep 2015 19:49:45 +0000 (16:49 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:19 +0000 (15:03 -0300)
The i.MX6 UltraLite is very different from the other i.MX6 SoCs and
the current BSP infrastructure needs to be reworked to allow for more
granullar control of the features each SoC provide to control the
changes to be applied for the SoC peripherals support.

For now, it is not possible to express this clearly in the BSP so the
current change is to revert some of the changes done for the i.MX6
UltraLite to be enabled and make sure that the boards using the SoC
does not inherit the 'mx6' override.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/imx6ulevk.conf
recipes-graphics/directfb/directfb_%.bbappend
recipes-graphics/mesa/mesa-demos_%.bbappend
recipes-graphics/mesa/mesa_%.bbappend
recipes-graphics/wayland/weston_%.bbappend

index 319d9f08709bd21acde93a2fec9b5b5f7820275c..00423cbf06dc6f47c2e6ee61aa12762007818674 100644 (file)
@@ -9,7 +9,7 @@ include conf/machine/include/tune-cortexa7.inc
 
 MACHINE_FEATURES += " pci wifi bluetooth"
 
-SOC_FAMILY = "mx6:mx6ul"
+SOC_FAMILY = "mx6ul"
 
 KERNEL_DEVICETREE = "imx6ul-14x14-evk.dtb imx6ul-14x14-evk-csi.dtb"
 
index 20aa642ef3bbd9ae1457b0432e0bc6d70d9fa3f4..a95af5379fae2d71007de5db785167cd88e4c9ce 100644 (file)
@@ -1,12 +1,3 @@
 # i.MX6 has DirectFB acceleration support, so add it
-RDEPENDS_${PN}_append_mx6q  = " libvivante-dfb-mx6"
-PACKAGE_ARCH_mx6q  = "${MACHINE_ARCH}"
-
-RDEPENDS_${PN}_append_mx6dl = " libvivante-dfb-mx6"
-PACKAGE_ARCH_mx6dl = "${MACHINE_ARCH}"
-
-RDEPENDS_${PN}_append_mx6sx = " libvivante-dfb-mx6"
-PACKAGE_ARCH_mx6sx = "${MACHINE_ARCH}"
-
-RDEPENDS_${PN}_append_mx6sl = " libvivante-dfb-mx6"
-PACKAGE_ARCH_mx6sl = "${MACHINE_ARCH}"
+RDEPENDS_${PN}_append_mx6 = " libvivante-dfb-mx6"
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
index cc245b22593518c41d75c844a74fd552a6b892be..1f070a44717766e7e942721a8e70f054b3f43446 100644 (file)
@@ -1,24 +1,14 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-MESA-DEMO-PATCH = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \
+SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \
                     file://fix-clear-build-break.patch \
                     file://Additional-eglSwapBuffer-calling-makes-wrong-throttl.patch \
                     file://Add-OpenVG-demos-to-support-wayland.patch"
 
-# only apply patches on mx6 that have a GPU
-SRC_URI_append_mx6q  = " ${MESA-DEMO-PATCH}"
-SRC_URI_append_mx6dl = " ${MESA-DEMO-PATCH}"
-SRC_URI_append_mx6sx = " ${MESA-DEMO-PATCH}"
-SRC_URI_append_mx6sl = " ${MESA-DEMO-PATCH}"
-
-REMOVE_GLU = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
-                 bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}"
-
-# only remove GLU on mx6 thave have a GPU
-PACKAGECONFIG_remove_mx6q = "${REMOVE_GLU}"
-PACKAGECONFIG_remove_mx6dl = "${REMOVE_GLU}"
-PACKAGECONFIG_remove_mx6sx = "${REMOVE_GLU}"
-PACKAGECONFIG_remove_mx6sl = "gles1 gles2 ${REMOVE_GLU}"
+PACKAGECONFIG_remove_mx6 = " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+         bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}"
+PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
 
 PACKAGECONFIG_append = "\
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
index 66913e17c9c5a3f94d76af2c7d74a6e82d63bd1f..2536afd6608b57314a8016997d6248081d1e8c7e 100644 (file)
@@ -1,19 +1,12 @@
-PACKAGECONFIG_remove_mx6q  = "egl gles"
-PACKAGECONFIG_remove_mx6dl = "egl gles"
-PACKAGECONFIG_remove_mx6sx = "egl gles"
-PACKAGECONFIG_remove_mx6sl = "egl gles"
+PACKAGECONFIG_remove_mx6 = "egl gles"
 
-# i.MX6SL uses mesa software rendering
+PROVIDES_remove_mx6 = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl"
+PROVIDES_remove_mx6q = "virtual/libgl"
+PROVIDES_remove_mx6dl = "virtual/libgl"
+PROVIDES_remove_mx6sx = "virtual/libgl"
 
-PROVIDES_remove_mx6q = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl virtual/libgl"
-PROVIDES_remove_mx6dl = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl virtual/libgl"
-PROVIDES_remove_mx6sx = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl virtual/libgl"
-PROVIDES_remove_mx6sl = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl"
-
-USE_VIV_LIBGL = "no"
-USE_VIV_LIBGL_mx6q = "yes"
-USE_VIV_LIBGL_mx6dl = "yes"
-USE_VIV_LIBGL_mx6sx = "yes"
+USE_VIV_LIBGL = "yes"
+USE_VIV_LIBGL_mx6sl = "no"
 
 # FIXME: mesa should support 'x11-no-tls' option
 python () {
index a254f07f3b90b36ac6f92b30ab9617c14a895f40..a7496daa777749a4bdba08786a052519a6de3d43 100644 (file)
@@ -1,11 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-# only install patch for mx6 with a GPU
-GPU_PATCH = "file://0001-MGS-840-Add-i.MX6-support-for-weston.patch"
-SRC_URI_append_mx6q  = " ${GPU_PATCH}"
-SRC_URI_append_mx6dl = " ${GPU_PATCH}"
-SRC_URI_append_mx6sx = " ${GPU_PATCH}"
-SRC_URI_append_mx6sl = " ${GPU_PATCH}"
+SRC_URI_append_mx6 = " file://0001-MGS-840-Add-i.MX6-support-for-weston.patch"
 
 PACKAGECONFIG_append_mx6q = " cairo-glesv2"
 PACKAGECONFIG_append_mx6dl = " cairo-glesv2"