Rework i.MX6UL overrides
cover Rework i.MX6UL overrides
This patchset rework the i.MX6UL overrides to use the feature overrides set, thus allowing it to be dealt as any other i.MX6 SoC.
This is important to avoid unneeded diverging on source code and to increase the reuse of metadata for current and future SoCs.
Fabio Berton (11):
xserver-commom: Append SRC_URI for imxgpu2d machines
xserver-commom: Set PACKAGE_ARCH override for imxgpu2d machines
efl: Set override for imxgpu3d machines
clutter: Set override for imxgpu2d machines
cogl: Set override for imxgpu2d machines
gtk+3: Set override for imxgpu2d machines
opencv: Set override for imxgpu2d machines
libdrm: Set override for imxgpu2d machines
mesa-demos: Set override for imxgpu2d machines
piglit: Set override for imxgpu2d machines
qt4-imx-support: Set override for imxgpu2d machines
Otavio Salvador (8):
mesa: Rework recipe to use the feature overrides image_types_fsl.bbclass: Remove i.MX6 UL specific metadata
alsa-state: Remove i.MX6 UL specific metadata
alsa-lib: Remove i.MX6 UL specific metadata
pulseaudio: Remove i.MX6 UL specific metadata imx-base.inc: Convert to use i.MX MACHINEOVERRIDES_EXTENDER imx-base.inc: SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS can be always appended
imx6ulevk: Add mx6 in the MACHINEOVERRIDES set
classes/image_types_fsl.bbclass | 1 - conf/machine/imx6ulevk.conf | 2 +- conf/machine/include/imx-base.inc | 13 +++++-------- .../efl-layer/recipes-efl/efl/efl_%.bbappend | 2 +- .../recipes-support/opencv/opencv_2.4.bbappend | 2 +- .../qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | 8 ++++---- recipes-bsp/alsa-state/alsa-state.bbappend | 2 -- recipes-graphics/clutter/clutter-1.0_%.bbappend | 2 +- recipes-graphics/cogl/cogl-1.0_%.bbappend | 2 +- recipes-graphics/drm/libdrm_%.bbappend | 4 ++-- recipes-graphics/gtk+/gtk+3_%.bbappend | 4 ++-- recipes-graphics/mesa/mesa-demos_%.bbappend | 2 +- recipes-graphics/mesa/mesa_%.bbappend | 19 +++++++------------ recipes-graphics/piglit/piglit_git.bbappend | 2 +- .../xserver-common/xserver-common_%.bbappend | 10 ++++------ recipes-multimedia/alsa/alsa-lib_%.bbappend | 2 -- recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | 2 -- 17 files changed, 31 insertions(+), 48 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/19 xserver-commom: Append SRC_URI for imxgpu2d machines
From: Fabio Berton <[email protected]>
Remove variable PATCHES_IMX_SPECIFIC and apply patch for all imxgpu2d machines.
---
recipes-graphics/xserver-common/xserver-common_%.bbappend | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
recipes-graphics/xserver-common/xserver-common_%.bbappend +2 -4
@@ -1,10 +1,8 @@ # i.MX extra configuration FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PATCHES_IMX_SPECIFIC = " file://0016-xserver-common-enable-iglx-module.patch \ -" -SRC_URI_append = " \ - ${PATCHES_IMX_SPECIFIC} \ +SRC_URI_append_imxgpu2d = " \ + file://0016-xserver-common-enable-iglx-module.patch " PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
Signature · 1 line
2.11.0
PATCH 2/19 xserver-commom: Set PACKAGE_ARCH override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
Patch it's only enable for imxgpu2d, change mx6 override to imxgpu2d and remove unused mx7 override.
---
recipes-graphics/xserver-common/xserver-common_%.bbappend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/xserver-common/xserver-common_%.bbappend +2 -2
@@ -4,5 +4,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI_append_imxgpu2d = " \ file://0016-xserver-common-enable-iglx-module.patch " -PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}" + +PACKAGE_ARCH_imxgpu2d = "${MACHINE_SOCARCH}"
Signature · 1 line
2.11.0
PATCH 3/19 mesa: Rework recipe to use the feature overrides
In reply to Otavio SalvadorThe recipe was still using the mx6 specific overrides, which is wrong. We should use the feature overrides so more SoCs can be dealt in the generic way.
---
recipes-graphics/mesa/mesa_%.bbappend | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-)
recipes-graphics/mesa/mesa_%.bbappend +7 -12
@@ -1,15 +1,12 @@ -PACKAGECONFIG_remove_mx6 = "egl gles" +PACKAGECONFIG_remove_imxgpu2d = "egl gles" -PROVIDES_remove_mx6 = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl" +PROVIDES_remove_imxgpu2d = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl" PROVIDES_remove_imxgpu3d = "virtual/libgl" -USE_VIV_LIBGL = "yes" -USE_VIV_LIBGL_mx6sl = "no" - # FIXME: mesa should support 'x11-no-tls' option python () { overrides = d.getVar("OVERRIDES", True).split(":") - if "mx6" not in overrides: + if "imxgpu2d" not in overrides: return extra_oeconf = d.getVar("EXTRA_OECONF", True)
@@ -18,10 +15,8 @@ python () { } # FIXME: Dirty hack to allow use of Vivante GPU libGL binary -do_install_append_mx6 () { - if [ "${USE_VIV_LIBGL}" = "yes" ]; then - rm -f ${D}${libdir}/libGL.* \ - ${D}${includedir}/GL/gl.h \ - ${D}${includedir}/GL/glext.h - fi +do_install_append_imxgpu3d () { + rm -f ${D}${libdir}/libGL.* \ + ${D}${includedir}/GL/gl.h \ + ${D}${includedir}/GL/glext.h }
Signature · 1 line
2.11.0
PATCH 4/19 image_types_fsl.bbclass: Remove i.MX6 UL specific metadata
In reply to Otavio SalvadorThe SoC is now dealt as a i.MX6 SoC so there is no need for the specific metadata.
---
classes/image_types_fsl.bbclass | 1 - 1 file changed, 1 deletion(-)
classes/image_types_fsl.bbclass +0 -1
@@ -89,7 +89,6 @@ SDCARD_GENERATION_COMMAND_mxs = "generate_mxs_sdcard" SDCARD_GENERATION_COMMAND_mx25 = "generate_imx_sdcard" SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard" SDCARD_GENERATION_COMMAND_mx6 = "generate_imx_sdcard" -SDCARD_GENERATION_COMMAND_mx6ul = "generate_imx_sdcard" SDCARD_GENERATION_COMMAND_mx7 = "generate_imx_sdcard" SDCARD_GENERATION_COMMAND_vf = "generate_imx_sdcard"
Signature · 1 line
2.11.0
PATCH 5/19 alsa-state: Remove i.MX6 UL specific metadata
In reply to Otavio SalvadorThe SoC is now dealt as a i.MX6 SoC so there is no need for the specific metadata.
---
recipes-bsp/alsa-state/alsa-state.bbappend | 2 -- 1 file changed, 2 deletions(-)
recipes-bsp/alsa-state/alsa-state.bbappend +0 -2
@@ -1,8 +1,6 @@ # Append path for freescale layer to include alsa-state asound.conf FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:" -FILESEXTRAPATHS_prepend_mx6ul := "${THISDIR}/${PN}/imx:" FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:" PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" -PACKAGE_ARCH_mx6ul = "${MACHINE_ARCH}" PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}"
Signature · 1 line
2.11.0
PATCH 6/19 alsa-lib: Remove i.MX6 UL specific metadata
In reply to Otavio SalvadorThe SoC is now dealt as a i.MX6 SoC so there is no need for the specific metadata.
---
recipes-multimedia/alsa/alsa-lib_%.bbappend | 2 -- 1 file changed, 2 deletions(-)
recipes-multimedia/alsa/alsa-lib_%.bbappend +0 -2
@@ -4,9 +4,7 @@ IMX_PATCH = " file://0001-add-conf-for-multichannel-support-in-imx.patch \ file://0004-pcm-Don-t-store-the-state-for-SND_PCM_STATE_SUSPENDE.patch" SRC_URI_append_mx6 = "${IMX_PATCH}" -SRC_URI_append_mx6ul = "${IMX_PATCH}" SRC_URI_append_mx7 = "${IMX_PATCH}" PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -PACKAGE_ARCH_mx6ul = "${MACHINE_SOCARCH}" PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
Signature · 1 line
2.11.0
PATCH 7/19 pulseaudio: Remove i.MX6 UL specific metadata
In reply to Otavio SalvadorThe SoC is now dealt as a i.MX6 SoC so there is no need for the specific metadata.
---
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | 2 -- 1 file changed, 2 deletions(-)
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +0 -2
@@ -4,7 +4,6 @@ CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/imx:" SRC_URI_append_mx6 = " file://daemon.conf file://default.pa" -SRC_URI_append_mx6ul = " file://daemon.conf file://default.pa" SRC_URI_append_mx7 = " file://daemon.conf file://default.pa \ file://pulseaudio-remove-the-control-for-speaker-headphone-widge.patch \ "
@@ -17,5 +16,4 @@ do_install_append() { } PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -PACKAGE_ARCH_mx6ul = "${MACHINE_SOCARCH}" PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
Signature · 1 line
2.11.0
PATCH 8/19 efl: Set override for imxgpu3d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
dynamic-layers/efl-layer/recipes-efl/efl/efl_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/efl-layer/recipes-efl/efl/efl_%.bbappend +1 -1
@@ -1,3 +1,3 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " file://0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch" +SRC_URI_append_imxgpu2d = " file://0001-Add-preprocessor-definitions-for-Vivante-GLES-header.patch"
Signature · 1 line
2.11.0
PATCH 9/19 clutter: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/clutter/clutter-1.0_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/clutter/clutter-1.0_%.bbappend +1 -1
@@ -1,4 +1,4 @@ -PACKAGECONFIG_mx6 ??= " \ +PACKAGECONFIG_imxgpu2d ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', \ bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', \ '', d), d)} \
Signature · 1 line
2.11.0
PATCH 10/19 cogl: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/cogl/cogl-1.0_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/cogl/cogl-1.0_%.bbappend +1 -1
@@ -1,4 +1,4 @@ -PACKAGECONFIG_mx6 ??= " \ +PACKAGECONFIG_imxgpu2d ??= " \ cogl-pango gles2 \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', \ bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', \
Signature · 1 line
2.11.0
PATCH 11/19 gtk+3: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/gtk+/gtk+3_%.bbappend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/gtk+/gtk+3_%.bbappend +2 -2
@@ -1,8 +1,8 @@ -PACKAGECONFIG_remove_mx6 = " \ +PACKAGECONFIG_remove_imxgpu2d = " \ ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "x11", "", d)} \ " -CFLAGS_append_mx6 = " \ +CFLAGS_append_imxgpu2d = " \ -DLINUX \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DEGL_API_FB -DEGL_API_WL', '', d)} \ "
Signature · 1 line
2.11.0
PATCH 12/19 opencv: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
.../openembedded-layer/recipes-support/opencv/opencv_2.4.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_2.4.bbappend +1 -1
@@ -2,4 +2,4 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI_append_mx6sx = " file://0001-MGS-515-ccc-Opencv-app-can-t-run-on-imx6sx-with-cam.patch" -PACKAGECONFIG_remove_mx6 = "v4l" +PACKAGECONFIG_remove_imxgpu2d = "v4l"
Signature · 1 line
2.11.0
PATCH 13/19 libdrm: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/drm/libdrm_%.bbappend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/drm/libdrm_%.bbappend +2 -2
@@ -1,5 +1,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " file://drm-update-arm.patch" +SRC_URI_append_imxgpu2d = " file://drm-update-arm.patch" -PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_imxgpu2d = "${MACHINE_SOCARCH}"
Signature · 1 line
2.11.0
PATCH 14/19 mesa-demos: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/mesa/mesa-demos_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/mesa/mesa-demos_%.bbappend +1 -1
@@ -1,6 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \ +SRC_URI_append_imxgpu2d = " 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"
Signature · 1 line
2.11.0
PATCH 15/19 piglit: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
recipes-graphics/piglit/piglit_git.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/piglit/piglit_git.bbappend +1 -1
@@ -1 +1 @@ -DEPENDS_append_mx6 = " virtual/egl" +DEPENDS_append_imxgpu2d = " virtual/egl"
Signature · 1 line
2.11.0
PATCH 16/19 qt4-imx-support: Set override for imxgpu2d machines
In reply to Otavio SalvadorFrom: Fabio Berton <[email protected]>
---
dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc +4 -4
@@ -8,15 +8,15 @@ python __anonymous () { d.appendVarFlag('do_configure', 'depends', ' virtual/kernel:do_shared_workdir') } -SRC_URI_append_mx6 += " \ +SRC_URI_append_imxgpu2d += " \ file://0001-Add-support-for-i.MX-codecs-to-phonon.patch \ file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch \ file://0003-i.MX6-force-egl-visual-ID-33.patch \ " -DEPENDS_append_mx6 = " virtual/kernel virtual/libgles2" -QT_GLFLAGS_mx6 = "-opengl es2 -openvg" -QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/uapi \ +DEPENDS_append_imxgpu2d = " virtual/kernel virtual/libgles2" +QT_GLFLAGS_imxgpu2d = "-opengl es2 -openvg" +QT_CONFIG_FLAGS_append_imxgpu2d = " -I${STAGING_KERNEL_DIR}/include/uapi \ -I${STAGING_KERNEL_DIR}/include/ \ -DLINUX=1 -DEGL_API_FB=1 \ -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1"
Signature · 1 line
2.11.0
PATCH 17/19 imx-base.inc: Convert to use i.MX MACHINEOVERRIDES_EXTENDER
In reply to Otavio SalvadorThere were some core BSP variables which were still using SoC family names instead of feature overrides (XSERVER_DRIVER, MACHINE_SOCARCH_FILTER) and those needed to be reworked so other SoC families could be dealt in the generic way (e.g: mx6ul).
---
conf/machine/include/imx-base.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
conf/machine/include/imx-base.inc +4 -7
@@ -28,7 +28,7 @@ UBOOT_ENTRYPOINT_vf = "0x80008000" PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" XSERVER_DRIVER = "xf86-video-fbdev" -XSERVER_DRIVER_mx6 = "xf86-video-imxfb-vivante" +XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante" XSERVER_DRIVER_vf = "xf86-video-modesetting" XSERVER = "xserver-xorg \ xf86-input-evdev \
@@ -73,12 +73,9 @@ MACHINE_SOCARCH_SUFFIX_mx6ul = "-mx6ul" MACHINE_SOCARCH_SUFFIX_mx6ull = "-mx6ul" MACHINE_ARCH_FILTER = "virtual/kernel" -MACHINE_SOCARCH_FILTER_append_mx6 = " imx-vpu libimxvpuapi imx-codec imx-vpuwrap imx-parser" -MACHINE_SOCARCH_FILTER_append_mx6 = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d" -MACHINE_SOCARCH_FILTER_append_mx6 = " cairo pango" -MACHINE_SOCARCH_FILTER_append_mx6ul = " imx-codec imx-parser" -MACHINE_SOCARCH_FILTER_append_mx6ull = " imx-codec imx-parser" -MACHINE_SOCARCH_FILTER_append_mx7 = " imx-codec imx-parser" +MACHINE_SOCARCH_FILTER_append_imxvpu = " imx-vpu libimxvpuapi imx-codec imx-vpuwrap imx-parser" +MACHINE_SOCARCH_FILTER_append_imxgpu2d = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d cairo pango" +MACHINE_SOCARCH_FILTER_append_imxpxp = " imx-codec imx-parser" INHERIT += "fsl-dynamic-packagearch"
Signature · 1 line
2.11.0
PATCH 18/19 imx-base.inc: SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS can be always appended
In reply to Otavio SalvadorThere is no need to restrict the appending of SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS values as the respective packages will be added only on the supported packages thus not affecting other machines.
---
conf/machine/include/imx-base.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/imx-base.inc +1 -1
@@ -79,7 +79,7 @@ MACHINE_SOCARCH_FILTER_append_imxpxp = " imx-codec imx-parser" INHERIT += "fsl-dynamic-packagearch" -SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS_append_mx6 = " \ +SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS_append = " \ imx-gpu-viv->kernel-module-imx-gpu-viv \ libimxvpuapi->imx-vpu \ imx-vpuwrap->imx-vpu \
Signature · 1 line
2.11.0
PATCH 19/19 imx6ulevk: Add mx6 in the MACHINEOVERRIDES set
In reply to Otavio SalvadorThe i.MX6 UL was dealt in a specific way due the metadata not being fully ported still to the feature overrides set; now that most metadata has been converted it is the right time to add the mx6 SoC family here as well.
---
conf/machine/imx6ulevk.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/imx6ulevk.conf +1 -1
@@ -4,7 +4,7 @@ #@DESCRIPTION: Machine configuration for NXP i.MX6UL EVK #@MAINTAINER: Lauren Post <[email protected]> -MACHINEOVERRIDES =. "mx6ul:" +MACHINEOVERRIDES =. "mx6:mx6ul:" include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa7.inc
Signature · 1 line
2.11.0
Quoted 2 lines · Otavio Salvador
This patchset rework the i.MX6UL overrides to use the feature overrides set, thus allowing it to be dealt as any other i.MX6 SoC.
...
This patchset has been added on master-next and morty-next. Please give it a go and let us know what the outcome or if something should be dropped/added/changed.
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