[meta-freescale] [meta-fsl-arm PATCH v2 00/16] Machine overrides extender - reduce code duplication

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Sep 2 03:13:28 PDT 2016


On Fri, Sep 2, 2016 at 12:42 AM, Tom Hochstein <tom.hochstein at nxp.com> wrote:
> This looks good, but what do you think of implementing the new items as MACHINE_FEATURES instead of overrides?

It should be possible indeed however, thinking about it, I think using
overrides offers an easier to use mechanism.

For example, using the overrides we can:

PACKAGECONFIG_append_imxgpu3d = " egl"

To use the MACHINE_FEATURES we would need to use:

PACKAGECONFIG_append = " $@{bb.utils.contains('MACHINE_FEATURES',
'imxgpu3d', 'egl', '', d}"

Another benefit is that with the extender, we define the features on a
single place (imx-base.inc) and every board using the respective SoC
will use it. For machine features we would need to set it in every
board which is easy to get wrong.

-- 
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


More information about the meta-freescale mailing list