@@ -143,14 +143,19 @@ class SignatureGeneratorOEBasicHashMixIn(object):
super().set_taskdata(data[3:])
def dump_sigs(self, dataCache, options):
+ outdir = os.getcwd()
+ for o in options:
+ if o.startswith('outdir'):
+ outdir = o.split('=')[1]
+
if 'lockedsigs' in options:
- sigfile = os.getcwd() + "/locked-sigs.inc"
+ sigfile = outdir + "/locked-sigs.inc"
bb.plain("Writing locked sigs to %s" % sigfile)
self.dump_lockedsigs(sigfile)
if 'unihash-cache-copy' in options:
- cachefile = os.getcwd() + "/bb_unihashes.dat"
+ cachefile = outdir + "/bb_unihashes.dat"
bb.plain("Writing unihash cache to %s" % cachefile)
- bb.parse.siggen.copy_unitaskhashes(os.getcwd())
+ bb.parse.siggen.copy_unitaskhashes(outdir)
return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)