sstatesig: Improve the support for locked down sstate cache usage
authorHongxu Jia <hongxu.jia@windriver.com>
Thu, 11 Sep 2014 08:30:16 +0000 (16:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Sep 2014 21:00:25 +0000 (22:00 +0100)
commitb73184b9e299fd2c3a00c46d79fc8ef40de65700
tree5954caba537dfe803e71e7a375b336e3417665d4
parentcbfe4877efb31ad588a226e5c0bc27fad39318e6
sstatesig: Improve the support for locked down sstate cache usage

Add code in the sstate hash validation code to ensure it really did
install these from sstate since if it didn't should to warn/abort
the build. The judgment condition is:
1) If a build is replaced by locked sstate-cache, it will triger a
   warn/error;
2) If objects are not used from the locked cache, it will triger a
   warn/error;
3) Use SIGGEN_LOCKEDSIGS_CHECK_LEVEL variable controls whether this
   is just a warning or a fatal error or nothing to report.

[YOCTO #6639]

(From OE-Core rev: 305912dce61c4fed0cbf631aa98a9e6f29db88e4)

(From OE-Core rev: 1683815695f39d4bad352348913f927ac8a1bcf5)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sstatesig.py