aboutsummaryrefslogtreecommitdiffstats
path: root/meta-selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-02 22:57:39 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-08-15 16:08:06 +0100
commit9096eb59d6b11726e2c8bb2f35901e5fb7c17024 (patch)
tree3ac58360e05c758244ab4b9b0ab7657264e5e314 /meta-selftest
parent6882d2d9993c8655a292c93e84ea01b4738a700d (diff)
downloadopenembedded-core-contrib-9096eb59d6b11726e2c8bb2f35901e5fb7c17024.tar.gz
sstatesig: Add support for locked down sstate cache usage
I've been giving things some thought, specifically why sstate doesn't get used more and why we have people requesting external toolchains. I'm guessing the issue is that people don't like how often sstate can change and the lack of an easy way to lock it down. Locking it down is actually quite easy so I thought I'd share a quick proof of concept of how you can do this (for example to a specific toolchain). With an addition like this to local.conf (or wherever): SIGGEN_LOCKEDSIGS = "\ gcc-cross:do_populate_sysroot:a8d91b35b98e1494957a2ddaf4598956 \ eglibc:do_populate_sysroot:13e8c68553dc61f9d67564f13b9b2d67 \ eglibc:do_packagedata:bfca0db1782c719d373f8636282596ee \ gcc-cross:do_packagedata:4b601ff4f67601395ee49c46701122f6 \ " the code at the end of the email will force the hashes to those values for the recipes mentioned. The system would then find and use those specific objects from the sstate cache instead of trying to build anything. Obviously this is a little simplistic, you might need to put an override against this to only apply those revisions for a specific architecture for example. You'd also probably want to put code in the sstate hash validation code to ensure it really did install these from sstate since if it didn't you'd want to abort the build. This patch also implements support to add to bitbake -S which dumps the locked sstate checksums has for each task into a ready prepared include file locked-sigs.inc (Poky rev: 36c3fb22b7698a7885276430096c00ade8219607) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
0 files changed, 0 insertions, 0 deletions