]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 9 Aug 2021 02:19:38 +0000 (10:19 +0800)
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: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/sstate.bbclass

index 55d2937812a0db4b730b72f95738bf42547e1acb..5c7a98839f858ef7e080cc2110379128b2d187fd 100644 (file)
@@ -1018,6 +1018,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"