summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-06 13:14:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-06 23:54:39 +0000
commit1a401e1c660bc16207d80e984bb05ba31ce2957c (patch)
tree93fc748714344c6e95f47d1e5ede7284efb86a28 /scripts
parentb8025e972081b70960ffcbcbe43a7118041556a1 (diff)
downloadpoky-1a401e1c660bc16207d80e984bb05ba31ce2957c.tar.gz
scripts/gen-lockedsig-cache: Only look at new format sstate objects
We can have sstate directories which are mixtures of old and new layout entries. Only use the new format ones since these are the only ones bitbake itself will look at. (From OE-Core rev: 610b314ddc757e6ac8ba4d47921aee1f2f35df97) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-lockedsig-cache5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache
index 6a7d285910..cd8f9a4356 100755
--- a/scripts/gen-lockedsig-cache
+++ b/scripts/gen-lockedsig-cache
@@ -80,13 +80,10 @@ for s in sigs:
80 prefix = s[:2] 80 prefix = s[:2]
81 prefix2 = s[2:4] 81 prefix2 = s[2:4]
82 if prefix not in sstate_content_cache: 82 if prefix not in sstate_content_cache:
83 sstate_content_cache[prefix] = build_sha_cache(prefix) 83 sstate_content_cache[prefix] = {}
84 if prefix2 not in sstate_content_cache[prefix]: 84 if prefix2 not in sstate_content_cache[prefix]:
85 sstate_content_cache[prefix][prefix2] = build_sha_cache(prefix + "/" + prefix2) 85 sstate_content_cache[prefix][prefix2] = build_sha_cache(prefix + "/" + prefix2)
86 86
87 if s in sstate_content_cache[prefix]:
88 for f in sstate_content_cache[prefix][s]:
89 files.add(f)
90 if s in sstate_content_cache[prefix][prefix2]: 87 if s in sstate_content_cache[prefix][prefix2]:
91 for f in sstate_content_cache[prefix][prefix2][s]: 88 for f in sstate_content_cache[prefix][prefix2][s]:
92 files.add(f) 89 files.add(f)