All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Turley <PatrickTurley@gamestop.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Adding ALSA to the Yocto SDK
Date: Tue, 22 Jan 2013 16:43:52 +0000	[thread overview]
Message-ID: <5BEFD653CA8A8D47AA194ED30AB5968C36FA44@GV1HQPEX03.babgsetc.pvt> (raw)
In-Reply-To: <5BEFD653CA8A8D47AA194ED30AB5968C36F004@GV1HQPEX03.babgsetc.pvt>


On Jan 21, 2013, at 5:16 PM, Patrick Turley <PatrickTurley@gamestop.com> wrote:

> On Jan 21, 2013, at 4:35 PM, "Zhang, Jessica" <jessica.zhang@intel.com> wrote:
> 
>> Hi Patrick,
>> 
>> Since you're able to add the dev packages to images, just do bitbake yourimagewithALSA -c populate_sdk, that should generate a SDK contains ALSA.  By default, meta-toolchain-sdk is predefined unless you use "-c populate_sdk" to enforce the SDK sysroot to match your rootfs.
> 
> 
> All the clues rolling in are starting to knit together.
> 
> At first, I regarded the "populate_sdk" task as a hack, since it seemed to be expressing something that was naturally a "target" -- not a "task."
> 
> Now I see that it is a way to connect an image to a corresponding SDK. That makes a *lot* more sense.

One of my colleagues did some research on this and I believe we've found the best way for *us* to do this.

We tried using a single image recipe. We tried both bitbake'ing this recipe directly *and* using the "populate_sdk" task with it. This gave us the SDK we needed, but it resulted in development header files appearing in the target root file system.

Like core-image-sato and core-image-sato-sdk, we'll have have two images:

1) A target image recipe.
We will bitbake this recipe directly to produce the target image. We will *never* use the "populate_sdk" task with this recipe.

2) An SDK image recipe.
This recipe "require's" the target image recipe and adds various development packages to it. We will *never* bitbake this recipe directly because we have no interest in the root file system it would produce. We will *only* use the "populate_sdk" task with this recipe.

This gives us the clean target root file system we need *and* the SDK we need.

The disadvantage is that we have to keep two recipe files in sync with each other. Fortunately, these are low-frequency and low-volume changes, so we think this is a reasonable trade-off.



  reply	other threads:[~2013-01-22 16:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 21:27 Adding ALSA to the Yocto SDK Patrick Turley
2013-01-21 22:35 ` Zhang, Jessica
2013-01-21 23:16   ` Patrick Turley
2013-01-22 16:43     ` Patrick Turley [this message]
2013-01-21 22:49 ` Jack Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5BEFD653CA8A8D47AA194ED30AB5968C36FA44@GV1HQPEX03.babgsetc.pvt \
    --to=patrickturley@gamestop.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.