From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D56F6E00E7B; Thu, 1 Sep 2016 22:16:33 -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.60 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 X-Greylist: delayed 3558 seconds by postgrey-1.32 at yocto-www; Thu, 01 Sep 2016 22:16:30 PDT Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0060.outbound.protection.outlook.com [104.47.2.60]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 242D4E00E79 for ; Thu, 1 Sep 2016 22:16:30 -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=DzROF9YxS6+arXg/TRJTOLBjvyjNFYCthTlB7OynlYY=; b=GxiRwfo982OYipJj3kEgaAOo06+cCh/8ngT9pys/lzIJ/4aVTWEplQzsYL7NRv+TeYlrQ6EPpCluD8ocXTKmeuX1k2pIzos7m2GLtTyoYGzzBKU4hUu2KH3slRVEiU3+pTGdvX8cdltam+PWgnnvh/D33Ws+cQ7r5qVh9nUvVJg= Received: from AMSPR04MB309.eurprd04.prod.outlook.com (10.242.107.15) by AMSPR04MB310.eurprd04.prod.outlook.com (10.242.107.20) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.3; Fri, 2 Sep 2016 03:43:00 +0000 Received: from AMSPR04MB309.eurprd04.prod.outlook.com ([10.242.107.15]) by AMSPR04MB309.eurprd04.prod.outlook.com ([10.242.107.15]) with mapi id 15.01.0609.006; Fri, 2 Sep 2016 03:42:59 +0000 From: Tom Hochstein To: Otavio Salvador , meta-freescale Mailing List Thread-Topic: [meta-fsl-arm PATCH v2 00/16] Machine overrides extender - reduce code duplication Thread-Index: AQHSBJ8bAUEXgLoqQkOKC9clP9zce6BlgmSw Date: Fri, 2 Sep 2016 03:42:59 +0000 Message-ID: References: <20160901222043.18942-1-otavio@ossystems.com.br> In-Reply-To: <20160901222043.18942-1-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=tom.hochstein@nxp.com; x-originating-ip: [63.246.163.81] x-ms-office365-filtering-correlation-id: 3078edfb-7743-4113-7ce0-08d3d2e33c18 x-microsoft-exchange-diagnostics: 1; AMSPR04MB310; 6:hv8mnR0dlSIrbTduZPgcqOOdDBFSYFc0TAP2qV1Ku/37io/kJdH5qPcytHjS0MqiQig4NssOVtuiZ6nnbhydrLPvb/sqkXyYf5jQPFEglp198WNLuPxqqerh1URtwEbAPR61msuiKBAvetm18jqgrTRk16lSTkH9pv+jsbBQ6rMsLDNtiZBnOOTa5NrRe/9wZr9hOWmFhb7055JIGzQebcqqAGbNOqFmVIakjMGGr2iSWZbav+IGd6Z67YT+d9S7PChBfDl1GGTetmpRVcg/pRlZf09cevRvxz5pKhFVtMpRONVz+sxqQamr+UngF7PNQwU4D30tj7M9YG+xsACjsw==; 5:xOE7fWvYEwmZ1ye/BCXWdLLaarE5X8ehz8EpUmdk6aE0/3jKV3T988jzO+oId3GYb8MnNRZfv9vWg0iU+e15/pAwfzpDHVxDUewTiE8FQPxxvCyB8yeO6gqLMKO2Chv0lmOd53Ir/SSJX19JXk0OeQ==; 24:44d6vVhWWKskrVjDeoo84f3FcmAwB4QJfevZ00PIpIycHuhKuN4KgTo65tZPCSKAEkWSGoWwFdvxqJEIQMhIreU4LyA9zoArqX2YxMcQrr4=; 7:PEG1t/CFIS68rK1xAK+BUEJdlOmVqNYKUHKPnGfNvWMK5qJx2NudbUoR+GdYxsgNvT8pKTqDWKsd2/q2mh/KWWShXLLAc3c0tstgytNzSepeIUg7Y971j63ss8AZ3h7rHdSrYL8Ncvy8tsA06upxTQhLy0Rrx/S83IL4IcOu0C5aVy7zX/DN89rSUjb+DUmCXsRPBeEBMnMkGu3185tNwq9uTNO2AauTO52LhLYgM5vO1UhDnjtM518qHczOoPsf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AMSPR04MB310; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(166494164430575); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:AMSPR04MB310; BCL:0; PCL:0; RULEID:; SRVR:AMSPR04MB310; x-forefront-prvs: 00531FAC2C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(199003)(377454003)(13464003)(76104003)(106356001)(5660300001)(77096005)(6116002)(10400500002)(105586002)(102836003)(76576001)(5002640100001)(33656002)(3846002)(19580395003)(81156014)(9686002)(68736007)(8676002)(586003)(19580405001)(2900100001)(7696003)(81166006)(7736002)(92566002)(106116001)(87936001)(189998001)(86362001)(8936002)(2950100001)(122556002)(230783001)(76176999)(7846002)(4326007)(3660700001)(2906002)(97736004)(54356999)(101416001)(66066001)(305945005)(74316002)(3280700002)(5001770100001)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:AMSPR04MB310; H:AMSPR04MB309.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: 02 Sep 2016 03:42:59.4827 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR04MB310 Cc: Prabhu Sundararaj , White Weng Subject: Re: [meta-fsl-arm PATCH v2 00/16] Machine overrides extender - reduce code duplication 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: Fri, 02 Sep 2016 05:16:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Otavio, =20 This looks good, but what do you think of implementing the new items as MAC= HINE_FEATURES instead of overrides? =09 Tom -----Original Message----- From: Otavio Salvador [mailto:otavio@ossystems.com.br]=20 Sent: Thursday, September 01, 2016 5:20 PM To: meta-freescale Mailing List Cc: Neena Busireddy ; Daiane Angolini ; Prabhu Sundararaj ; Tom Hoch= stein ; Zhenhua Luo ; White Wen= g ; Lauren Post ; Otavio Salvador = Subject: [meta-fsl-arm PATCH v2 00/16] Machine overrides extender - reduce = code duplication We spent some time trying to come up with something which would make easier to extend the tune-arch support. All we could come up was way too complex or did not work. Instead We did a MACHINEOVERRIDES extender. This enables the machine overrides extender for the i.MX6 devices. It maps (spaces are used to easy the read): - mx6q -> imxipu imxvpu imxgpu2d imxgpu3d - mx6dl -> imxpxp imxipu imxvpu imxgpu2d imxgpu3d imxepdc - mx6sx -> imxpxp imxgpu2d imxgpu3d - mx6sl -> imxpxp imxgpu2d imxepdc - mx6ul -> imxpxp - mx7d -> imxpxp imxepdc So it allows for reusing of overrides while keeps this control at the BSP side. For example, a PACKAGECONFIG setting which is common for mx6q, mx6dl and mx6sx used to look as: PACKAGECONFIG_mx6q =3D "option" PACKAGECONFIG_mx6dl =3D "option" Now it can be replaced by: PACKAGECONFIG_imxvpu =3D "option" Changes in v2: - Use BitBake event to insert the extends - New patch. Otavio Salvador (16): Convert SOC_FAMILY to MACHINEOVERRIDES imx-lib: Stop using generic SoC overrides imx-test: Stop using generic SoC overrides machine-overrides-extender.bbclass: Automatically set extend the MACHINEOVERRIDES imx-base.inc: Enable machine overrides extender for i.MX6 chromium: Refactor code to use the the new overrides glmark2: Refactor code to use the new overrides qtbase: Refactor code to use the new overrides cairo: Refactor code to use the new overrides eglinfo: Refactor code to use the new overrides imx-gpu-viv: Refactor code to use the new overrides mesa-gl: Refactor code to use the new overrides weston: Refactor code to use the new overrides gstreamer1.0-plugins-imx: Refactor code to use the new overrides imx-codec: Refactor code to use the new overrides gstreamer1.0-plugins-imx: Change EGL platform preference order .../recipes-browser/chromium/chromium-imx.inc | 3 +- .../chromium/chromium_48.0.2548.0.bbappend | 5 +- classes/machine-overrides-extender.bbclass | 29 ++++++++++ conf/machine/imx23evk.conf | 4 +- conf/machine/imx28evk.conf | 4 +- conf/machine/imx51evk.conf | 4 +- conf/machine/imx53ard.conf | 4 +- conf/machine/imx53qsb.conf | 4 +- conf/machine/imx6dlsabreauto.conf | 4 +- conf/machine/imx6dlsabresd.conf | 4 +- conf/machine/imx6qpsabreauto.conf | 4 +- conf/machine/imx6qpsabresd.conf | 4 +- conf/machine/imx6qsabreauto.conf | 4 +- conf/machine/imx6qsabresd.conf | 4 +- conf/machine/imx6slevk.conf | 4 +- conf/machine/imx6solosabreauto.conf | 4 +- conf/machine/imx6solosabresd.conf | 4 +- conf/machine/imx6sxsabreauto.conf | 4 +- conf/machine/imx6sxsabresd.conf | 4 +- conf/machine/imx6ulevk.conf | 4 +- conf/machine/imx7dsabresd.conf | 4 +- conf/machine/include/imx-base.inc | 11 +++- conf/machine/include/qoriq-arm.inc | 2 - conf/machine/ls1021atwr.conf | 4 +- conf/machine/twr-vf65gs10.conf | 4 +- .../recipes-benchmark/glmark2/glmark2_%.bbappend | 8 +-- qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | 2 +- qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 19 +++---- recipes-bsp/imx-lib/imx-lib.inc | 6 ++- recipes-bsp/imx-test/imx-test.inc | 7 +-- recipes-graphics/cairo/cairo_%.bbappend | 16 +++--- recipes-graphics/eglinfo/eglinfo-fb_%.bbappend | 4 +- recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 4 +- recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 +++-- recipes-graphics/mesa/mesa-gl_%.bbappend | 5 +- recipes-graphics/wayland/weston_%.bbappend | 61 +++++++++++-------= ---- .../gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb | 19 ++++--- recipes-multimedia/imx-codec/imx-codec.inc | 3 +- 38 files changed, 160 insertions(+), 137 deletions(-) create mode 100644 classes/machine-overrides-extender.bbclass --=20 2.9.3