<div class="gmail_quote">On Sat, Jul 7, 2012 at 9:52 PM, Robert P. J. Day <span dir="ltr">&lt;<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
  a while back, i whined about the inconsistent usage of<br>
EXTRA_IMAGE_FEATURES, like this as a snippet:<br>
<br>
meta/recipes-sato/images/core-image-sato-sdk.bb:EXTRA_IMAGE_FEATURES += &quot;tools-debug tools-profile tools-testapps debug-tweaks&quot;<br>
meta/recipes-rt/images/core-image-rt-sdk.bb:EXTRA_IMAGE_FEATURES += &quot;tools-debug tools-profile tools-testapps debug-tweaks&quot;<br>
meta/recipes-extended/images/core-image-lsb-sdk.bb:EXTRA_IMAGE_FEATURES = &quot;tools-debug tools-profile tools-testapps debug-tweaks&quot;<br>
<br>
notice the mixing of &quot;+=&quot; and &quot;=&quot;, which seems messy.  then i ran<br>
across this in <a href="http://core-image-lsb-sdk.bb" target="_blank">core-image-lsb-sdk.bb</a>:<br>
<br>
IMAGE_FEATURES += &quot;apps-console-core tools-sdk dev-pkgs ssh-server-openssh&quot;<br>
EXTRA_IMAGE_FEATURES = &quot;tools-debug tools-profile tools-testapps debug-tweaks&quot;<br>
<br>
  that *can&#39;t* be right, can it?  the explicit setting of<br>
EXTRA_IMAGE_FEATURES in that recipe file will override any such<br>
setting in one&#39;s local.conf file, won&#39;t it?  and that&#39;s how the<br>
current manual *advises* how to add more features through your<br>
local.conf.<br>
<br>
  i tested this target with a standard local.conf, and checked the<br>
environment to see:<br>
<br>
... snip ...<br>
IMAGE_FEATURES=&quot;apps-console-core debug-tweaks tools-sdk<br>
tools-testapps dev-pkgs tools-profile tools-debug ssh-server-openssh&quot;<br>
<br>
which looks fine according to the .bb file.<br>
<br>
  but if i add the following to my local.conf file (as the manual<br>
suggests i do to add another feature):<br>
<br>
EXTRA_IMAGE_FEATURES = &quot;nfs-server&quot;<br>
<br>
i see *no* difference in the environment.  hasn&#39;t the setting in the<br>
.bb file overridden the one in my local.conf?<br>
<br>
  i *can* get nfs-server added to my list of features with<br>
(predictably):<br>
<br>
IMAGE_FEATURES += &quot;nfs-server&quot;<br>
<br>
but that doesn&#39;t strike me as a proper solution and will certainly<br>
come as an unpleasant surprise to someone eventually.  thoughts?<br><br></blockquote><div><br></div><div>I agree that there is a problem with this image. Anyway the best way to debug a scenario like this is to use bitbake -e and grep on the thing you are interested in. I tried to add a feature to local conf and, as i expected, EXTRA_IMAGE_FEATURES ended up overwritten by recipe. </div>

<div><br></div><div>So IMHO the EXTRA_IMAGE_FEATURES variable in the image should be merged in the IMAGE_FEATURES above. I don&#39;t see the meaning of it. </div><div><br></div><div>@g</div><div> </div></div>