[yocto] Check IMAGE_FEATURES content in recipe

Burton, Ross ross.burton at intel.com
Thu May 10 02:22:34 PDT 2018


On 10 May 2018 at 09:59, Piotr Piwko <piotr.piwko at gmail.com> wrote:

>
>> VAR set in recipe A cannot be accessed by recipe B.
>>
>
> All right, but what about DISTRO_FEATURES? It is available everywhere, so
> maybe there is some possibility to do so ...
>

You need to think about what actually happens.  This is a valid bitbake
call:

$ bitbake image-foo image-bar

image-foo and image-bar both contain recipe-flob.  recipe-flob will be
built *once* to generate the packages, and those packages used to build
both images.  If image-foo is read-only and image-bar is read/write, the
*same packages* will be reused.  recipe-flob has no idea that foo is
read-only and bar is read/write because the IMAGE_FEATURES assignments are
specific to those image recipes.

There are global variables (such as DISTRO_FEATURES) and the *default*
IMAGE_FEATURES is also available globally, but that won't help you here.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180510/cb290d3a/attachment.html>


More information about the yocto mailing list