Thread (19 messages) 19 messages, 7 authors, 2012-03-28

Re: adding a single package to an image -- what's the proper way?

From: Robert P. J. Day <hidden>
Date: 2012-03-28 11:23:54

On Wed, 28 Mar 2012, Paul Eggleton wrote:
On Wednesday 28 March 2012 07:06:21 Robert P. J. Day wrote:
quoted
On Wed, 28 Mar 2012, Paul Eggleton wrote:
quoted
On Wednesday 28 March 2012 12:51:46 Marko Katić wrote:
quoted
I always use "bitbake -c clean -c cleansstate package" for that purpose.
Firstly, cleansstate does a clean already, so no need to specify that as
well.

Secondly, images are always rebuilt so provided you comment out the
IMAGE_INSTALL_append or whatever you have done to change the image
contents, you can just build the image again and it will be rebuilt
as it was before.
  i was testing the various solutions presented, and the first couple
worked just by changing the local.conf file (both adding and
removing), but the third using DISTRO_EXTRA_RDEPENDS didn't appear to
make a difference after i added the appropriate line to local.conf.

  if i add the line:

DISTRO_EXTRA_RDEPENDS += "sysfsutils"

do you know if this requires an explicit reconfiguration of some kind
to be picked up?  it's exactly these niggling details i'm trying to
clarify.
Yes, it will. You would need to clean and rebuild task-base because unlike the
other methods the dependency gets built into a task package.

This is one of the reasons you should not use DISTRO_EXTRA_RDEPENDS from
local.conf - this is intended to be set from the distro configuration only.
Please don't recommend this to be modified from local.conf - stick to
CORE_IMAGE_EXTRA_INSTALL (or IMAGE_INSTALL_append, if you must).
  even though i realize this technique is not encouraged for
local.conf, as i mentioned, i just tested using it from scratch in a
brand new build and it still didn't add that package to my image.  if
it should have, then something isn't working.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help