Bug 8876 - Allow limiting to restoring from sstate only
Summary: Allow limiting to restoring from sstate only
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.1 M2
Assignee: Richard Purdie
QA Contact: Daniel Istrate
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-05 23:24 UTC by Paul Eggleton
Modified: 2016-02-18 16:08 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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