From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CB6D5E0077E; Fri, 2 Sep 2016 11:55:09 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham 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.217.178 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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 mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6A3CEE0070F for ; Fri, 2 Sep 2016 11:55:05 -0700 (PDT) Received: by mail-ua0-f178.google.com with SMTP id q42so127133983uaq.1 for ; Fri, 02 Sep 2016 11:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:mime-version:in-reply-to:references:date:message-id:subject:to :cc:content-transfer-encoding; bh=0fQGi6dgLerY/J+wFtQ7V2QJuBYRHRhZSkaJWhXx34A=; b=s318aJNCoyZ7bm5DsfAqeIkMkKwP32zQNgaUd0aMToI7msR827URW60qOR4Mlq70ik xs4W9K2awbD9hhAGo9F9zaBenoDnjihHCE9WEVvNETWmMOtekX3W7VwtlBNACnm565xl ENEVplpSONH+QEcjVMYUK5dD+0V1xF9Gz2iFn5yfJWGfHSmsw96R6kosQ8ZnzyqGp+WM 1zTtxNGjJ6mN8OI/Du+BGErn4fWE3qVn2+Mm32QRV3DLf776RYm6fsCguGw65pwaI0BG +zLMJd172PtTb1JQEgsy757NTcHkn/FV0VhK+Q7EkT9bx6HE+KoPJicpfJVCBJZImOnh 76cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:in-reply-to:references:date :message-id:subject:to:cc:content-transfer-encoding; bh=0fQGi6dgLerY/J+wFtQ7V2QJuBYRHRhZSkaJWhXx34A=; b=ikoGhyOvRXNtKE0NIi4OrbIxz/7YesW1HaDyB8bArCnEgl4R05KV1Wc5P/sabm+35o MoupuOq3CNAZi0TFZlJ9Ov4Xnoae7Cf1GOg4+Aflk3ZMY8oXrpcXwiUMqALJP0uQkZPc QGfTNyba4Lx9IZGJpdlGKyf65lyd8BlOeci7hJ9e41de16kbGetkWeNnujGgf+R6BH/n eJrj94M0i853ZLKlgufSmgIp9CTt4eMDQXJ93Jvep7mBcDnZvsIfpXZVe2RFCzBroh5I kk5aow684f9xMweUes+TFTaX1/stbQelKmDC1J0gnQAUR2XdjWM/uYQ58i7zhIB0FGPR roGQ== X-Gm-Message-State: AE9vXwOh15dSy7de+Xn+0xgw9z4ri+J8Pu+WUF1k6HuQSef7L0+QPmdV+CYktQd8l1WF2w== X-Received: by 10.176.82.9 with SMTP id i9mr14644493uaa.155.1472842504600; Fri, 02 Sep 2016 11:55:04 -0700 (PDT) Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com. [209.85.213.54]) by smtp.gmail.com with ESMTPSA id 81sm498100uat.9.2016.09.02.11.55.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 11:55:03 -0700 (PDT) From: Otavio Salvador X-Google-Original-From: Otavio Salvador Received: by mail-vk0-f54.google.com with SMTP id f76so31148046vke.0 for ; Fri, 02 Sep 2016 11:55:02 -0700 (PDT) X-Received: by 10.31.138.74 with SMTP id m71mr14304036vkd.4.1472842502565; Fri, 02 Sep 2016 11:55:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.154.68 with HTTP; Fri, 2 Sep 2016 11:55:01 -0700 (PDT) In-Reply-To: References: <20160901222043.18942-1-otavio@ossystems.com.br> Date: Fri, 2 Sep 2016 15:55:01 -0300 X-Gmail-Original-Message-ID: Message-ID: To: Tom Hochstein Cc: Otavio Salvador , Prabhu Sundararaj , meta-freescale Mailing List , 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 18:55:09 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Sep 2, 2016 at 11:46 AM, Tom Hochstein wrot= e: >> From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] >> Sent: Friday, September 02, 2016 5:13 AM > >> It should be possible indeed however, thinking about it, I think using >> overrides offers an easier to use mechanism. > > It's shorter, but I don't see the difference in syntax as a problem. The = 'bb.utils.contains('*FEATURES'' is an existing idiom. > > The way I see it is the Yocto framework has a high level construct of mac= hines and a finer grained mechanism for specifying the features supported b= y a machine. > > What you are proposing is to take our list of i.MX-specific 'items' and a= dd them through an extension of the machine mechanism. The downside of this= is it dilutes the existing Yocto framework, and makes it harder to underst= and. > > On the other hand, it seems correct to just treat these 'items' as machin= e features, with no changes to the existing Yocto framework required. Furth= ermore, by implementing this as a set of machine features, we gain the exis= ting capabilities of the framework, mainly that the user can choose to not = use an i.MX machine feature even if it is on his SOC. (See the COMBINED_FEA= TURES variable.) > >> Another benefit is that with the extender, we define the features on a >> single place (imx-base.inc) and every board using the respective SoC >> will use it. For machine features we would need to set it in every >> board which is easy to get wrong. > > We would need an extra require line from each machine configuration file = to specify the SOC configuration. This line replaces the proposed MACHINEOV= ERRIDES line in the machine configuration file, and so it is no easier to g= et wrong. The MACHINE_FEATURES including that kind of information will have a huge impact on the number of machine specific package. In summary we would not be able to share the binaries across different machines of same SoC. Currently we share the Q, DL binaries as they are binary compatible however if this could change on the board we would need to make they are machine specific (Qt, Chromium, GStreamer, ...) --=20 Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750