<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12693</bug_id>
          
          <creation_ts>2018-04-17 17:12:32 +0000</creation_ts>
          <short_desc>Task added after do_deploy not cached</short_desc>
          <delta_ts>2018-04-19 14:35:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Richardson">jon.richardson</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>scott.branden</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80279</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2018-04-17 17:12:32 +0000</bug_when>
    <thetext>In my u-boot recipe I have the following:

require recipes-bsp/u-boot/u-boot.inc

python () {
    if (d.getVar(&apos;SOMEVAR&apos;, True) == &apos;true&apos;:
        bb.build.addtask(&apos;do_signing&apos;, &apos;do_build&apos;, &apos;do_deploy&apos;, d)
}

do_signing() {
    # Do something with ${DEPLOY_DIR_IMAGE}/${UBOOT_BINARY}
}

If I build the recipe do_signing gets run after do_deploy properly. If I do a bitbake myrecipe -c cleanall, then bitbake brcm-myrecipe, do_signing is run even though the setscene version of all the tasks is run. If do_deploy_setscene is run shouldn&apos;t do_signing which depends on it be ignored since it&apos;s cached? 

do_package_write_rpm_setscene (191480): log.do_package_write_rpm_setscene.191480
do_package_qa_setscene (192008): log.do_package_qa_setscene.192008
do_populate_sysroot_setscene (193016): log.do_populate_sysroot_setscene.193016
do_populate_lic_setscene (193164): log.do_populate_lic_setscene.193164
do_deploy_setscene (193310): log.do_deploy_setscene.193310
do_packagedata_setscene (195065): log.do_packagedata_setscene.195065
do_signing (69150): log.do_signing.69150</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80346</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-04-19 14:35:01 +0000</bug_when>
    <thetext>sstate is opt-in, if your task doesn&apos;t put anything into the cache then it can&apos;t be restored either.

If you want your recipe to use sstate then look up sstate-inputdirs and sstate-outputdirs in the manual and other classes in oe-core.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>