Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 34081E00D72; Tue, 6 Sep 2016 10:58:19 -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.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM,UC_GIBBERISH_OBFU autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.213.44 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.44 listed in dnsbl.sorbs.net] * 3.0 UC_GIBBERISH_OBFU Multiple instances of "word VERYLONGGIBBERISH * word" Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A4BA1E00D4A for ; Tue, 6 Sep 2016 10:58:17 -0700 (PDT) Received: by mail-vk0-f44.google.com with SMTP id w64so18399727vkh.3 for ; Tue, 06 Sep 2016 10:58:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=WGLoUUW4qDKAdDuzy9BZzFxA7WQFrnTQbk+hY33cjWY=; b=HbKDRJJOQ9OVAj+gkqQDOAJp6mOxZmSBH8nKM8M0/1udcwmcQl4YFyAi01sr8E7uHO b6gmL43VExPS+Z+gm34XBRSj8mPG9049yEUUk+ZbBFdm6kaTiDCMaceQTYvFe/Yxx5Yv /ay+LWwb019TYZKgZca3ECYzS9hiiMbAf/mel8FHsG6G1n4PTtJ9szXgQZ7yNUYNLYBX G0WDBvPSyGbRvN2roS5dhrCEn76JYaUQX+QCtfUuZKyMJFL6cqRUIFuibxEXg/wEifHj WaOuSe5JwTafy+2Bd0l3CRl+rwcR0URjBirriynsnTAv6SmDeNhJ0O3BHbXdhtMJpBMH Yizg== X-Gm-Message-State: AE9vXwMCU1lJx1+gNzTYBpbzYMgttwsMtpv6rSM1ewrXHa5DaJkbJY6rd06kQOmy34TaSA== X-Received: by 10.31.74.5 with SMTP id x5mr25886767vka.42.1473184696451; Tue, 06 Sep 2016 10:58:16 -0700 (PDT) Received: from localhost ([179.105.254.222]) by smtp.gmail.com with ESMTPSA id g90sm5245857uag.2.2016.09.06.10.58.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 10:58:15 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Tue, 06 Sep 2016 14:58:10 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 6 Sep 2016 14:57:52 -0300 Message-Id: <20160906175809.30139-1-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.3 Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador , prabhu.sundararaj@nxp.com, white.weng@nxp.com Subject: [meta-fsl-arm PATCH v3 00/17] 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: Tue, 06 Sep 2016 17:58:19 -0000 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 = "option" PACKAGECONFIG_mx6dl = "option" Now it can be replaced by: PACKAGECONFIG_imxvpu = "option" Changes in v3: - Use a intermediate variable for append so values can change (need for PXP support later) - Fix wrong setting for 2D GPUs (Tom) - New patch Changes in v2: - Use BitBake event to insert the extends - New patch. Otavio Salvador (17): 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 qtbase: Enable support for i.MX SoCs with PXP .../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 | 25 ++++----- 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 | 20 +++---- recipes-multimedia/imx-codec/imx-codec.inc | 3 +- 38 files changed, 166 insertions(+), 138 deletions(-) create mode 100644 classes/machine-overrides-extender.bbclass -- 2.9.3