Skip to contentSkip to conversation

siggen.py: Use basehash if no taskhash

PATCH Applied Robert Yang 2 participants 3 messages Mar 6, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

cover siggen.py: Use basehash if no taskhash

The following changes since commit a439d32dd843d10a9f65cc858b02422fac7deb50:

soc-family.inc: to be included in machine.conf to add SOC_FAMILY to MACHINEOVERRIDE (2012-03-04 05:41:11 -0800)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/basehash
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/basehash

Robert Yang (1):
siggen.py: Use basehash if no taskhash

 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 siggen.py: Use basehash if no taskhash

The bitbake-runtask doesn't work since there is no taskhash (it worked in the past, but seems recent changes made it doesn't work again), use the basehash when there is no taskhash, just like what dump_sigtask does.

[YOCTO #1229]

---
 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
bitbake/lib/bb/siggen.py +5 -1
index 975ae41..39f44a2 100644
@@ -219,7 +219,11 @@ class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
             k = fn + "." + taskname[:-9]
         else:
             k = fn + "." + taskname
-        h = self.taskhash[k]
+        if k in self.taskhash:
+            h = self.taskhash[k]
+        else:
+            # If k is not in basehash, then error
+            h = self.basehash[k]
         return ("%s.%s.%s.%s" % (stampbase, taskname, h, extrainfo)).rstrip('.')
 
 def dump_this_task(outfile, d):
Signature · 1 line
1.7.4.1
#2 lore raw
Quoted 11 lines · Robert Yang

The bitbake-runtask doesn't work since there is no taskhash (it worked in the past, but seems recent changes made it doesn't work again), use the basehash when there is no taskhash, just like what dump_sigtask does.

[YOCTO #1229]

---
 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard