diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-10-23 13:06:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-27 10:53:43 +0100 |
commit | 2cf13f251392dd31c55ef49ed8ba037ac4216934 (patch) | |
tree | ea970335ce6fd8340996ff1c02d0529774a57f5d /scripts/lib | |
parent | 2187e823ad66eaaee6a4ed7d748f2c68028a45e7 (diff) | |
download | poky-2cf13f251392dd31c55ef49ed8ba037ac4216934.tar.gz |
lib/oe/sstatesig.py: dump locked.sigs.inc only when explicitly asked via -S lockedsigs
This was writing out locked-sigs.inc into cwd with every
'bitbake -S' invocation. When the intent is only to to get task
stamps (-S none), or print the difference between them (-S printdiff),
the file is unnecessary clutter.
A couple of selftests/scripts were however relying on this, so they're
adjusted to explicitly request the file.
eSDK code calls dump_lockedsigs() separately via
oe.copy_buildsystem.generate_locked_sigs() and so isn't affected.
(From OE-Core rev: ad57c3cac2a8d3e60222e3cca0685f582dcea135)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/checklayer/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |