[OE-core] adding a single package to an image -- what's the proper way?

Marko Katić dromede at gmail.com
Tue Mar 27 12:56:32 UTC 2012


I haven't tried this myself on images, but you can probably use .bbappend
for this. I think bbappend files provide a proper way for extending
recipes. So for instance,
if you want to add a package to the core-image-minimal image you would
place the following in your core-image-minimal.bbappend file:

IMAGE_INSTALL += "your_package"

Of course, this solution assumes you have a local overlay.

Or maybe you could try placing the above IMAGE_INSTALL append to your
local.conf. But that's probably messy and not advised.


On Tue, Mar 27, 2012 at 2:20 PM, Robert P. J. Day <rpjday at crashcourse.ca>wrote:

>
>  i'm currently poring over the OE docs (including the ones at the
> yocto site), and i'm trying to figure out how to simply add a package
> to an image through one's local.conf file.
>
>  the current yocto ref manual has an entire section about customizing
> images:
>
>
> http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#usingpoky-extend-customimage
>
> but it discusses creating custom recipe files and custom tasks, and
> using IMAGE_INSTALL and IMAGE_FEATURES and EXTRA_IMAGE_FEATURES, and
> finally gets into using local.conf, suggesting:
>
>  DISTRO_EXTRA_RDEPENDS += "strace"
>
> is that, in fact, the accepted way if one simply wants to add a
> package to an existing image build?  because as soon as the manual
> mentions it, in the very next paragraph, it discourages its use.
>
>  so what's the story?  it seems it should be a lot easier to figure
> out how to do something that straightforward.
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                        http://crashcourse.ca
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120327/20ee4459/attachment-0002.html>


More information about the Openembedded-core mailing list