summaryrefslogtreecommitdiffstats
path: root/scripts/gen-lockedsig-cache
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-lockedsig-cache')
-rwxr-xr-xscripts/gen-lockedsig-cache13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache
index 9bfae9d832..6a7d285910 100755
--- a/scripts/gen-lockedsig-cache
+++ b/scripts/gen-lockedsig-cache
@@ -78,11 +78,18 @@ files = set()
78sstate_content_cache = {} 78sstate_content_cache = {}
79for s in sigs: 79for s in sigs:
80 prefix = s[:2] 80 prefix = s[:2]
81 prefix2 = s[2:4]
81 if prefix not in sstate_content_cache: 82 if prefix not in sstate_content_cache:
82 sstate_content_cache[prefix] = build_sha_cache(prefix) 83 sstate_content_cache[prefix] = build_sha_cache(prefix)
83 84 if prefix2 not in sstate_content_cache[prefix]:
84 for f in sstate_content_cache[prefix][s]: 85 sstate_content_cache[prefix][prefix2] = build_sha_cache(prefix + "/" + prefix2)
85 files.add(f) 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]:
91 for f in sstate_content_cache[prefix][prefix2][s]:
92 files.add(f)
86 93
87elapsed = time.perf_counter() - start_time 94elapsed = time.perf_counter() - start_time
88print("Gathering file list took %.1fs" % elapsed) 95print("Gathering file list took %.1fs" % elapsed)