summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/sstatesig.py7
-rw-r--r--meta/lib/oeqa/selftest/cases/archiver.py2
-rw-r--r--meta/lib/oeqa/selftest/cases/signing.py2
-rw-r--r--scripts/lib/checklayer/__init__.py2
4 files changed, 7 insertions, 6 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 42e13a8c80..e250f51c12 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -142,9 +142,10 @@ class SignatureGeneratorOEBasicHashMixIn(object):
142 super().set_taskdata(data[3:]) 142 super().set_taskdata(data[3:])
143 143
144 def dump_sigs(self, dataCache, options): 144 def dump_sigs(self, dataCache, options):
145 sigfile = os.getcwd() + "/locked-sigs.inc" 145 if 'lockedsigs' in options:
146 bb.plain("Writing locked sigs to %s" % sigfile) 146 sigfile = os.getcwd() + "/locked-sigs.inc"
147 self.dump_lockedsigs(sigfile) 147 bb.plain("Writing locked sigs to %s" % sigfile)
148 self.dump_lockedsigs(sigfile)
148 return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options) 149 return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)
149 150
150 151
diff --git a/meta/lib/oeqa/selftest/cases/archiver.py b/meta/lib/oeqa/selftest/cases/archiver.py
index 3fa59fff51..3cb888c506 100644
--- a/meta/lib/oeqa/selftest/cases/archiver.py
+++ b/meta/lib/oeqa/selftest/cases/archiver.py
@@ -141,7 +141,7 @@ class Archiver(OESelftestTestCase):
141 pn = 'gcc-source-%s' % get_bb_vars(['PV'], 'gcc')['PV'] 141 pn = 'gcc-source-%s' % get_bb_vars(['PV'], 'gcc')['PV']
142 142
143 # Generate the tasks signatures 143 # Generate the tasks signatures
144 bitbake('mc:mc1:%s mc:mc2:%s -c %s -S none' % (pn, pn, task)) 144 bitbake('mc:mc1:%s mc:mc2:%s -c %s -S lockedsigs' % (pn, pn, task))
145 145
146 # Check the tasks signatures 146 # Check the tasks signatures
147 # To be machine agnostic the tasks needs to generate the same signature for each machine 147 # To be machine agnostic the tasks needs to generate the same signature for each machine
diff --git a/meta/lib/oeqa/selftest/cases/signing.py b/meta/lib/oeqa/selftest/cases/signing.py
index 322e753ed3..18cce0ba25 100644
--- a/meta/lib/oeqa/selftest/cases/signing.py
+++ b/meta/lib/oeqa/selftest/cases/signing.py
@@ -191,7 +191,7 @@ class LockedSignatures(OESelftestTestCase):
191 191
192 bitbake(test_recipe) 192 bitbake(test_recipe)
193 # Generate locked sigs include file 193 # Generate locked sigs include file
194 bitbake('-S none %s' % test_recipe) 194 bitbake('-S lockedsigs %s' % test_recipe)
195 195
196 feature = 'require %s\n' % locked_sigs_file 196 feature = 'require %s\n' % locked_sigs_file
197 feature += 'SIGGEN_LOCKEDSIGS_TASKSIG_CHECK = "warn"\n' 197 feature += 'SIGGEN_LOCKEDSIGS_TASKSIG_CHECK = "warn"\n'
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 0a0db2f02a..8271ed7fe3 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -307,7 +307,7 @@ def get_signatures(builddir, failsafe=False, machine=None, extravars=None):
307 cmd += 'bitbake ' 307 cmd += 'bitbake '
308 if failsafe: 308 if failsafe:
309 cmd += '-k ' 309 cmd += '-k '
310 cmd += '-S none world' 310 cmd += '-S lockedsigs world'
311 sigs_file = os.path.join(builddir, 'locked-sigs.inc') 311 sigs_file = os.path.join(builddir, 'locked-sigs.inc')
312 if os.path.exists(sigs_file): 312 if os.path.exists(sigs_file):
313 os.unlink(sigs_file) 313 os.unlink(sigs_file)