On Thu, 2017-03-09 at 08:54 +0200, Mircea Gliga wrote: > Long story short: I have problems building an image, in a clean build > directory, reusing the shared state cache and downloads from a previous > build. > A file created in the do_deploy_append task is not created(restored) > anymore when building using a previous sstate. > > And now the long description: > In my custom layer, in a kernel recipe, linux-stable.bb, I have appended > some operations to the `deploy` task, one of them is creating an U-Boot > FIT image: > > linux-stable.bb: > do_deploy_append() { > [...] > #this line creates the image_signed.fit file > mkimage [...] image_signed.fit > > [...] > }
Are you writing image_signed.fit into the ${DEPLOYDIR} or ${DEPLOY_DIR_IMAGE}? When writing directly into ${DEPLOY_DIR_IMAGE}, you bypass the mechanism which adds files to the sstate cache and then you get exactly the problem you describe. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto