All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhenhua Luo <zhenhua.luo@nxp.com>
To: Otavio Salvador <otavio@ossystems.com.br>,
	meta-freescale Mailing List <meta-freescale@yoctoproject.org>
Cc: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>,
	White Weng <white.weng@nxp.com>
Subject: Re: [FEATURE meta-fsl-arm PATCH 04/15] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES
Date: Wed, 31 Aug 2016 07:41:50 +0000	[thread overview]
Message-ID: <DB6PR0401MB263035E321AD969DC8BA7795EEE30@DB6PR0401MB2630.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20160829170433.11363-5-otavio@ossystems.com.br>

HI Otavio, 

> -----Original Message-----
> From: Otavio Salvador [mailto:otavio@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. 

> +                index = machine_overrides.index(o)
> +                for e in extender:
> +                    machine_overrides.insert(index, e)
> +    d.setVar('MACHINEOVERRIDES', ':'.join(machine_overrides)) }
> --
> 2.9.3


Best Regards,

Zhenhua 


  reply	other threads:[~2016-08-31  7:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29 17:04 [FEATURE meta-fsl-arm PATCH 00/15] Machine overrides extender - reduce code duplication Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 01/15] Convert SOC_FAMILY to MACHINEOVERRIDES Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 02/15] imx-lib: Stop using generic SoC overrides Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 03/15] imx-test: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 04/15] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES Otavio Salvador
2016-08-31  7:41   ` Zhenhua Luo [this message]
2016-08-31 10:03     ` Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 05/15] imx-base.inc: Enable machine overrides extender for i.MX6 Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 06/15] chromium: Refactor code to use the the new overrides Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 07/15] glmark2: Refactor code to use " Otavio Salvador
2016-08-29 17:21   ` Prabhu Sundararaj
2016-08-29 18:14     ` Otavio Salvador
2016-08-30 13:50       ` Prabhu Sundararaj
2016-08-30 13:55         ` Otavio Salvador
2016-09-01 22:19           ` Otavio Salvador
2016-09-01 22:22             ` Prabhu Sundararaj
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 08/15] qtbase: " Otavio Salvador
2016-08-29 17:19   ` Prabhu Sundararaj
2016-08-29 18:13     ` Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 09/15] cairo: " Otavio Salvador
2016-08-29 17:17   ` Prabhu Sundararaj
2016-08-29 18:10     ` Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 10/15] eglinfo: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 11/15] imx-gpu-viv: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 12/15] mesa-gl: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 13/15] weston: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 14/15] gstreamer1.0-plugins-imx: " Otavio Salvador
2016-08-29 17:04 ` [FEATURE meta-fsl-arm PATCH 15/15] imx-codec: " Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB6PR0401MB263035E321AD969DC8BA7795EEE30@DB6PR0401MB2630.eurprd04.prod.outlook.com \
    --to=zhenhua.luo@nxp.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    --cc=prabhu.sundararaj@nxp.com \
    --cc=white.weng@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.