Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Christopher Larson
On Thu, Sep 24, 2015 at 4:18 PM, Allen Curtis 
wrote:

> I am working with a BSP that has multiple image recipes.
>
> foo-hwbringup-image.bb
> foo-qt5demo-image.bb
>
> foo-qt5demo-image.bb contains "require foo-hwbringup-image.bb"
>
> However if I create foo-hwbringup-image.bbappend, it gets ignored.
>
> What are the rules with appending included recipes?
>

bbappends do not append arbitrary files, only recipes (and in this case,
the inclusion treats them as an arbitrary file). They do not apply to
anything included or required, only the recipe itself. So you'll need to
bbappend every recipe that includes foo-hwbringup-image.bb in this case.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Allen Curtis
> I am working with a BSP that has multiple image recipes.
> 
> foo-hwbringup-image.bb
> foo-qt5demo-image.bb
> 
> foo-qt5demo-image.bb contains "require foo-hwbringup-image.bb"
> 
> However if I create foo-hwbringup-image.bbappend, it gets ignored.
> 
> What are the rules with appending included recipes?
> 
> bbappends do not append arbitrary files, only recipes (and in this case, the 
> inclusion treats them as an arbitrary file). They do not apply to anything 
> included or required, only the recipe itself. So you'll need to bbappend 
> every recipe that includes foo-hwbringup-image.bb in this case.

This is unfortunate since foo-hwbringup-image.bb is also a valid recipe. It 
just doesn't contain the graphics support.

Is there a better way to add your custom components to "core-image" I guess…..

TIA


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Gary Thomas

On 2015-09-25 09:38, Christopher Larson wrote:


On Thu, Sep 24, 2015 at 4:18 PM, Allen Curtis > wrote:

I am working with a BSP that has multiple image recipes.

foo-hwbringup-image.bb 
foo-qt5demo-image.bb 

foo-qt5demo-image.bb  contains "require 
foo-hwbringup-image.bb "

However if I create foo-hwbringup-image.bbappend, it gets ignored.

What are the rules with appending included recipes?


bbappends do not append arbitrary files, only recipes (and in this case, the 
inclusion treats them as an arbitrary file). They do not apply to anything 
included or required, only
the recipe itself. So you'll need to bbappend every recipe that includes 
foo-hwbringup-image.bb  in this case.


What's the argument against requires picking up any .bbappends?
I agree with the original poster - this seems only natural and
would be extremely useful, not necessitating jumping through
hoops like "IMAGE_FEATURES", etc.

--

Gary Thomas |  Consulting for the
MLB Associates  |Embedded world

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Christopher Larson
On Fri, Sep 25, 2015 at 10:15 AM, Allen Curtis <
allen.cur...@curtisembedded.com> wrote:

> I am working with a BSP that has multiple image recipes.
>>
>> foo-hwbringup-image.bb
>> foo-qt5demo-image.bb
>>
>> foo-qt5demo-image.bb contains "require foo-hwbringup-image.bb"
>>
>> However if I create foo-hwbringup-image.bbappend, it gets ignored.
>>
>> What are the rules with appending included recipes?
>>
>
> bbappends do not append arbitrary files, only recipes (and in this case,
> the inclusion treats them as an arbitrary file). They do not apply to
> anything included or required, only the recipe itself. So you'll need to
> bbappend every recipe that includes foo-hwbringup-image.bb in this case.
>
>
> This is unfortunate since foo-hwbringup-image.bb is also a valid recipe.
> It just doesn't contain the graphics support.
>
> Is there a better way to add your custom components to "core-image" I
> guess…..
>

You could always define custom features for use in IMAGE_FEATURES and add
them to your images via EXTRA_IMAGE_FEATURES in local.conf, or bbappend one
of the core images.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Allen Curtis
> 
> 
> On Fri, Sep 25, 2015 at 10:15 AM, Allen Curtis 
>  wrote:
>> I am working with a BSP that has multiple image recipes.
>> 
>> foo-hwbringup-image.bb
>> foo-qt5demo-image.bb
>> 
>> foo-qt5demo-image.bb contains "require foo-hwbringup-image.bb"
>> 
>> However if I create foo-hwbringup-image.bbappend, it gets ignored.
>> 
>> What are the rules with appending included recipes?
>> 
>> bbappends do not append arbitrary files, only recipes (and in this case, the 
>> inclusion treats them as an arbitrary file). They do not apply to anything 
>> included or required, only the recipe itself. So you'll need to bbappend 
>> every recipe that includes foo-hwbringup-image.bb in this case.
> 
> This is unfortunate since foo-hwbringup-image.bb is also a valid recipe. It 
> just doesn't contain the graphics support.
> 
> Is there a better way to add your custom components to "core-image" I guess…..
> 
> You could always define custom features for use in IMAGE_FEATURES and add 
> them to your images via EXTRA_IMAGE_FEATURES in local.conf, or bbappend one 
> of the core images.

How is bbappend a core image different from bbappend foo-hwbringup-image?

If you follow the original post one more generation, foo-hwbringup-image.bb 
"inherit core-image"



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-25 Thread Christopher Larson
On Fri, Sep 25, 2015 at 11:52 AM, Allen Curtis <
allen.cur...@curtisembedded.com> wrote:

> On Fri, Sep 25, 2015 at 10:15 AM, Allen Curtis <
> allen.cur...@curtisembedded.com> wrote:
>
>> I am working with a BSP that has multiple image recipes.
>>>
>>> foo-hwbringup-image.bb
>>> foo-qt5demo-image.bb
>>>
>>> foo-qt5demo-image.bb contains "require foo-hwbringup-image.bb"
>>>
>>> However if I create foo-hwbringup-image.bbappend, it gets ignored.
>>>
>>> What are the rules with appending included recipes?
>>>
>>
>> bbappends do not append arbitrary files, only recipes (and in this case,
>> the inclusion treats them as an arbitrary file). They do not apply to
>> anything included or required, only the recipe itself. So you'll need to
>> bbappend every recipe that includes foo-hwbringup-image.bb in this case.
>>
>>
>> This is unfortunate since foo-hwbringup-image.bb is also a valid recipe.
>> It just doesn't contain the graphics support.
>>
>> Is there a better way to add your custom components to "core-image" I
>> guess…..
>>
>
> You could always define custom features for use in IMAGE_FEATURES and add
> them to your images via EXTRA_IMAGE_FEATURES in local.conf, or bbappend one
> of the core images.
>
>
> How is bbappend a core image different from bbappend foo-hwbringup-image?
>
> If you follow the original post one more generation,
> foo-hwbringup-image.bb "inherit core-image"
>

It isn't. You asked how to add custom components to a core-image, that's
one way to do it, append every image involved. Whether that works for you
depends on your requirements, and wasn't part of the question nor the
answer.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend a "required" bb file

2015-09-24 Thread Rudolf Streif
>
> What are the rules with appending included recipes?
>
File inclusions with include or require are literal: the content of the
referenced file is inserted at the very position of the statement. The file
extension is irrelevant, meaning any appends to a recipe do not get
included.

:rjs
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto