[meta-freescale] [meta-fsl-arm PATCH v2 00/16] Machine overrides extender - reduce code duplication
Otavio Salvador
otavio at ossystems.com.br
Thu Sep 1 15:20:27 PDT 2016
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 v2:
- Use BitBake event to insert the extends
- New patch.
Otavio Salvador (16):
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
.../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 | 19 +++----
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 | 19 ++++---
recipes-multimedia/imx-codec/imx-codec.inc | 3 +-
38 files changed, 160 insertions(+), 137 deletions(-)
create mode 100644 classes/machine-overrides-extender.bbclass
--
2.9.3
More information about the meta-freescale
mailing list