Date
1 - 7 of 7
bbappend a "required" bb file
Allen Curtis <ajcurtis@...>
Hello,
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? TIA |
|
Christopher Larson <clarson@...>
On Thu, Sep 24, 2015 at 4:18 PM, Allen Curtis <ajcurtis@...> wrote:
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 |
|
Allen Curtis <allen.curtis@...>
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 |
|
Christopher Larson <clarson@...>
On Fri, Sep 25, 2015 at 10:15 AM, Allen Curtis <allen.curtis@...> wrote:
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 |
|
Allen Curtis <allen.curtis@...>
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" |
|
Gary Thomas
On 2015-09-25 09:38, Christopher Larson wrote:
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 ------------------------------------------------------------ |
|
Christopher Larson <clarson@...>
On Fri, Sep 25, 2015 at 11:52 AM, Allen Curtis <allen.curtis@...> wrote:
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 |
|