i just got burned by taking the very advice i'd been giving out for
years. when people ask about how to add new image features to their
images, they point to IMAGE_FEATURES and ask if that's the way to do
it, as in one of:

  IMAGE_FEATURES += ...
  IMAGE_FEATURES_append = ...

well, ok, i say, that will work, but i mention that there is an
associated variable, EXTRA_IMAGE_FEATURES, that is kind of meant for
just that purpose -- it lets you define the "EXTRA" stuff you want,
and that will just be added pursuant to this in bitbake.conf:

  EXTRA_IMAGE_FEATURES ??= ""
  IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"

advisee went off happy, followed my advice, and came back complaining
that while the new image features were there, the "debug-tweaks"
feature that had been there all this time was now gone.

  crap.

  because that's when i remembered that the standard OE
local.conf.sample file contains the line:

  EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

so, of course, taking my advice stomped all over the soft assignment
of "debug-tweaks". and while i know this has been the setting for
years and years, it seems non-intuitive -- it seems more
understandable if there is a general pattern that says, "if there is a
regular variable and an associated 'EXTRA_' variable, it's always safe
to just assign what you want to add to the EXTRA_ one."

  or maybe i'm just overthinking this.

rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151760): 
https://lists.openembedded.org/g/openembedded-core/message/151760
Mute This Topic: https://lists.openembedded.org/mt/82823523/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to