title: DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf
body: <p>New to Yocto. Trying to build an image for Xilinx Zynq. Followed instructions on <a href="https://github.com/Xilinx/meta-petalinux" rel="nofollow noreferrer">https://github.com/Xilinx/meta-petalinux</a>. Don't need everything there, so removed some of the layers. When I execute <code>bitbake zynq-generic</code> I get the following error: </p>
  
  <pre><code>$ bitbake petalinux-image
  ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
      Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
      Following is the list of potential problems / advisories:
  
      DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf
  
  
  Summary: There was 1 ERROR message shown, returning a non-zero exit code.
  </code></pre>
  
  <p>Here is my <code>bblayers.conf</code></p>
  
  <pre><code># POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
  # changes incompatibly
  POKY_BBLAYERS_CONF_VERSION = "2"
  
  
  BBPATH = "${TOPDIR}"
  BBFILES ?= ""
  
  BBLAYERS ?= " \
      ${TOPDIR}/layers/meta-openembedded/meta-perl \
      ${TOPDIR}/layers/meta-openembedded/meta-python \
      ${TOPDIR}/layers/meta-openembedded/meta-filesystems \
      ${TOPDIR}/layers/meta-openembedded/meta-gnome \
      ${TOPDIR}/layers/meta-openembedded/meta-multimedia \
      ${TOPDIR}/layers/meta-openembedded/meta-networking \
      ${TOPDIR}/layers/meta-openembedded/meta-webserver \
      ${TOPDIR}/layers/meta-openembedded/meta-xfce \
      ${TOPDIR}/layers/meta-openembedded/meta-initramfs \
      ${TOPDIR}/layers/meta-openembedded/meta-oe \
      ${TOPDIR}/layers/openembedded-core/meta \
      ${TOPDIR}/layers/meta-qt5 \
      ${TOPDIR}/layers/openembedded-core/meta-selftest \
      ${TOPDIR}/layers/openembedded-core/meta-skeleton \
      ${TOPDIR}/layers/meta-xilinx \
      ${TOPDIR}/layers/meta-petalinux \
      "
  
  MACHINE = "zynq-generic"
  
  DISTRO ?= "poky"
  </code></pre>
  
  <p>What am I missing?</p>