Skip to content

sstatesig: add support to dump incremental locked signatures

Hongxu Jia openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 4 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sstatesig: Only dump incremental locked signaturesmeta/lib/oe/sstatesig.py+8 -44 replies
2/3sstatesig: add new item checking for locked signature dumpmeta/lib/oe/sstatesig.py+16 -10 replies
3/3sstatesig: fix to support unincremental locked signature dumpmeta/lib/oe/sstatesig.py+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/3] sstatesig: add support to dump incremental locked signatures

How to test incrementally locked signature dump:

1) Create a new build

2) Dump locked sig file for db

$ bitbake -S none db
...
Writing locked sigs to /home/jiahongxu/yocto/build-20140904-yocto/locked-sigs.inc
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
...

3) Back up locked-sigs.inc

$ cp locked-sigs.inc locked-sigs.inc.bak

4) Dump locked sig file for db again

$ bitbake -S none db
...
Writing locked sigs to /home/jiahongxu/yocto/build-20140904-yocto/locked-sigs.inc
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
...

5) Compare locked-sigs.inc and locked-sigs.inc.bak to verify nothing changed

$ vimdiff locked-sigs.inc locked-sigs.inc.bak

6) Require locked-sigs.inc
vim local.conf
...
require "${TOPDIR}/locked-sigs.inc"
...

7) Incrementally dump locked sig file for world

$ bitbake -S none world
...
Writing locked sigs to /home/jiahongxu/yocto/build-20140904-yocto/locked-sigs.inc
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
...

8) Compare locked-sigs.inc and locked-sigs.inc.bak to verify incrementally dumping

$ vimdiff locked-sigs.inc locked-sigs.inc.bak

9) Back up locked-sigs.inc

$ cp locked-sigs.inc locked-sigs.inc.bak

10) Dump for world again

$ bitbake -S none world
...
Writing locked sigs to /home/jiahongxu/yocto/build-20140904-yocto/locked-sigs.inc
Nothing added to /home/jiahongxu/yocto/build-20140904-yocto/locked-sigs.inc
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
...

11) Compare locked-sigs.inc and locked-sigs.inc.bak to verify nothing changed

$ vimdiff locked-sigs.inc locked-sigs.inc.bak

//Hongxu

The following changes since commit 280b6d0011f101e7a8edabd34c265b37a2f791ed:

sstatesig: fix overrides behaviour to remove SIGGEN_LOCKEDSIGS_i586 (2014-09-17 22:00:26 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/locked-sstate
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/locked-sstate

Hongxu Jia (3):
sstatesig: Only dump incremental locked signatures
sstatesig: add new item checking for locked signature dump
sstatesig: fix to support unincremental locked signature dump

 meta/lib/oe/sstatesig.py | 33 ++++++++++++++++++++++++++++-----
 1 file changed, 28 insertions(+), 5 deletions(-)
Signature · 1 line
1.9.1