diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2019-11-15 08:47:23 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 23:39:42 +0000 |
commit | 99c27e5874e874d681b6e7fe07f31e163d1d955a (patch) | |
tree | a11aef25d39360b7704daf0230cc982b5eaf8052 /bitbake/lib/bb/siggen.py | |
parent | 51528db38bfdd488f29da12d4ca80b6711118011 (diff) | |
download | poky-99c27e5874e874d681b6e7fe07f31e163d1d955a.tar.gz |
bitbake: lib/bb: Add BB_SIGNATURE_LOCAL_DIRS_EXCLUDE to speed-up taskhash on directories
The new BB_SIGNATURE_LOCAL_DIRS_EXCLUDE allows you to specify a list
of directories to exclude when making taskhash, our specific case
is using SRC_URI that points local VCS directory.
Use bb.fetch.module to set default to: "CVS .bzr .git .hg .osc .p4 .repo .svn"
(Bitbake rev: 923aff060d8aba8456979c35b16d300ba7c13ff9)
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index e484e5e37d..f982bf22bc 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -126,6 +126,7 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
126 | 126 | ||
127 | self.unihash_cache = bb.cache.SimpleCache("1") | 127 | self.unihash_cache = bb.cache.SimpleCache("1") |
128 | self.unitaskhashes = self.unihash_cache.init_cache(data, "bb_unihashes.dat", {}) | 128 | self.unitaskhashes = self.unihash_cache.init_cache(data, "bb_unihashes.dat", {}) |
129 | self.localdirsexclude = (data.getVar("BB_SIGNATURE_LOCAL_DIRS_EXCLUDE") or "CVS .bzr .git .hg .osc .p4 .repo .svn").split() | ||
129 | 130 | ||
130 | def init_rundepcheck(self, data): | 131 | def init_rundepcheck(self, data): |
131 | self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None | 132 | self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None |
@@ -222,9 +223,9 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
222 | 223 | ||
223 | if task in dataCache.file_checksums[fn]: | 224 | if task in dataCache.file_checksums[fn]: |
224 | if self.checksum_cache: | 225 | if self.checksum_cache: |
225 | checksums = self.checksum_cache.get_checksums(dataCache.file_checksums[fn][task], recipename) | 226 | checksums = self.checksum_cache.get_checksums(dataCache.file_checksums[fn][task], recipename, self.localdirsexclude) |
226 | else: | 227 | else: |
227 | checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename) | 228 | checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename, self.localdirsexclude) |
228 | for (f,cs) in checksums: | 229 | for (f,cs) in checksums: |
229 | self.file_checksum_values[tid].append((f,cs)) | 230 | self.file_checksum_values[tid].append((f,cs)) |
230 | 231 | ||