<div dir="ltr"><div><div><div><div>Ross, <br><br></div>Thanks, that  " <span class="im">IMAGE_INSTALL_append_intel-corei7-64 = "package_b" "  </span>worked a treat.  <br><br></div>If I want to exclude a recipe from a layer for qemu builds  - is there a similar method for that ?<br><br></div>Thanks,<br></div>Mark<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 March 2016 at 09:10, Andre McCurdy <span dir="ltr"><<a href="mailto:armccurdy@gmail.com" target="_blank">armccurdy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 16, 2016 at 2:01 AM, Burton, Ross <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>> wrote:<br>
><br>
> On 16 March 2016 at 08:56, Mark T <<a href="mailto:mtl1nuxd3v@gmail.com">mtl1nuxd3v@gmail.com</a>> wrote:<br>
>><br>
>> I'd like to be able to do the following<br>
>><br>
>> IMAGE_INSTALL_append += "package_a"<br>
<br>
</span>It's not typical usage to combine += with _append, pick one or the other.<br>
<br>
Using _append is generally more reliable if you're not sure how the<br>
variable you're appending to was originally initialised, however with<br>
_append you need to manually include a leading space character, ie:<br>
<br>
IMAGE_INSTALL_append = " package_a"<br>
<span class=""><br>
>> if ( not qemu )<br>
>> IMAGE_INSTALL_append += "package_b"<br>
>> endif<br>
><br>
><br>
> The neater way would be if you can easily identify what "not qemu" is, for<br>
> example:<br>
><br>
> IMAGE_INSTALL_append_intel-corei7-64 = "package_b"<br>
><br>
> Would install package_b only for intel-corei7-64 machines.<br>
><br>
> If you want to support arbitrary machines but not qemu then something like<br>
> this might work:<br>
><br>
> MOREDEPS = "package_b"<br>
> MOREDEPS_qemuall = ""<br>
> IMAGE_INSTALL_append = " ${MOREDEPS}"<br>
><br>
> (qemuall is an override that is enabled by all qemu machines)<br>
<br>
</span>Another alternative would be something like:<br>
<br>
IMAGE_INSTALL_remove_qemuall = "package_b"<br>
<br>
> Ross<br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> _______________________________________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
><br>
</font></span></blockquote></div><br></div>