From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EBDF8E00F2F; Mon, 29 Aug 2016 10:04:53 -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=0.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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.220.171 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.7 UC_GIBBERISH_OBFU Multiple instances of "word VERYLONGGIBBERISH * word" Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 05C6DE00F2A for ; Mon, 29 Aug 2016 10:04:48 -0700 (PDT) Received: by mail-qk0-f171.google.com with SMTP id t7so144226443qkh.1 for ; Mon, 29 Aug 2016 10:04:48 -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=VKqqL/sTcnFNfGineqIu0QSSYRNCuG6REmG+XSa1yfo=; b=LKhy8bnuKn8kSNukH5DWHzCrmaZ/nDNY0wcTL0aQZmA8RiUcTfH/OYqml7DfBpMWKk xZTxU1X7KtryVIxR34egqxOU/dFS6pNHvIfI1w/XDEvpL9eFlIaB9lVCGH5W7QgD/ttq btpyN+Zs5xvKdJPPnimoViW4xEHBy16PEieXWv5CVboaxX0tRCxR9xOAWe4BpUvKB6u+ vq/970yl2SvM+WP6SBIRMI3pqG4zTKhZCqLvF0Jl/+DEvjgoNoN67qkzKy5orbx5fymH UkFKdqR501mb+nF39RuoopXj2+7giVtjWHvr+pMvwW596NLXgEfm/eUxU72wc04b1fEC elww== X-Gm-Message-State: AE9vXwPwRaZi5HWe40/bOir7J9hxFCobE/TGrmd7o1/rLsbKChYTI6lPECCumu80D+ngRQ== X-Received: by 10.55.25.12 with SMTP id k12mr21052225qkh.225.1472490283078; Mon, 29 Aug 2016 10:04:43 -0700 (PDT) Received: from localhost ([177.100.224.8]) by smtp.gmail.com with ESMTPSA id e33sm19064431qta.47.2016.08.29.10.04.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Aug 2016 10:04:42 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 29 Aug 2016 14:04:34 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 29 Aug 2016 14:04:18 -0300 Message-Id: <20160829170433.11363-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: [FEATURE meta-fsl-arm PATCH 00/15] 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: Mon, 29 Aug 2016 17:04:54 -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" Otavio Salvador (15): 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 .../recipes-browser/chromium/chromium-imx.inc | 3 +- .../chromium/chromium_48.0.2548.0.bbappend | 5 +- classes/machine-overrides-extender.bbclass | 23 ++++++++ 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 | 11 ++-- recipes-multimedia/imx-codec/imx-codec.inc | 3 +- 38 files changed, 150 insertions(+), 133 deletions(-) create mode 100644 classes/machine-overrides-extender.bbclass -- 2.9.3