From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8A316E00AB4; Wed, 31 Aug 2016 00:41:58 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.2.41 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 23554E007C2 for ; Wed, 31 Aug 2016 00:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=C7Sw93/osPtRx1AG3MmPOmquX+OX3qaRG0ww+1aMhCM=; b=OAX43AvcCNy+UTde6PsnwKO2Dyvf/q7peeerhMo4KszfXIR342BdM5CUiyaUx/3YMeTDVGfpfPkj4j7KwjJKMCUsB+e0CDMykq2xmGNgJVuQRHoPjFGP+xfXHykUnLcKlfa13RXUB9LqEpOIxwjBb5UnxxOjn7hDvjXBLZzThjI= Received: from DB6PR0401MB2630.eurprd04.prod.outlook.com (10.169.225.139) by DB6PR0401MB2662.eurprd04.prod.outlook.com (10.169.225.147) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.3; Wed, 31 Aug 2016 07:41:50 +0000 Received: from DB6PR0401MB2630.eurprd04.prod.outlook.com ([10.169.225.139]) by DB6PR0401MB2630.eurprd04.prod.outlook.com ([10.169.225.139]) with mapi id 15.01.0609.006; Wed, 31 Aug 2016 07:41:51 +0000 From: Zhenhua Luo To: Otavio Salvador , meta-freescale Mailing List Thread-Topic: [FEATURE meta-fsl-arm PATCH 04/15] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES Thread-Index: AQHSAheH4g4F1H+8skK8xYM5/yWiVKBisKIg Date: Wed, 31 Aug 2016 07:41:50 +0000 Message-ID: References: <20160829170433.11363-1-otavio@ossystems.com.br> <20160829170433.11363-5-otavio@ossystems.com.br> In-Reply-To: <20160829170433.11363-5-otavio@ossystems.com.br> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhenhua.luo@nxp.com; x-originating-ip: [199.59.226.141] x-ms-office365-filtering-correlation-id: 1cfe245f-f1ee-4c73-55b0-08d3d172456e x-microsoft-exchange-diagnostics: 1; DB6PR0401MB2662; 6:dO7zv2nPE7WxgSkzYkNbdCvS4e6e3Q2QduxlWy2EUREpZnakm4Cz6lWv3+LU/wHb26BCIaleCczG1Xi58c/yVgAIwTro9xFhzfKyqu0HogOQLoI/ndphTFcvlMwnnZpFuJRxngcvA+HmaCPh5jmwKCZxiGQ5VOewXhHWpJWyPugn93AnQ+npxeer9lR5/9nPWbkLQjvkdRrkC/v+qdbKERhdBdoQISEd+0sq3GJAGDOEHFkRCvEwqU9X4cQTJojpUZ/YM6e0BQzTFqTbKp0JTM8n8BiWch28nXWOItkuJRxOsyUNwjCDG6fclaG5j8etiE8oCe7/nI/hixyHCzR6zw==; 5:48iIiDfbHXsqMI80RPOziqUycOo0k6Vof10+n6FAoJ4oJzbX5NcErgQuV7DzAS2qI7UYPa1ht9FLWPP2S7+Mi5h9zOTNyoeJQsOSVRR/S5z/XtWDDAa1KmXwXzagye7R7d+6NvkEZS44/pMUtNhzrA==; 24:KqF1FYxE46fyTK6ACmeSnSEgevbJNn/LSE2HE1gvyPSNMrw73aqUmxsQA4CGCgt26gy5vUn+UxE1G0etkOL8bDVVQXsq3SG1Y5sscmIecXE=; 7:GBrQTuWnocmFX8jjiCUkK8BaAEWvUKPOmR6eNP4umFU4wBDbzqmPUtZD1+62ViFtM0uRdjVn+Ww6NHbM67+4VETE6vdWc521ppKnrGooBP4Zv2q/4GbR1FmHgdV6+pUYxToAXwj6xEX88I9OHAGr2VngvGebnd3TR0q6vB3F4B8Xn0qrnKYqN074a0iO12L4c3EMxEqeqDkWXeRnQOGnBswUa08pCc+zy6huwBUm+b63ZdrC6yNCMSQNxB9Yr/+j x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0401MB2662; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166494164430575); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:DB6PR0401MB2662; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2662; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(199003)(377454003)(13464003)(3846002)(2900100001)(6116002)(102836003)(2906002)(76576001)(76176999)(54356999)(50986999)(7736002)(9686002)(7696003)(7846002)(305945005)(3660700001)(10400500002)(106356001)(101416001)(106116001)(586003)(2950100001)(3280700002)(74316002)(86362001)(122556002)(68736007)(66066001)(33656002)(77096005)(105586002)(87936001)(19580405001)(19580395003)(5002640100001)(189998001)(92566002)(5001770100001)(5660300001)(81166006)(81156014)(97736004)(4326007)(8676002)(8936002)(230783001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2662; H:DB6PR0401MB2630.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2016 07:41:50.8936 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2662 Cc: Prabhu Sundararaj , White Weng Subject: Re: [FEATURE meta-fsl-arm PATCH 04/15] machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 07:41:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable HI Otavio,=20 > -----Original Message----- > From: Otavio Salvador [mailto:otavio@ossystems.com.br] > Sent: Tuesday, August 30, 2016 1:04 AM >=20 > +python __anonymous () { > + machine_overrides =3D (d.getVar('MACHINEOVERRIDES', True) or '').spl= it(':') > + for o in machine_overrides: > + extender =3D d.getVar('MACHINEOVERRIDES_EXTENDER_%s' % o, True) > + if extender: > + extender =3D 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 avai= lable in set(machine_overrides)? If yes, there will be duplicated items in = final machine_overrides.=20 > + index =3D 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=20