[OE-core] why use both IMAGE_FEATURES and EXTRA_IMAGE_FEATURES in a single .bb file?

Martin Jansa martin.jansa at gmail.com
Thu Mar 29 08:27:56 UTC 2012


On Thu, Mar 29, 2012 at 04:11:57AM -0400, Robert P. J. Day wrote:
> 
>   given the recent excitement over "+=" and "=+", i thought i'd point
> out again the occasional weirdness like this snippet from
> core-image-sato-sdk.bb:
> 
> IMAGE_FEATURES += "apps-console-core ${SATO_IMAGE_FEATURES} dev-pkgs tools-sdk qt4-pkgs"
> EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-testapps debug-tweaks"

sometimes this is usefull to define "base" in IMAGE_FEATURES and then
stuff which people tend to override in .bbappend put in EXTRA_IMAGE_FEATURES

Maybe that's not the case here.. but separate variables are good even if
it looks weird in .bb alone

FOO = "blah"
BAR = "base ${FOO}"

allows to remove/replace "blah" very easy with .bbappend.

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120329/330be7bf/attachment-0002.sig>


More information about the Openembedded-core mailing list