On 10 May 2018 at 09:59, Piotr Piwko <[email protected]> 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
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to