diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-01-20 19:44:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:52:57 +0000 |
commit | d955d6a8f52edcffe3c81af7b01f2e3843dbe432 (patch) | |
tree | b2c32dc93721bf2ca3aef06fbfb803677d732edd | |
parent | 30bfec03e2c84e74336760c396df1519affe3669 (diff) | |
download | ast2050-yocto-poky-d955d6a8f52edcffe3c81af7b01f2e3843dbe432.zip ast2050-yocto-poky-d955d6a8f52edcffe3c81af7b01f2e3843dbe432.tar.gz |
bitbake: siggen.py: fix the SignatureGenerator()
If we set:
BB_SIGNATURE_HANDLER = "noop"
Then we would get the following errors:
[snip]
File "runqueue.py", line 876, in RunQueue._start_worker(fakeroot=False, rqexec=None):
"fakerootnoenv" : self.rqdata.dataCache.fakerootnoenv,
> "hashes" : bb.parse.siggen.taskhash,
"hash_deps" : bb.parse.siggen.runtaskdeps,
AttributeError: 'SignatureGenerator' object has no attribute 'taskhash'
[snip]
This patch fixes the problem.
[YOCTO #5741]
(Bitbake rev: 2bfcb751891cf3b4050e996b3c8e28678c3a8bf4)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 9db29a2..a54357a 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -34,7 +34,9 @@ class SignatureGenerator(object): name = "noop" def __init__(self, data): - return + self.taskhash = {} + self.runtaskdeps = {} + self.file_checksum_values = {} def finalise(self, fn, d, varient): return @@ -42,7 +44,7 @@ class SignatureGenerator(object): def get_taskhash(self, fn, task, deps, dataCache): return "0" - def set_taskdata(self, hashes, deps): + def set_taskdata(self, hashes, deps, checksum): return def stampfile(self, stampbase, file_name, taskname, extrainfo): |