Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4DB17E00CAE; Thu, 24 Nov 2016 02:43:18 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (urnen81[at]yahoo.es) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [212.82.96.229 listed in list.dnswl.org] * 0.2 FREEMAIL_REPLYTO_END_DIGIT Reply-To freemail username ends in digit * (oliver ) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -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 nm18-vm5.bullet.mail.ir2.yahoo.com (nm18-vm5.bullet.mail.ir2.yahoo.com [212.82.96.229]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C1F57E00955 for ; Thu, 24 Nov 2016 02:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1479984191; bh=/93cV16YxVwTWB+hKHgNUBI33gW0Q0v4xqh1xxYYkvk=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=eQAZn/F20Jjf0UwwAmsqnuQGkCnNIsEOJDQgbQfB4rQR9367Gyzgxti3BWEzYlyuBcU465K064Biy2/C4r8axF1QyfcBFBxo6akyv9/5PtIyRcoW2LpLarvOCILka8u8loOnQzJek35I5CbIOphxL48RvxlvKbsFOLQHIdRXFjAt5NpycuHuySwvJK+kfwVBxS0Ed01i2MspCoz2+YxWuppEih3GhCX60cipudKI9FQ2JVlyKOuYJY+8U4Err+XE0HCAZANoghoVb+MYkBKse6+DF2Kulvghke9AUbiVIK6R9lWbZX//z4DhqzzI1Bx4JmdLW7CzRU9Uek3vC/YI2Q== Received: from [212.82.98.55] by nm18.bullet.mail.ir2.yahoo.com with NNFMP; 24 Nov 2016 10:43:11 -0000 Received: from [212.82.98.92] by tm8.bullet.mail.ir2.yahoo.com with NNFMP; 24 Nov 2016 10:43:11 -0000 Received: from [127.0.0.1] by omp1029.mail.ir2.yahoo.com with NNFMP; 24 Nov 2016 10:43:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 426169.54651.bm@omp1029.mail.ir2.yahoo.com X-YMail-OSG: sSWbqx0VM1laF6iRwGXNl90Rm6N6aCY_6R.URWt9ZuhZojRgj_zDrK1i0KclYzh 0ZvStTCGOJpJRVUFK52Ey6FcsLfAul.BJkzip966zmq9N04wSUj0BrDnlSEMofvhWyJucgbJrv92 SIo_yjgFtTUxfERbPsnMFX0freljExokR5eeeL24RrNJ6c94zqz9u_kEhstLEnNnRt6eSeEcPIZM qvWb4ynGSWj6t61kqa90II7y_.dF51QcJWu75geOPZblAJkJJBq.U5SQ8ndsXnHnCBNO5XYzFE3Q h_J1JWyYbbNbZ40zSRPDIP_YRkAGeH2VTHruDaVzUoMzDMd0.YpwI7B1WaZ9fOKNMZg9Kbqs6reK P5w0x3gdyTLA2xImRtMovTMfPP6JGlMp8sNkJTE0VXvsVHGpwRxU_xIIHWxGNzGyD_c9XW.5ii.g 7n4wgj_fRGPWn4NFAJKwcZkcCbm48hb1FjnAW7ZzJbKFyKudc76fsXtusquoIcwQQejQuCNrTmKl 7sUaOOc0cAaSr8jg- Received: from jws700080.mail.ir2.yahoo.com by sendmailws105.mail.ir2.yahoo.com; Thu, 24 Nov 2016 10:43:11 +0000; 1479984191.047 Date: Thu, 24 Nov 2016 10:43:10 +0000 (UTC) From: Oliver To: "Burton, Ross" Message-ID: <823264942.1789329.1479984190440@mail.yahoo.com> In-Reply-To: References: <1587381958.322993.1479895234059.ref@mail.yahoo.com> <1587381958.322993.1479895234059@mail.yahoo.com> MIME-Version: 1.0 Cc: Yocto Project Subject: Re: Use recipes but not whole layer X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Oliver List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2016 10:43:18 -0000 Content-Type: multipart/alternative; boundary="----=_Part_1789327_175944728.1479984190438" ------=_Part_1789327_175944728.1479984190438 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > As per the Yocto Project guidelines, layers that do this are broken.=C2= =A0 A BSP layer should only introduce changes that affect the BSP, distro l= ayers shouldn't contain general purpose recipes, and everything that is dis= tro-specific should be isolated using overrides. I was talking more generically for any type of layer. I have the feeling th= at many layers in our ecosystem fail to accomplish this. I believe I understand the guidelines, based on some discussions about not = including the whitelist.bbclass in OE.=20 But I find it not always possible to follow. Let me expose a very simple, a= nd commom use case, a layer which contains: recipeAboost_%.bbappend recipeB In order to success in generate recipeA, I need to extend the boost to expa= nd some configuration parameters(log).On the other side someone would like = to use recipeB. He/She will unwillingly inherit the boost modifications. How should this be correctly done? Regards =20 =20 ------=_Part_1789327_175944728.1479984190438 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> As per t= he Yocto Project guidelines, layers that do this are broken.  A BSP la= yer should only introduce changes that affect the BSP, distro layers should= n't contain general purpose recipes, and everything that is distro-specific= should be isolated using overrides.

I was talking more generically= for any type of layer. I have the feeling that many layers in our ecosyste= m fail to accomplish this.

I believ= e I understand the guidelines, based on some discussions about not includin= g the whitelist.bbclass in OE.
But I find it not always possible to follow. Let me e= xpose a very simple, and commom use case, a layer which contains:

recipeA
boost_%.bbappend
recipeB

=
In order to success= in generate recipeA, I need to extend the boost to expand some configurati= on parameters(log).
On the other side someone would like to use recipeB. He/She will unwi= llingly inherit the boost modifications.

How should this be correctly done?

Regards









<= /div>
=
------=_Part_1789327_175944728.1479984190438--