title: Unable to build Windows toolchain from Yocto
body: <p>I am attempting to build a Windows toolchain from Yocto (running on Linux) so that we can use a different build system to build applications for our embedded device.  Yocto is running on Ubuntu 18.04.</p>
  <p>I looked at <a href="https://stackoverflow.com/questions/47098497/cant-generate-sdk-for-windows-with-yocto">Can&#39;t generate SDK for Windows with Yocto</a> and <a href="https://stackoverflow.com/questions/40376459/how-do-i-generate-a-toolchain-for-windows-using-yocto">How do I generate a toolchain for Windows using Yocto?</a> and have added meta-mingw to my Yocto work directory; I am running Yocto Zeus, so I cloned it with command <code>git clone git://git.yoctoproject.org/meta-mingw -b zeus</code> and added it to my bblayers.conf file.  I also added <code>SDK_ARCH = &quot;x86_64&quot;</code> to my local.conf</p>
  <p>I am building the toolchain by running <code>bitbake meta-toolchain</code>.  I am trying to build a set of 64 bit binaries (we have had out of memory issues with our existing 32-bit Linaro toolchain).</p>
  <p>I am seeing the install script as you would expect in <code>/home/gen-ccm-root/workdir/tools/poky/build-dev/tmp/deploy/sdk</code> but all the binaries it built were Linux ELF files.  What step am I missing?  I didn't see how to do this in the Yocto SDK manual (<a href="https://www.yoctoproject.org/docs/3.0/sdk-manual/sdk-manual.html" rel="nofollow noreferrer">https://www.yoctoproject.org/docs/3.0/sdk-manual/sdk-manual.html</a>)  Is there a different document I should be looking at?</p>
  <p>A couple of other things I have tried:</p>
  <p>Changing SDK_ARCH in my local.conf to <code>SDK_ARCH = &quot;x86_64-mingw64&quot;</code> which didn't rebuild anything (after I built the Linux toolchain above)</p>
  <p>Adding <code>#SDKMACHINE ?= &quot;x86_64-mingw64&quot;</code> to the local.conf</p>
  <p>I tried mingw32 as well since that is what is in the layer conf.</p>