title: do_compile is not getting called when an image class is inherited in Yocto
body: <p>I have a requirement to inherit an image class( <code>*.bbclass</code> )and run a script from image recipe but my <code>do_compile</code> is not getting called. </p>
  
  <p>For simplicity, I am putting up minimal sample code from <code>poky</code> source here which does similar thing which I want.</p>
  
  <p>I have created a test recipe called <code>inherit-test_0.1.bb</code> under my own created layer <code>meta-raxy</code>.</p>
  
  <p>Here is the <code>inherit-test_0.1.bb</code> recipe file,</p>
  
  <pre><code>SUMMARY = "Inherit Test Application"
  LICENSE = "CLOSED"
  
  inherit image
  
  do_compile () {
      echo MyRecipe
  }
  </code></pre>
  
  <p>When I compile this recipe by <code>bitbake inherit-test</code> after setting up <code>oe-init-build-env</code>, I do not see my <code>do_compile</code> gets compiled since there is no log file present in working directory <code>poky/build/tmp/work/qemux86-poky-linux/inherit-test/0.1-r0/temp/log.do_compile</code> with the line <code>MyRecipe</code></p>
  
  <p>And if I remove <code>inherit image</code>, I see <code>do_compile</code> gets compiled as shown below in log file,</p>
  
  <pre><code>DEBUG: Executing shell function do_compile
  MyRecipe
  DEBUG: Shell function do_compile finished
  </code></pre>
  
  <p>Any help will really be appreciated.</p>