Machine overrides extender - reduce code duplication
v3 cover Machine overrides extender - reduce code duplication
We spent some time trying to come up with something which would make easier to extend the tune-arch support. All we could come up was way too complex or did not work.
Instead We did a MACHINEOVERRIDES extender.
This enables the machine overrides extender for the i.MX6 devices. It maps (spaces are used to easy the read):
- mx6q -> imxipu imxvpu imxgpu2d imxgpu3d
- mx6dl -> imxpxp imxipu imxvpu imxgpu2d imxgpu3d imxepdc
- mx6sx -> imxpxp imxgpu2d imxgpu3d
- mx6sl -> imxpxp imxgpu2d imxepdc
- mx6ul -> imxpxp
- mx7d -> imxpxp imxepdc
So it allows for reusing of overrides while keeps this control at the BSP side. For example, a PACKAGECONFIG setting which is common for mx6q, mx6dl and mx6sx used to look as:
PACKAGECONFIG_mx6q = "option"PACKAGECONFIG_mx6dl = "option"
Now it can be replaced by:
PACKAGECONFIG_imxvpu = "option"
Changes in v3:
- Use a intermediate variable for append so values can change (need for PXP support later)
- Fix wrong setting for 2D GPUs (Tom)
- New patch
Changes in v2:
- Use BitBake event to insert the extends
- New patch.
Otavio Salvador (17):
Convert SOC_FAMILY to MACHINEOVERRIDES
imx-lib: Stop using generic SoC overrides
imx-test: Stop using generic SoC overrides machine-overrides-extender.bbclass: Automatically set extend the
MACHINEOVERRIDES
imx-base.inc: Enable machine overrides extender for i.MX6
chromium: Refactor code to use the the new overrides
glmark2: Refactor code to use the new overrides
qtbase: Refactor code to use the new overrides
cairo: Refactor code to use the new overrides
eglinfo: Refactor code to use the new overrides
imx-gpu-viv: Refactor code to use the new overrides
mesa-gl: Refactor code to use the new overrides
weston: Refactor code to use the new overrides gstreamer1.0-plugins-imx: Refactor code to use the new overrides
imx-codec: Refactor code to use the new overrides gstreamer1.0-plugins-imx: Change EGL platform preference order
qtbase: Enable support for i.MX SoCs with PXP
.../recipes-browser/chromium/chromium-imx.inc | 3 +- .../chromium/chromium_48.0.2548.0.bbappend | 5 +- classes/machine-overrides-extender.bbclass | 29 ++++++++++ conf/machine/imx23evk.conf | 4 +- conf/machine/imx28evk.conf | 4 +- conf/machine/imx51evk.conf | 4 +- conf/machine/imx53ard.conf | 4 +- conf/machine/imx53qsb.conf | 4 +- conf/machine/imx6dlsabreauto.conf | 4 +- conf/machine/imx6dlsabresd.conf | 4 +- conf/machine/imx6qpsabreauto.conf | 4 +- conf/machine/imx6qpsabresd.conf | 4 +- conf/machine/imx6qsabreauto.conf | 4 +- conf/machine/imx6qsabresd.conf | 4 +- conf/machine/imx6slevk.conf | 4 +- conf/machine/imx6solosabreauto.conf | 4 +- conf/machine/imx6solosabresd.conf | 4 +- conf/machine/imx6sxsabreauto.conf | 4 +- conf/machine/imx6sxsabresd.conf | 4 +- conf/machine/imx6ulevk.conf | 4 +- conf/machine/imx7dsabresd.conf | 4 +- conf/machine/include/imx-base.inc | 11 +++- conf/machine/include/qoriq-arm.inc | 2 - conf/machine/ls1021atwr.conf | 4 +- conf/machine/twr-vf65gs10.conf | 4 +- .../recipes-benchmark/glmark2/glmark2_%.bbappend | 8 +-- qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | 2 +- qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 25 ++++----- recipes-bsp/imx-lib/imx-lib.inc | 6 ++- recipes-bsp/imx-test/imx-test.inc | 7 +-- recipes-graphics/cairo/cairo_%.bbappend | 16 +++--- recipes-graphics/eglinfo/eglinfo-fb_%.bbappend | 4 +- recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 4 +- recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 +++-- recipes-graphics/mesa/mesa-gl_%.bbappend | 5 +- recipes-graphics/wayland/weston_%.bbappend | 61 +++++++++++----------- .../gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb | 20 +++---- recipes-multimedia/imx-codec/imx-codec.inc | 3 +- 38 files changed, 166 insertions(+), 138 deletions(-) create mode 100644 classes/machine-overrides-extender.bbclass
Signature · 1 line
2.9.3
PATCH v3 1/17 Convert SOC_FAMILY to MACHINEOVERRIDES
The SOC_FAMILY is an indirection which makes the understanding, from OpenEmbedded versed developers and users, more difficult. Instead of using the SOC_FAMILY indirection which is rarely used, we now move to the MACHINEOVERRIDES mechanism as this is in fact what is in use.
---
Changes in v3: None
Changes in v2: None
conf/machine/imx23evk.conf | 4 ++-- conf/machine/imx28evk.conf | 4 ++-- conf/machine/imx51evk.conf | 4 ++-- conf/machine/imx53ard.conf | 4 ++-- conf/machine/imx53qsb.conf | 4 ++-- conf/machine/imx6dlsabreauto.conf | 4 ++-- conf/machine/imx6dlsabresd.conf | 4 ++-- conf/machine/imx6qpsabreauto.conf | 4 ++-- conf/machine/imx6qpsabresd.conf | 4 ++-- conf/machine/imx6qsabreauto.conf | 4 ++-- conf/machine/imx6qsabresd.conf | 4 ++-- conf/machine/imx6slevk.conf | 4 ++-- conf/machine/imx6solosabreauto.conf | 4 ++-- conf/machine/imx6solosabresd.conf | 4 ++-- conf/machine/imx6sxsabreauto.conf | 4 ++-- conf/machine/imx6sxsabresd.conf | 4 ++-- conf/machine/imx6ulevk.conf | 4 ++-- conf/machine/imx7dsabresd.conf | 4 ++-- conf/machine/include/imx-base.inc | 2 -- conf/machine/include/qoriq-arm.inc | 2 -- conf/machine/ls1021atwr.conf | 4 ++-- conf/machine/twr-vf65gs10.conf | 4 ++-- qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | 2 +- 23 files changed, 41 insertions(+), 45 deletions(-)
conf/machine/imx23evk.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX23 Evaluation Kit #@MAINTAINER: Otavio Salvador <[email protected]> +MACHINEOVERRIDES =. "mxs:mx23:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-arm926ejs.inc -SOC_FAMILY = "mxs:mx23" - IMXBOOTLETS_MACHINE = "stmp378x_dev" UBOOT_MACHINE = "mx23evk_config"
conf/machine/imx28evk.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX28 Evaluation Kit #@MAINTAINER: Otavio Salvador <[email protected]> +MACHINEOVERRIDES =. "mxs:mx28:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-arm926ejs.inc -SOC_FAMILY = "mxs:mx28" - IMXBOOTLETS_MACHINE = "iMX28_EVK" UBOOT_CONFIG ??= "sd"
conf/machine/imx51evk.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX51 Evaluation Kit #@MAINTAINER: Daiane Angolini <[email protected]> +MACHINEOVERRIDES =. "mx5:mx51:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa8.inc -SOC_FAMILY = "mx5:mx51" - # Disable perf features as 2.6.35.3 fails to build otherwise PERF_FEATURES_ENABLE = ""
conf/machine/imx53ard.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX53 SABRE Automotive Board #@MAINTAINER: Daiane Angolini <[email protected]> +MACHINEOVERRIDES =. "mx5:mx53:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa8.inc -SOC_FAMILY = "mx5:mx53" - # Disable perf features as 2.6.35.3 fails to build otherwise PERF_FEATURES_ENABLE = ""
conf/machine/imx53qsb.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX53 Quick Start Board #@MAINTAINER: Trevor Woerner <[email protected]> +MACHINEOVERRIDES =. "mx5:mx53:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa8.inc -SOC_FAMILY = "mx5:mx53" - KERNEL_DEVICETREE = "imx53-qsb.dtb imx53-qsrb.dtb" UBOOT_MACHINE = "mx53loco_config"
conf/machine/imx6dlsabreauto.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6DL SABRE Automotive #@MAINTAINER: Daiane Angolini <[email protected]> -require conf/machine/include/imx6sabreauto-common.inc +MACHINEOVERRIDES =. "mx6:mx6dl:" -SOC_FAMILY = "mx6:mx6dl" +require conf/machine/include/imx6sabreauto-common.inc KERNEL_DEVICETREE = "imx6dl-sabreauto.dtb imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabreauto-ecspi.dtb \ imx6dl-sabreauto-flexcan1.dtb imx6dl-sabreauto-enetirq.dtb"
conf/machine/imx6dlsabresd.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6DL SABRE Smart Device #@MAINTAINER: Otavio Salvador <[email protected]> -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6dl:" -SOC_FAMILY = "mx6:mx6dl" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6dl-sabresd.dtb imx6dl-sabresd-ldo.dtb imx6dl-sabresd-hdcp.dtb \ imx6dl-sabresd-enetirq.dtb imx6dl-sabresd-btwifi.dtb"
conf/machine/imx6qpsabreauto.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6QP SABRE Automotive #@MAINTAINER: Lauren Post <[email protected]> -require conf/machine/include/imx6sabreauto-common.inc +MACHINEOVERRIDES =. "mx6:mx6q:" -SOC_FAMILY = "mx6:mx6q" +require conf/machine/include/imx6sabreauto-common.inc KERNEL_DEVICETREE = "imx6qp-sabreauto.dtb imx6qp-sabreauto-ecspi.dtb imx6qp-sabreauto-flexcan1.dtb \ imx6qp-sabreauto-gpmi-weim.dtb"
conf/machine/imx6qpsabresd.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6QP SABRE Smart Device #@MAINTAINER: Lauren Post <[email protected]> -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6q:" -SOC_FAMILY = "mx6:mx6q" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6qp-sabresd.dtb imx6qp-sabresd-ldo.dtb imx6qp-sabresd-btwifi.dtb imx6qp-sabresd-hdcp.dtb"
conf/machine/imx6qsabreauto.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6Q SABRE Automotive #@MAINTAINER: Daiane Angolini <[email protected]> -require conf/machine/include/imx6sabreauto-common.inc +MACHINEOVERRIDES =. "mx6:mx6q:" -SOC_FAMILY = "mx6:mx6q" +require conf/machine/include/imx6sabreauto-common.inc KERNEL_DEVICETREE = "imx6q-sabreauto.dtb imx6q-sabreauto-gpmi-weim.dtb imx6q-sabreauto-ecspi.dtb \ imx6q-sabreauto-flexcan1.dtb imx6q-sabreauto-enetirq.dtb"
conf/machine/imx6qsabresd.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6Q SABRE Smart Device #@MAINTAINER: Otavio Salvador <[email protected]> -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6q:" -SOC_FAMILY = "mx6:mx6q" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6q-sabresd.dtb imx6q-sabresd-ldo.dtb imx6q-sabresd-hdcp.dtb \ imx6q-sabresd-enetirq.dtb imx6q-sabresd-btwifi.dtb"
conf/machine/imx6slevk.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6SL Evaluation Kit #@MAINTAINER: Otavio Salvador <[email protected]> +MACHINEOVERRIDES =. "mx6:mx6sl:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa9.inc -SOC_FAMILY = "mx6:mx6sl" - KERNEL_DEVICETREE = "imx6sl-evk.dtb imx6sl-evk-csi.dtb imx6sl-evk-ldo.dtb \ imx6sl-evk-uart.dtb imx6sl-evk-btwifi.dtb"
conf/machine/imx6solosabreauto.conf +2 -2
@@ -3,9 +3,9 @@ #@SOC: i.MX6S #@DESCRIPTION: Machine configuration for Freescale i.MX6Solo SABRE Automotive -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6dl:" -SOC_FAMILY = "mx6:mx6dl" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6dl-sabreauto.dtb"
conf/machine/imx6solosabresd.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6Solo SABRE Smart Device #@MAINTAINER: Otavio Salvador <[email protected]> -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6dl:" -SOC_FAMILY = "mx6:mx6dl" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6dl-sabresd.dtb imx6dl-sabresd-ldo.dtb"
conf/machine/imx6sxsabreauto.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6SoloX Sabre Automotive #@MAINTAINER: Lauren Post <[email protected]> -require conf/machine/include/imx6sabreauto-common.inc +MACHINEOVERRIDES =. "mx6:mx6sx:" -SOC_FAMILY = "mx6:mx6sx" +require conf/machine/include/imx6sabreauto-common.inc KERNEL_DEVICETREE = "imx6sx-sabreauto.dtb imx6sx-sabreauto-m4.dtb"
conf/machine/imx6sxsabresd.conf +2 -2
@@ -4,9 +4,9 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6SoloX Sabre SD #@MAINTAINER: Lauren Post <[email protected]> -require conf/machine/include/imx6sabresd-common.inc +MACHINEOVERRIDES =. "mx6:mx6sx:" -SOC_FAMILY = "mx6:mx6sx" +require conf/machine/include/imx6sabresd-common.inc KERNEL_DEVICETREE = "imx6sx-sdb.dtb imx6sx-sdb-emmc.dtb imx6sx-sdb-m4.dtb \ imx6sx-sdb-sai.dtb imx6sx-sdb-lcdif1.dtb imx6sx-sdb-ldo.dtb \
conf/machine/imx6ulevk.conf +2 -2
@@ -4,13 +4,13 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX6UL EVK #@MAINTAINER: Lauren Post <[email protected]> +MACHINEOVERRIDES =. "mx6ul:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa7.inc MACHINE_FEATURES += " pci wifi bluetooth" -SOC_FAMILY = "mx6ul" - KERNEL_DEVICETREE = "imx6ul-14x14-evk.dtb imx6ul-14x14-evk-csi.dtb imx6ul-14x14-evk-btwifi.dtb" UBOOT_SUFFIX = "img"
conf/machine/imx7dsabresd.conf +2 -2
@@ -4,13 +4,13 @@ #@DESCRIPTION: Machine configuration for Freescale i.MX7D SABRE Smart Device #@MAINTAINER: Lauren Post <[email protected]> +MACHINEOVERRIDES =. "mx7:mx7d:" + require conf/machine/include/imx-base.inc require conf/machine/include/tune-cortexa7.inc MACHINE_FEATURES += " pci wifi bluetooth" -SOC_FAMILY = "mx7:mx7d" - KERNEL_DEVICETREE = "imx7d-sdb.dtb imx7d-sdb-epdc.dtb imx7d-sdb-gpmi-weim.dtb \ imx7d-sdb-m4.dtb imx7d-sdb-mipi-dsi.dtb imx7d-sdb-qspi.dtb \ imx7d-sdb-reva.dtb imx7d-sdb-reva-epdc.dtb imx7d-sdb-reva-gpmi-weim.dtb \
conf/machine/include/imx-base.inc +0 -2
@@ -3,8 +3,6 @@ include conf/machine/include/fsl-default-settings.inc include conf/machine/include/fsl-default-versions.inc -include conf/machine/include/soc-family.inc - # Set specific make target and binary suffix PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc" PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
conf/machine/include/qoriq-arm.inc +0 -2
@@ -1,5 +1,3 @@ -require conf/machine/include/soc-family.inc - # Freescale BSP default providers PREFERRED_PROVIDER_u-boot_ls102xa ?= "u-boot-ls1" PREFERRED_PROVIDER_virtual/bootloader_ls102xa ?= "u-boot-ls1"
conf/machine/ls1021atwr.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for running LS1021ATWR in 32-bit mode #@MAINTAINER: Zhenhua Luo <[email protected]> +MACHINEOVERRIDES =. "ls102xa:" + require conf/machine/include/qoriq-arm.inc require conf/machine/include/tune-cortexa7.inc -SOC_FAMILY = "ls102xa" - UBOOT_CONFIG ??= "nor" UBOOT_CONFIG[nor] = "ls1021atwr_nor_config" UBOOT_CONFIG[sdcard] = "ls1021atwr_sdcard_config,sdcard"
conf/machine/twr-vf65gs10.conf +2 -2
@@ -4,11 +4,11 @@ #@DESCRIPTION: Machine configuration for Freescale Vybrid TWR-VF65GS10 #@MAINTAINER: Stefan Agner <[email protected]> +MACHINEOVERRIDES =. "vf:vf60:" + include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa5.inc -SOC_FAMILY = "vf:vf60" - PREFERRED_PROVIDER_virtual/kernel ?= "linux-fslc" UBOOT_MACHINE = "vf610twr_config"
qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc +1 -1
@@ -2,7 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/qt4:" python __anonymous () { families = ['mx6'] - cur_families = (d.getVar('SOC_FAMILY', True) or '').split(':') + cur_families = (d.getVar('MACHINEOVERRIDES', True) or '').split(':') if any(map(lambda x: x in cur_families, families)): d.appendVarFlag('do_configure', 'depends', ' virtual/kernel:do_shared_workdir')
Signature · 1 line
2.9.3
PATCH v3 2/17 imx-lib: Stop using generic SoC overrides
In reply to Otavio SalvadorThe recipe has been changed to use the SoC specific override. It makes the recipe easier to read and to maintain.
---
Changes in v3: None
Changes in v2: None
recipes-bsp/imx-lib/imx-lib.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-bsp/imx-lib/imx-lib.inc +4 -2
@@ -1,4 +1,5 @@ # Copyright (C) 2012-2013 Freescale Semiconductor +# Copyright (C) 2012-2016 O.S. Systems Software LTDA. DESCRIPTION = "Platform specific libraries for imx platform" LICENSE = "LGPLv2.1"
@@ -7,10 +8,11 @@ DEPENDS = "virtual/kernel" LIC_FILES_CHKSUM = "file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" -PLATFORM_mx6 = "IMX6Q" +PLATFORM_mx6q = "IMX6Q" +PLATFORM_mx6dl = "IMX6Q" PLATFORM_mx6sl = "IMX6S" PLATFORM_mx6sx = "IMX6S" -PLATFORM_mx7 = "IMX7" +PLATFORM_mx7d = "IMX7" PLATFORM_mx6ul = "IMX6UL" PARALLEL_MAKE="-j 1"
Signature · 1 line
2.9.3
PATCH v3 3/17 imx-test: Stop using generic SoC overrides
In reply to Otavio SalvadorThe recipe has been changed to use the SoC specific override. It makes the recipe easier to read and to maintain.
---
Changes in v3: None
Changes in v2: None
recipes-bsp/imx-test/imx-test.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
recipes-bsp/imx-test/imx-test.inc +4 -3
@@ -9,7 +9,7 @@ DEPENDS_mx6dl = "virtual/kernel imx-lib imx-vpu" DEPENDS_mx6sl = "virtual/kernel imx-lib" DEPENDS_mx6sx = "virtual/kernel imx-lib" DEPENDS_mx6ul = "virtual/kernel imx-lib" -DEPENDS_mx7 = "virtual/kernel imx-lib" +DEPENDS_mx7d = "virtual/kernel imx-lib" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
@@ -23,10 +23,11 @@ inherit module-base INHIBIT_PACKAGE_STRIP = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" -PLATFORM_mx6 = "IMX6Q" +PLATFORM_mx6q = "IMX6Q" +PLATFORM_mx6dl = "IMX6Q" PLATFORM_mx6sl = "IMX6SL" PLATFORM_mx6sx = "IMX6SX" -PLATFORM_mx7 = "IMX7D" +PLATFORM_mx7d = "IMX7D" PLATFORM_mx6ul = "IMX6UL" PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
Signature · 1 line
2.9.3
PATCH v3 4/17 machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES
In reply to Otavio SalvadorThis allow to grouping of different settings for similar platforms.
To use the class, specify, for example:
MACHINEOVERRIDES_EXTENDER_soc = "group1:group2"
---
Changes in v3: None
Changes in v2:
- Use BitBake event to insert the extends
classes/machine-overrides-extender.bbclass | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 classes/machine-overrides-extender.bbclass
classes/machine-overrides-extender.bbclass new file +29 -0
@@ -0,0 +1,29 @@ +# -*- python -*- +# Automatically set extend the MACHINEOVERRIDES +# +# This allow to grouping of different settings for similar platforms. +# +# To use the class, specify, for example: +# +# MACHINEOVERRIDES_EXTENDER_soc = "group1:group2" +# +# Copyright 2016 (C) O.S. Systems Software LTDA. + +def machine_overrides_extender(d): + machine_overrides = (d.getVar('MACHINEOVERRIDES', True) or '').split(':') + for o in machine_overrides: + extender = d.getVar('MACHINEOVERRIDES_EXTENDER_%s' % o, True) + if extender: + extender = extender.split(':') + extender.reverse() + if not set(extender).issubset(set(machine_overrides)): + index = machine_overrides.index(o) + for e in extender: + machine_overrides.insert(index, e) + d.setVar('MACHINEOVERRIDES', ':'.join(machine_overrides)) + +python machine_overrides_extender_handler() { + machine_overrides_extender(e.data) +} +machine_overrides_extender_handler[eventmask] = "bb.event.ConfigParsed" +addhandler machine_overrides_extender_handler
Signature · 1 line
2.9.3
Re: [meta-fsl-arm PATCH v3 04/17] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES
Would it be feasible to have this in oe-core so other BSPs could use it?
Re: [meta-fsl-arm PATCH v3 04/17] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES
Quoted 1 line · Trevor Woerner
Would it be feasible to have this in oe-core so other BSPs could use it?
I think so; it allows to reduce the amount of code duplication.
Richard, what do you think?
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
PATCH v3 5/17 imx-base.inc: Enable machine overrides extender for i.MX6
In reply to Otavio SalvadorThis enables the machine overrides extender for the i.MX6 devices. It maps (spaces are used to easy the read):
- mx6q -> imxipu imxvpu imxgpu2d imxgpu3d
- mx6dl -> imxpxp imxipu imxvpu imxgpu2d imxgpu3d imxepdc
- mx6sx -> imxpxp imxgpu2d imxgpu3d
- mx6sl -> imxpxp imxgpu2d imxepdc
- mx6ul -> imxpxp
- mx7d -> imxpxp imxepdc
So it allows for reusing of overrides while keeps this control at the BSP side.
---
Changes in v3: None
Changes in v2: None
conf/machine/include/imx-base.inc | 9 +++++++++ 1 file changed, 9 insertions(+)
conf/machine/include/imx-base.inc +9 -0
@@ -48,6 +48,15 @@ DEFAULTTUNE_mx6ul ?= "cortexa7thf-neon" DEFAULTTUNE_mx7 ?= "cortexa7thf-neon" DEFAULTTUNE_vf ?= "cortexa5thf-neon" +INHERIT += "machine-overrides-extender" + +MACHINEOVERRIDES_EXTENDER_mx6q = "imxipu:imxvpu:imxgpu2d:imxgpu3d" +MACHINEOVERRIDES_EXTENDER_mx6dl = "imxpxp:imxipu:imxvpu:imxgpu2d:imxgpu3d:imxepdc" +MACHINEOVERRIDES_EXTENDER_mx6sx = "imxpxp:imxgpu2d:imxgpu3d" +MACHINEOVERRIDES_EXTENDER_mx6sl = "imxpxp:imxgpu2d:imxepdc" +MACHINEOVERRIDES_EXTENDER_mx6ul = "imxpxp" +MACHINEOVERRIDES_EXTENDER_mx7d = "imxpxp:imxepdc" + # Sub-architecture support MACHINE_SOCARCH_SUFFIX ?= "" MACHINE_SOCARCH_SUFFIX_mx6q = "-mx6qdl"
Signature · 1 line
2.9.3
PATCH v3 6/17 chromium: Refactor code to use the the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxvpu' feature override.
---
Changes in v3: None
Changes in v2: None
browser-layer/recipes-browser/chromium/chromium-imx.inc | 3 +-- browser-layer/recipes-browser/chromium/chromium_48.0.2548.0.bbappend | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-)
browser-layer/recipes-browser/chromium/chromium-imx.inc +1 -2
@@ -1,5 +1,4 @@ -DEPENDS_append_mx6q = " imx-vpuwrap" -DEPENDS_append_mx6dl = " imx-vpuwrap" +DEPENDS_append_imxvpu = " imx-vpuwrap" # Additional imx code and patches are included in the chromium-imx git repository. # The code below fetches this repository, copies the extra source over to the main
browser-layer/recipes-browser/chromium/chromium_48.0.2548.0.bbappend +1 -4
@@ -4,9 +4,6 @@ CHROMIUM_IMX_BRANCH = "master" CHROMIUM_IMX_SRCREV = "4a2d15ab899b9944bb3adb2ddd250530da5b2e1a" CHROMIUM_IMX_COMMON_PATCHES += "file://${PATCH_BASE_DIR}/common/0001-Enable-share-group-workaround-for-Vivante-GPUs.patch" -VPU_PATCHES = "file://${PATCH_BASE_DIR}/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch" - -CHROMIUM_IMX_VPU_PATCHES_mx6q += "${VPU_PATCHES}" -CHROMIUM_IMX_VPU_PATCHES_mx6dl += "${VPU_PATCHES}" +CHROMIUM_IMX_VPU_PATCHES_imxvpu += "file://${PATCH_BASE_DIR}/common/0002-Add-VPU-video-decode-accelerator-to-Chromium-GPU-.patch" CHROMIUM_IMX_WAYLAND_PATCHES += "file://${PATCH_BASE_DIR}/wayland/0001-Modify-eglwayland-versions-for-Vivante-GPUs.patch"
Signature · 1 line
2.9.3
PATCH v3 7/17 glmark2: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides, while on that, the '_remove' operator usage has been removed as it is impossible to override using a bbappend file.
---
Changes in v3: None
Changes in v2: None
openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend +4 -4
@@ -1,4 +1,4 @@ -PACKAGECONFIG_mx6 = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gles2', \ - bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl x11-gles2', \ - '', d), d)}" -PACKAGECONFIG_remove_mx6sl = "wayland-gles2 x11-gles2" +PACKAGECONFIG_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gles2', \ + bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl x11-gles2', '', d), d)}" +PACKAGECONFIG_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', '', \ + bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl', '', d), d)}"
Signature · 1 line
2.9.3
PATCH v3 8/17 qtbase: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6SL specific code has been reworked to used when only 2D GPU support is available.
---
Changes in v3:
- Use a intermediate variable for append so values can change (need for PXP support later)
Changes in v2: None
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-)
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +11 -12
@@ -1,25 +1,24 @@ # Copyright (C) 2013 Eric Bénard - Eukréa Electromatique +# Copyright (C) 2016 O.S. Systems Software LTDA. HAS_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 1, 0, d)}" -IS_MX6SL = "0" -IS_MX6SL_mx6sl = "1" +IMXGPU_imxgpu3d = "3d" +IMXGPU_imxgpu2d = "2d" -PACKAGECONFIG_GL_mx6q = "gles2" -PACKAGECONFIG_GL_mx6dl = "gles2" -PACKAGECONFIG_GL_mx6sx = "gles2" -PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" -QT_CONFIG_FLAGS_append_mx6q = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6dl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6sx = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" -QT_CONFIG_FLAGS_append_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', \ - ' -no-opengl -linuxfb -no-eglfs', d)}" +PACKAGECONFIG_GL_imxgpu3d = "gles2" +PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" + +QT_CONFIG_FLAGS_APPEND = "" +QT_CONFIG_FLAGS_APPEND_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -no-opengl -linuxfb -no-eglfs', d)}" +QT_CONFIG_FLAGS_APPEND_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" +QT_CONFIG_FLAGS_append = " ${QT_CONFIG_FLAGS_APPEND}" do_configure_prepend_mx6() { # adapt qmake.conf to our needs sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf if test ${HAS_X11} -eq 0; then - if test ${IS_MX6SL} -eq 0; then + if [ "${IMXGPU}" = "3d"; then cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1
Signature · 1 line
2.9.3
PATCH v3 9/17 cairo: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides.
---
Changes in v3: None
Changes in v2: None
recipes-graphics/cairo/cairo_%.bbappend | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
recipes-graphics/cairo/cairo_%.bbappend +9 -7
@@ -1,8 +1,10 @@ -CFLAGS_append_mx6 = " -DLINUX \ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ - bb.utils.contains('DISTRO_FEATURES', 'wayland', \ - '-DEGL_API_FB -DEGL_API_WL', '-DEGL_API_FB', d), d)}" +CFLAGS_append_imxgpu2d = " \ + -DLINUX \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', \ + '', \ + bb.utils.contains('DISTRO_FEATURES', 'wayland', \ + '-DEGL_API_FB -DEGL_API_WL', \ + '-DEGL_API_FB', d), d)} \ +" -PACKAGECONFIG_append_mx6q = " egl glesv2" -PACKAGECONFIG_append_mx6dl = " egl glesv2" -PACKAGECONFIG_append_mx6sx = " egl glesv2" +PACKAGECONFIG_append_imxgpu3d = " egl glesv2"
Signature · 1 line
2.9.3
PATCH v3 10/17 eglinfo: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu3d' feature override.
---
Changes in v3: None
Changes in v2: None
recipes-graphics/eglinfo/eglinfo-fb_%.bbappend | 4 +--- recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-)
recipes-graphics/eglinfo/eglinfo-fb_%.bbappend +1 -3
@@ -1,4 +1,2 @@ # Set i.MX specific dependencies and device type -EGLINFO_DEVICE_mx6q = "imx6" -EGLINFO_DEVICE_mx6dl = "imx6" -EGLINFO_DEVICE_mx6sx = "imx6" +EGLINFO_DEVICE_imxgpu3d = "imx6"
recipes-graphics/eglinfo/eglinfo-x11_%.bbappend +1 -3
@@ -1,4 +1,2 @@ # Set i.MX specific dependencies and device type -EGLINFO_DEVICE_mx6q = "imx6" -EGLINFO_DEVICE_mx6dl = "imx6" -EGLINFO_DEVICE_mx6sx = "imx6" +EGLINFO_DEVICE_imxgpu3d = "imx6"
Signature · 1 line
2.9.3
PATCH v3 11/17 imx-gpu-viv: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6SL specific code has been reworked to used when only 2D GPU support is available.
---
Changes in v3: None
Changes in v2: None
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +6 -7
@@ -13,9 +13,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxd libpng" EXTRA_PROVIDES = "" -EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" -EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" -EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2" +EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2" PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" PE = "1"
@@ -94,8 +92,8 @@ python __anonymous() { d.appendVar("RCONFLICTS_" + fullp, pkgs) } -IS_MX6SL = "0" -IS_MX6SL_mx6sl = "1" +IMXGPU_imxgpu3d = "3d" +IMXGPU_imxgpu2d = "2d" do_install () { install -d ${D}${libdir}
@@ -182,8 +180,9 @@ do_install () { find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';' done - # FIXME: MX6SL does not have 3D support; hack it for now - if [ "${IS_MX6SL}" = "1" ]; then + # FIXME: For 2D only GPU, we need to remove some content which is + # 3D specific. + if [ "${IMXGPU}" = "2d" ]; then rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ \ ${D}${libdir}/libGL* ${D}${includedir}/GL* \
Signature · 1 line
2.9.3
PATCH v3 12/17 mesa-gl: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxgpu2d' feature override. This override has been taken as it is the common only on the matching overrides.
---
Changes in v3: None
Changes in v2: None
recipes-graphics/mesa/mesa-gl_%.bbappend | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
recipes-graphics/mesa/mesa-gl_%.bbappend +1 -4
@@ -1,4 +1 @@ -COMPATIBLE_MACHINE_mx6q = "(-)" -COMPATIBLE_MACHINE_mx6dl = "(-)" -COMPATIBLE_MACHINE_mx6sx = "(-)" -COMPATIBLE_MACHINE_mx6sl = "(-)" +COMPATIBLE_MACHINE_imxgpu2d = "(-)"
Signature · 1 line
2.9.3
PATCH v3 13/17 weston: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxpxp', 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6UL specific code has been reworked to used when only PXP-only support is available, fixing the i.MX7D support as well.
---
Changes in v3: None
Changes in v2: None
recipes-graphics/wayland/weston_%.bbappend | 61 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 30 deletions(-)
recipes-graphics/wayland/weston_%.bbappend +31 -30
@@ -1,50 +1,51 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " \ +SRC_URI_append_imxgpu2d = " \ file://0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch \ file://0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch \ file://0004-MGS-1235-Fix-setenv-and-clear-environments.patch \ file://0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch \ file://0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch \ file://0007-MGS-1236-1-imx6qp-imx6dl-First-frame-distored-when-s.patch \ - " -PACKAGECONFIG_append_mx6q = " cairo-glesv2" -PACKAGECONFIG_append_mx6dl = " cairo-glesv2" -PACKAGECONFIG_append_mx6sx = " cairo-glesv2" -PACKAGECONFIG_remove_mx6sl = "egl" -PACKAGECONFIG_remove_mx6ul = "egl" - -EXTRA_OECONF_append_mx6 = " \ - --disable-libunwind \ - --disable-xwayland-test \ - WESTON_NATIVE_BACKEND=fbdev-backend.so \ " -EXTRA_OECONF_append_mx6ul = " \ + +PACKAGECONFIG_IMX_TO_APPEND = "" +PACKAGECONFIG_IMX_TO_APPEND_imxgpu3d = "cairo-glesv2" +PACKAGECONFIG_IMX_TO_REMOVE = "" +PACKAGECONFIG_IMX_TO_REMOVE_imxpxp = "egl" +PACKAGECONFIG_IMX_TO_REMOVE_imxgpu2d = "" + +PACKAGECONFIG_append = " ${PACKAGECONFIG_IMX_TO_APPEND}" +PACKAGECONFIG_remove = " ${PACKAGECONFIG_IMX_TO_REMOVE}" + + +EXTRA_OECONF_IMX = " \ --disable-libunwind \ --disable-xwayland-test \ WESTON_NATIVE_BACKEND=fbdev-backend.so \ " -EXTRA_OEMAKE_append_mx6 = " \ +EXTRA_OECONF_append_imxpxp = " ${EXTRA_OECONF_IMX}" +EXTRA_OECONF_append_imxgpu2d = " ${EXTRA_OECONF_IMX}" + +# Use a intermediate step to configure the linking flags +IMXGPU_LIBS = "" +IMXGPU_LIBS_imxgpu2d = " \ + COMPOSITOR_LIBS="-lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ + FB_COMPOSITOR_LIBS="-lEGL -lwayland-server -lxkbcommon" \ +" +IMXGPU_LIBS_imxgpu3d = " \ + COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ + FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ +" + +# Use the linking flags according to the GPU support +EXTRA_OEMAKE_append_imxgpu2d = " \ COMPOSITOR_CFLAGS="-I ${STAGING_INCDIR}/pixman-1 -DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \ FB_COMPOSITOR_CFLAGS="-DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \ SIMPLE_EGL_CLIENT_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \ EGL_TESTS_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \ CLIENT_CFLAGS="-I ${STAGING_INCDIR}/cairo -I ${STAGING_INCDIR}/pixman-1 -DLINUX -DEGL_API_FB -DEGL_API_WL" \ -" -EXTRA_OEMAKE_append_mx6q = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6dl = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6sx = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6sl = " \ - COMPOSITOR_LIBS="-lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lEGL -lwayland-server -lxkbcommon" \ + \ + ${IMXGPU_LIBS} \ "
Signature · 1 line
2.9.3
PATCH v3 14/17 gstreamer1.0-plugins-imx: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxpxp', 'imxipu', 'imxvpu', 'imxgpu2d' and 'imxgpu3d' feature overrides.
---
Changes in v3:
- Fix wrong setting for 2D GPUs (Tom)
Changes in v2: None
.../gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb +6 -6
@@ -40,12 +40,12 @@ EGLVIVSINK_DEPENDS = " \ bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ '', d),d)}" -PACKAGECONFIG ?= "" -PACKAGECONFIG_mx6q = "uniaudiodec mp3encoder v4l2src g2d eglvivsink ipu vpu" -PACKAGECONFIG_mx6dl = "uniaudiodec mp3encoder v4l2src pxp g2d eglvivsink ipu vpu" -PACKAGECONFIG_mx6sx = "uniaudiodec mp3encoder v4l2src pxp g2d eglvivsink" -PACKAGECONFIG_mx6sl = "uniaudiodec mp3encoder v4l2src pxp g2d" -PACKAGECONFIG_mx7 = "uniaudiodec mp3encoder v4l2src pxp" +PACKAGECONFIG ?= "uniaudiodec mp3encoder v4l2src" +PACKAGECONFIG_append_imxgpu3d = " eglvivsink" +PACKAGECONFIG_append_imxgpu2d = " g2d" +PACKAGECONFIG_append_imxipu = " ipu" +PACKAGECONFIG_append_imxvpu = " vpu" +PACKAGECONFIG_append_imxpxp = " pxp" PACKAGECONFIG[g2d] = ",--disable-g2d,imx-gpu-viv" PACKAGECONFIG[pxp] = ",--disable-pxp,"
Signature · 1 line
2.9.3
PATCH v3 15/17 imx-codec: Refactor code to use the new overrides
In reply to Otavio SalvadorThe recipe has been reworked to use the 'imxvpu' feature override.
---
Changes in v3: None
Changes in v2: None
recipes-multimedia/imx-codec/imx-codec.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-multimedia/imx-codec/imx-codec.inc +1 -2
@@ -16,8 +16,7 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d)}" PACKAGECONFIG ?= "" -PACKAGECONFIG_mx6q = "vpu" -PACKAGECONFIG_mx6dl = "vpu" +PACKAGECONFIG_imxvpu = "vpu" PACKAGECONFIG[vpu] = "--enable-vpu,--disable-vpu,imx-vpu"
Signature · 1 line
2.9.3
PATCH v3 16/17 gstreamer1.0-plugins-imx: Change EGL platform preference order
In reply to Otavio SalvadorThe i.MX BSP now defaults for XWayland when both X11 and Wayland support is available, so we ought to use the Wayland backend for this case as well.
---
Changes in v3: None
Changes in v2:
- New patch.
recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb +4 -4
@@ -24,11 +24,11 @@ inherit waf do_compile[depends] += "virtual/kernel:do_shared_workdir" # configure the eglvivsink element to use the appropriate EGL platform code -# X11 if x11 is present in DISTRO_FEATURES -# Wayland if x11 is not present in DISTRO_FEATURES, but wayland is +# Wayland if 'wayland' is present in DISTRO_FEATURES, if not, +# X11 if x11 is present in DISTRO_FEATURES, # Framebuffer otherwise -EGLVIVSINK_PLATFORM = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ - bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ +EGLVIVSINK_PLATFORM = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ + bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ 'fb', d),d)}" EGL_PLATFORM_CONF = "--egl-platform=${EGLVIVSINK_PLATFORM}"
Signature · 1 line
2.9.3
PATCH v3 17/17 qtbase: Enable support for i.MX SoCs with PXP
In reply to Otavio SalvadorThis enables the use of GLES2 backend for Software Rendering allowing SoCs without GPU support to use it. Up to now, this includes i.MX6UL and i.MX7D.
---
Changes in v3:
- New patch
Changes in v2: None
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 2 ++ 1 file changed, 2 insertions(+)
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +2 -0
@@ -6,10 +6,12 @@ HAS_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 1, 0, d)}" IMXGPU_imxgpu3d = "3d" IMXGPU_imxgpu2d = "2d" +PACKAGECONFIG_GL_imxpxp = "gles2" PACKAGECONFIG_GL_imxgpu3d = "gles2" PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}" QT_CONFIG_FLAGS_APPEND = "" +QT_CONFIG_FLAGS_APPEND_imxpxp = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" QT_CONFIG_FLAGS_APPEND_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -no-opengl -linuxfb -no-eglfs', d)}" QT_CONFIG_FLAGS_APPEND_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}" QT_CONFIG_FLAGS_append = " ${QT_CONFIG_FLAGS_APPEND}"
Signature · 1 line
2.9.3