On Wed, Aug 31, 2016 at 4:41 AM, Zhenhua Luo <[email protected]> wrote: >> -----Original Message----- >> From: Otavio Salvador [mailto:[email protected]] >> 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 <[email protected]> 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 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
