All of lore.kernel.org
 help / color / mirror / Atom feed
* conditional kernel configuration
@ 2008-12-01  8:38 Mike Turquette
  2008-12-01  9:20 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Turquette @ 2008-12-01  8:38 UTC (permalink / raw)
  To: openembedded-devel

Hi,

I was recently looking into configuring the kernel dynamically based
on IMAGE_FEATURES.  Here is a snippet from my kernel recipe:

OVERRIDE_WLAN = "${@base_contains("IMAGE_FEATURES", "my-conn",
":mywlan", "",d)}"
OVERRIDES .= "${OVERRIDE_WLAN}"

SRC_URI = "git://some_tree"
SRC_URI_prepend_mywlan = "git://some_other_tree_with_wlan"

This is a simplified example of what my recipe does (in fact I don't
fetch from git in this recipe at all).  But the point is clear:
looking for my-conn in IMAGE_FEATURES (which is set or not set in
my-cool-image.bb) should determine whether SRC_URI has one tree or
both trees in it.

The problem is that IMAGE_FEATURES only has the stuff specified in
local.conf when the kernel recipe gets selected (this obviously
happens when I bitbake mykernel, but also when I bitbake
my-cool-image).  All of the features specified in my-cool-image.bb are
not in it (yet).

Am I going about this the wrong way?  I would really like to
conditionally set which code to build in my kernel recipe based on
whether or not the my-conn task is included in IMAGE_FEATURES.

Any other solutions that depart from my IMAGE_FEATURES scrape method
are very welcome too!

Thanks,
Mike



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

end of thread, other threads:[~2008-12-01 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01  8:38 conditional kernel configuration Mike Turquette
2008-12-01  9:20 ` Koen Kooi
2008-12-01 10:56   ` Mike Turquette

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.