All of lore.kernel.org
 help / color / mirror / Atom feed
* SDK question: does "-c populate_sdk" build SDK based on entire image?
@ 2021-05-07 13:11 Robert P. J. Day
  2021-05-07 13:21 ` [OE-core] " Quentin Schulz
  2021-05-12  8:05 ` Diego Santa Cruz
  0 siblings, 2 replies; 8+ messages in thread
From: Robert P. J. Day @ 2021-05-07 13:11 UTC (permalink / raw)
  To: OE Core mailing list


  almost certainly a silly question as i'm still poring over the
mechanics of standard SDK creation, but if i define a perfectly normal
image, then build the corresponding SDK with:

  $ bitbake -c populate_sdk my_image

is the resulting SDK populated based on the entire contents of the
target image? that is, if i subsequently add a new package to the
target and rebuild the SDK, will the new SDK now contain the
corresponding content from that newly-added package? (i'm just about
to test this with a build but that's going to take over an hour on
this server. *sigh* ...)

  now, i realize that if i just want to add content to the SDK without
adding to target, i can use one or both of:

  TOOLCHAIN_HOST_TASK
  TOOLCHAIN_TARGET_TASK

but if someone asks for new content both for the target and the SDK,
is it sufficient to just add to target?

  and one more question that inspired all of this. i was asked to add
a particular executable to an SDK, call it /usr/bin/fubar. fair
enough, i thought, it was short work to determine that that binary
came from the recipe fubar_1.0.bb. but i checked and that package was,
in fact, being installed in the target, so i was puzzled as to why it
wasn't in the SDK as well.

  i checked the recipe for fubar and, to my chagrin, it contained the
snippet:

  do_install_append() {
    rm -rf ${D}/usr/bin/fubar
  }

well, that explained it, so as a first test, i'm just going to dump
that snippet from the recipe, which will install the executable on the
target, and will(?) also install it in the SDK?

rday

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-12  8:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-07 13:11 SDK question: does "-c populate_sdk" build SDK based on entire image? Robert P. J. Day
2021-05-07 13:21 ` [OE-core] " Quentin Schulz
2021-05-07 13:25   ` Robert P. J. Day
2021-05-07 13:47   ` Robert P. J. Day
2021-05-07 16:49     ` Andre McCurdy
2021-05-07 16:58       ` Robert P. J. Day
2021-05-10 16:21       ` Denys Dmytriyenko
2021-05-12  8:05 ` Diego Santa Cruz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.