<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 14 November 2016 at 10:35, Maciej Borzęcki <span dir="ltr">&lt;<a href="mailto:maciej.borzecki@rndity.com" target="_blank">maciej.borzecki@rndity.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1th" class="a3s aXjCH m15862683c3928210">Do you think it makes sense to replace TARGET_ARCH check with something<br>
like this instead:<br>
<br>
        arch = get_bb_var(&#39;HOST_ARCH&#39;, &#39;core-image-minimal&#39;)<br>
<br>
        is_x86 = arch in [&#39;i586&#39;, &#39;i686&#39;, &#39;x86-64&#39;]<br>
        if is_x86:<br>
            self.write_config(&#39;IMAGE_<wbr>FSTYPES += &quot; hddimg&quot;\n&#39;<br>
                              &#39;MACHINE_FEATURES_append = &quot; efi&quot;\n&#39;)<br>
<br>
Basically, I do not want to build syslinux or set config options that<br>
are usable on x86 target when building for other targets.</div></blockquote></div><br>That expression is more likely to work, yeah, though woudn&#39;t TARGET_ be more suitable than HOST_?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>