[meta-freescale] [FEATURE meta-fsl-arm PATCH 04/15] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES

Otavio Salvador otavio.salvador at ossystems.com.br
Wed Aug 31 03:03:08 PDT 2016


On Wed, Aug 31, 2016 at 4:41 AM, Zhenhua Luo <zhenhua.luo at nxp.com> wrote:
>> -----Original Message-----
>> From: Otavio Salvador [mailto:otavio at ossystems.com.br]
>> Sent: Tuesday, August 30, 2016 1:04 AM
>>
>> +python __anonymous () {
>> +    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)):
> [Luo Zhenhua] Is it possible that only part items in set(extender) are available in set(machine_overrides)? If yes, there will be duplicated items in final machine_overrides.

This is to cover machines which uses SPL to support multiple SoC
(Wandboard, CuBox-i, ...) and then has:

#@TYPE: Machine
#@NAME: Wandboard i.MX6 Wandboard Quad/Dual/Solo
#@SOC: i.MX6Q/DL
#@DESCRIPTION: Machine configuration for i.MX6 Wandboard Quad
#@MAINTAINER: Alfonso Tames <alfonso at tames.com>

MACHINEOVERRIDES =. "mx6:mx6dl:mx6q:"

which expands for:

% MACHINE=wandboard bitbake core-image-base -e | grep '^MACHINEOVERRIDES='
MACHINEOVERRIDES="armv7a:imx:mx6:imxpxp:imxipu:imxvpu:imxgpu2d:imxgpu3d:imxepdc:mx6dl:mx6q:wandboard"

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