title: bitbake failed with ExpansionError
body: <p><strong>Context:</strong></p>
  
  <p>I'm following the <a href="http://www2.keil.com/mdk5/ds-mdk/imx7reference" rel="nofollow noreferrer">NXP i.MX7 Reference</a> to build a Linux image for the i.MX 7 SABRE board. This process went smoothly, and I was successful in building and loading the krogoth image on the board. The problem arise when I tried to add the <a href="https://layers.openembedded.org/layerindex/branch/krogoth/layer/openembedded-core/" rel="nofollow noreferrer">openembedded-core</a> layer to my image. I immediately get the error below. I included my <em>bblayers.conf</em> for reference. Any help would be appreciated. I don't even need sqlite, so if there's a way to bypass it, then that would be fine.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>ERROR: ExpansionError during parsing /fsl-community-bsp-platform/sources/openembedded-core/meta/recipes-support/sqlite/sqlite3_3.16.2.bb: Failure expanding variable SQLITE_PV, expression was ${@sqlite_download_version(d)} which triggered exception TypeError: getVar() takes at least 3 arguments (2 given)
  </code></pre>
  
  <p><strong>bblayers.conf</strong></p>
  
  <pre><code>POKY_BBLAYERS_CONF_VERSION = "2"
  
  BBPATH = "${TOPDIR}"
  BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
  
  BBFILES ?= ""
  BBLAYERS = " \
    ${BSPDIR}/sources/poky/meta \
    ${BSPDIR}/sources/poky/meta-poky \
    \
    ${BSPDIR}/sources/openembedded-core/meta \
    \
    ${BSPDIR}/sources/meta-openembedded/meta-oe \
    ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
    \
    ${BSPDIR}/sources/meta-fsl-arm \
    ${BSPDIR}/sources/meta-fsl-arm-extra \
    ${BSPDIR}/sources/meta-fsl-demos \
  "
  </code></pre>
  
  <p>The only difference between a successful build, and a failling build is the line: <code>${BSPDIR}/sources/openembedded-core/meta</code>. </p>