Add an option to tell bitbake to restore from sstate only within a build (i.e. execute no real tasks, only setscene). The immediate use case for this is within the build system preparation stage, which shouldn't do any real work. It would be great if when this option was used, bitbake could also list the real tasks that would have needed to execute otherwise, which we can then check to see if it contains any unexpected tasks.
Patches out for review which allow the execution of setscene tasks only. That patch in itself is simple enough but adding a list of which later tasks would run would be hard. For that I'd suggest a follow up with a "dry-run" command which should be able to give that information.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=46731daa5f74a61dc6c48d9109b4ad4efb835705
Verified on master: da13f0bce5d1b3c52f5716ae8d104372a820e5f9 Steps: 1. $ bitbake <recipe> 2. $ bitbake <recipe> -c clean 3. $ bitbake <recipe> --setscene-only --> Only setscene task are run
Created oe-selftest for this. Patch sent to ML: http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117608.html
oe-selftest test merged into master: 4e5e501155a21fe64a470c626b3afe6d9748308e