]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Fix rebuilds when changing layer config
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Aug 2021 12:47:21 +0000 (13:47 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 4 Aug 2021 19:57:23 +0000 (09:57 -1000)
When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
hashes were changing when they should not. This was caused by wider use
of setscene_depvalid which means the dependency on the variable was seen
when it was previously not.

Exclude the variable since this should be be included in the hashes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 09725a29365c69ccbd603fe3a1de72189f26d5ac)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sstate.bbclass

index 0a25e3ed9dacedba8af3aaeff0d740d13ce4a3ab..c148fc9eddffa630c0c60afa3cf2259508e53359 100644 (file)
@@ -1014,6 +1014,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
         bb.parse.siggen.checkhashes(sq_data, missed, found, d)
 
     return found
+setscene_depvalid[vardepsexclude] = "SSTATE_EXCLUDEDEPS_SYSROOT"
 
 BB_SETSCENE_DEPVALID = "setscene_depvalid"