From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: CORE_IMAGE_EXTRA_INSTALL has potential to be misleading?
Date: Fri, 22 Jun 2012 11:31:18 +0100 [thread overview]
Message-ID: <2779429.QaclkbfKlo@helios> (raw)
In-Reply-To: <alpine.DEB.2.02.1206201416170.821@oneiric>
On Wednesday 20 June 2012 14:28:40 Robert P. J. Day wrote:
> was reminded of this as i was perusing some old OE core notes.
> remember this from core-image.bbclass?
>
> CORE_IMAGE_BASE_INSTALL = '\
> task-core-boot \
> task-base-extended \
> \
> ${CORE_IMAGE_EXTRA_INSTALL} \
> '
>
> CORE_IMAGE_EXTRA_INSTALL ?= ""
>
> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
>
> except there are some core image variation recipes
> (core-image-minimal-dev.bb, among others) that do things like this:
>
> IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE}"
>
> IMAGE_FEATURES += "dev-pkgs"
>
> IMAGE_LINGUAS = " "
>
> LICENSE = "MIT"
>
> inherit core-image
>
> note how the explicit assignment to IMAGE_INSTALL in that second
> example will copletely override the "IMAGE_INSTALL ?=" in the bbclass
> file, at which point ${CORE_IMAGE_EXTRA_INSTALL} will obviously never
> be evaluated and included.
Right, this is not really ideal. In the case of core-image-minimal(-dev) we're
trying to be as minimal as reasonably possible, and that includes eliminating
a bunch of the stuff that core-image.bbclass adds. The easiest way to do this
is by simply setting IMAGE_INSTALL explicitly.
It seems like core-image-minimal-dev has been a little neglected - at least
two changes that went into core-image-minimal were not also applied to it,
including the addition of CORE_IMAGE_EXTRA_INSTALL (or POKY_EXTRA_INSTALL as
it was known at the time). I'm wondering if a better way for this specific
recipe to work would just to be to "require core-image-minimal.bb" and then
set IMAGE_FEATURES += "dev-pkgs" as appropriate.
core-image-minimal* are somewhat special cases, however I do think we do need
to improve the consistency of all of our image recipes.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
prev parent reply other threads:[~2012-06-22 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 18:28 CORE_IMAGE_EXTRA_INSTALL has potential to be misleading? Robert P. J. Day
2012-06-22 10:31 ` Paul Eggleton [this message]
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=2779429.QaclkbfKlo@helios \
--to=paul.eggleton@linux.intel.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox