Bug 8876

Summary: Allow limiting to restoring from sstate only
Product: [Build System, Metadata & Runtime] BitBake Reporter: Paul Eggleton <bluelightning>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, poky.bs.watcher, poky.watcher
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Paul Eggleton 2016-01-05 23:24:17 UTC
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.
Comment 1 Richard Purdie 2016-01-09 18:33:46 UTC
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.
Comment 3 Daniel Istrate 2016-02-16 14:10:54 UTC
Verified on master: da13f0bce5d1b3c52f5716ae8d104372a820e5f9

Steps:
1. $ bitbake <recipe>
2. $ bitbake <recipe> -c clean
3. $ bitbake <recipe> --setscene-only --> Only setscene task are run
Comment 4 Daniel Istrate 2016-02-16 15:07:42 UTC
Created oe-selftest for this. Patch sent to ML:
http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117608.html
Comment 5 Daniel Istrate 2016-02-18 16:08:37 UTC
oe-selftest test merged into master: 4e5e501155a21fe64a470c626b3afe6d9748308e