Skip to contentSkip to conversation

summarizing how to create new core images from existing ones [pt 1]

DISCUSSION Robert P. J. Day 1 participant 1 message Jan 7, 2015

lore
Share & tools
lore
#0 lore raw

for purposes of tutorial, i want to clarify the two ways to create
new core images and maybe submit a couple cleanups later (looking at all the core-image* recipe files under openembedded).

first, there's just "require"ing an existing core-image recipe file
and adding some mods. as an example, core-image-minimal-dev.bb consists trivially of just:

require core-image-minimal.bb

DESCRIPTION = "A small image just capable of allowing a device to boot and is suitable for development work."

IMAGE_FEATURES += "dev-pkgs"

as i read it, using this technique, the primary variables you'd typically set for the new core image recipe (and, really, the only major ones i've seen) would be:

* DESCRIPTION = "blah blah"
* IMAGE_FEATURES += "additional image features"
* IMAGE_INSTALL += "additional packages"

in addition to those canonical settings, i can see some new recipes that will simply set specific variables, like this in core-image-sato-sdk.bb:

QT4PKG = "qt4-pkgs"
QT4PKG_mips64 = ""

beyond that, am i missing anything that might show up in a new core image recipe file defined this way?

the only curiosity is setting LICENSE in, say, core-image-rt.sdk.bb:

require recipes-core/images/core-image-minimal.bb ... snip ...
LICENSE = "MIT"

given that the underlying core-image-minimal.bb already sets that LICENSE variable:

LICENSE = "MIT"

i'm assuming that variable setting in the new recipe file is superfluous, yes? the new core image recipe file will strictly inherit the underlying license, will it not?

and is there any possibility that a new core image recipe file might
*redefine* the license value of the underlying required file, perhaps to something more restrictive?

i think that's it for part 1 ...

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================