title: bitbake do_configure: how to set the path from where to run do_configure
body: <p>The bb file has the source directory variable set to a specific path</p>
  
  <pre><code>S = ${THISDIR}/MySources
  </code></pre>
  
  <p>There is no SRC_URI in the bb file as the source is already extracted in the path where the bb file is present.</p>
  
  <p>The issue is when the do_configure is run it is run from the <code>$WORKDIR</code> location. However there is a need to run the do_configure from the source dir that is from <code>$S</code>. How to set this, even the log for do_configure run log shows a change directory to <code>WORKDIR</code> and then a do configure something like this</p>
  
  <pre><code>...
  ...
  cd [path to workdir]
  
  do_configure
  </code></pre>
  
  <p>How to make the do_configure run from the source directory <code>${S}</code>.
  The source is added as a layer in the bitbake.</p>
  
  <p>Thanks. </p>