title: Can't generate SDK for Windows with Yocto
body: <p>I've build a Linux image for freescale imx6qpsabreai board and SDK with toolchain which works well on Linux. </p>
  
  <p>Now I want to support development on Windows and following <a href="https://stackoverflow.com/questions/40376459/how-do-i-generate-a-toolchain-for-windows-using-yocto">this</a> post I've</p>
  
  <ul>
  <li>downloaded <a href="https://layers.openembedded.org/layerindex/branch/master/layer/meta-mingw/" rel="nofollow noreferrer">oe meta-mingw</a> into <em>sources/meta-openembedded/meta-mingw</em>  </li>
  <li>added SDKMACHINE=x86_64-mingw32 to local.conf in my project</li>
  </ul>
  
  <p>however, I can't build new SDK this way.</p>
  
  <pre><code>~/yocto/fsl-community-bsp/build_fsl_framebuffer$ bitbake fsl-image-machine-test -c populate_sdk
  Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:00
  Loaded 2 entries from dependency cache.
  ERROR: /home/slavskaya/yocto/fsl-community-bsp/sources/meta-openembedded/meta-mingw/recipes-support/libiconv/libiconv_1.14.bb: Error executing a python function in &lt;code&gt;:                        | ETA:  --:--:--
  
  The stack trace of python calls that resulted in this exception/failure was:
  File: '&lt;code&gt;', lineno: 13, function: &lt;module&gt;
       0009:__anon_35__home_slavskaya_yocto_fsl_community_bsp_sources_poky_meta_classes_devshell_bbclass(d)
       0010:__anon_106__home_slavskaya_yocto_fsl_community_bsp_sources_poky_meta_classes_sstate_bbclass(d)
       0011:__anon_45__home_slavskaya_yocto_fsl_community_bsp_sources_poky_meta_classes_blacklist_bbclass(d)
       0012:__anon_158__home_slavskaya_yocto_fsl_community_bsp_sources_poky_meta_classes_siteinfo_bbclass(d)
   *** 0013:__anon_31__home_slavskaya_yocto_fsl_community_bsp_sources_meta_openembedded_meta_mingw_recipes_support_libiconv_libiconv_1_14_bb(d)
  File: '/home/slavskaya/yocto/fsl-community-bsp/sources/meta-openembedded/meta-mingw/recipes-support/libiconv/libiconv_1.14.bb', lineno: 28, function: __anon_31__home_slavskaya_yocto_fsl_community_bsp_sources_meta_openembedded_meta_mingw_recipes_support_libiconv_libiconv_1_14_bb
       0024:inherit autotools pkgconfig gettext
       0025:
       0026:python __anonymous() {
       0027:    if d.getVar("TARGET_OS") != "linux":
   *** 0028:        return
       0029:    if d.getVar("TCLIBC") == "glibc":
       0030:        raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - glibc already provides iconv")
       0031:}
       0032:
  Exception: TypeError: getVar() missing 1 required positional argument: 'expand'
  
  ERROR: Failed to parse recipe: /home/slavskaya/yocto/fsl-community-bsp/sources/meta-openembedded/meta-mingw/recipes-support/libiconv/libiconv_1.14.bb
  
  Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
  </code></pre>
  
  <p>Also, I am not an experienced C/C++ programmer, but from my point of view mingw doesn't contain compiler for arm architecture, so maybe I just can't get arm toolchain to use on Windows?</p>