Re: require and image.bbappend

Matteo Facchinetti

Hi Stefano,

Il giorno gio 4 apr 2019 alle ore 17:32 Stefano Babic <sbabic@...> ha scritto:
Hi Matteo,

On 04/04/19 15:35, Matteo Facchinetti wrote:
> Hi,
> I encountered a problem when try to add packages in my image recipe, but
> I don't understernd if I wrong something or I have to do it in another way.
> In detail, in my common_layer there are:
>    - <> : yocto base image 
>    - <>
> : where include <> (require
> <>)
> Now, in my BSP layer, I want to add some packages to the
> <>, so I create here the image_base.bbappend file.
> But when I try to compile
> <> the result is not how expected.
> doesn't add packages contained in
> image_base.bbappend but only the packages contained in
> <>.
> Is true that when include an image to another with require statement,
> you can't extend the base image with a bbappend?

Yes, it is true, because the file is included and it is not anymore like
a recipe that can be extend. It will be searched for a append, not image_base.bbappend.

Ok, understood.
IMHO you can easy reach your goal if you write a packagegroup recipe
where you put all packages you have in the IMAGE_INSTALL of your You can then have a .bbappend for the packagegroup in
your BSP layer (and this then works) and you put the packagegroup in the
IMAGE_INSTALL directive of both and

Thank you very much for this tip.
I have done exactly in this way and works perfectly and it's easy to manage.

However there's a part containded in the recipe:
    inherit core-image
    IMAGE_FEATURE_append = "..."

that I had to duplicate into the too.

It's not a problem but is it possible to put them in a common recipe like packagegroup?

Join to automatically receive all group messages.