]> code.ossystems Code Review - openembedded-core.git/commit
scripts: add oe-check-sstate script
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 22 Jul 2016 12:38:10 +0000 (00:38 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2016 22:47:02 +0000 (23:47 +0100)
commit4d059e02099e6244765027f2771192434764c606
tree451c39b2b38f45f7ddb46e734ed16a52ef2eb3a6
parented0d8ed72370df694f720cc13897493478dc1de9
scripts: add oe-check-sstate script

Add a script to check which sstate artifacts would be installed by
building a given target - by default this is done with a separate
TMPDIR to ensure we get the "from scratch" result. The script produces a
list of tasks that will be restored from the sstate cache. This can also
be combined with BB_SETSCENE_ENFORCE* to check if sstate artifacts are
available.

The implementation is a little crude - we're running bitbake -n and
looking at the output. In future when we have the ability to execute
tasks from tinfoil-based scripts we can look at rewriting that part of
it to use that instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-check-sstate [new file with mode: 0755]