image_types.bbclass: add xz-native to deps for lzma ext2.lzma images
PATCH 1/1 image_types.bbclass: add xz-native to deps for lzma ext2.lzma images
--- meta/classes/image_types.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/image_types.bbclass +1 -1
@@ -142,7 +142,7 @@ IMAGE_DEPENDS_cramfs = "cramfs-native" IMAGE_DEPENDS_ext2 = "genext2fs-native" IMAGE_DEPENDS_ext2.gz = "genext2fs-native" IMAGE_DEPENDS_ext2.bz2 = "genext2fs-native" -IMAGE_DEPENDS_ext2.lzma = "genext2fs-native" +IMAGE_DEPENDS_ext2.lzma = "genext2fs-native xz-native" IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" IMAGE_DEPENDS_ext4 = "genext2fs-native e2fsprogs-native"
Signature · 1 line
1.7.6.1
PATCH 1/1 siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed
Some BB_HASHBASE_WHITELIST variables are in the lists of variable dependencies for signatures. Ignore those differences in lists since this difference does not matter
---
I'm seeing variables in BB_HASHBASE_WHITELIST make it to the signature. Not sure if they are used to calculate the hash but assuming they are not we don't need to print out that they are different
bitbake/lib/bb/siggen.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
bitbake/lib/bb/siggen.py +3 -3
@@ -237,13 +237,13 @@ def compare_sigfiles(a, b): p2 = pickle.Unpickler(file(b, "rb")) b_data = p2.load() - def dict_diff(a, b): + def dict_diff(a, b, whitelist=set()): sa = set(a.keys()) sb = set(b.keys()) common = sa & sb changed = set() for i in common: - if a[i] != b[i]: + if a[i] != b[i] and i not in whitelist: changed.add(i) added = sa - sb removed = sb - sa
@@ -263,7 +263,7 @@ def compare_sigfiles(a, b): if a_data['basehash'] != b_data['basehash']: print "basehash changed from %s to %s" % (a_data['basehash'], b_data['basehash']) - changed, added, removed = dict_diff(a_data['gendeps'], b_data['gendeps']) + changed, added, removed = dict_diff(a_data['gendeps'], b_data['gendeps'], a_data['basewhitelist'] & b_data['basewhitelist']) if changed: for dep in changed: print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])
Signature · 1 line
1.7.6.1
Richard Purdie
AppliedQuoted 4 lines · Matthew McClintock
Signed-off-by Matthew McClintock <[email protected]>--- meta/classes/image_types.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Merged to master, thanks.
Richard
Re: [PATCH] siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed
In reply to Matthew McClintockQuoted 5 lines · Matthew McClintock
Some
BB_HASHBASE_WHITELISTvariables are in the lists of variable dependencies for signatures. Ignore those differences in lists since this difference does not matterSigned-off-by Matthew McClintock <[email protected]>
Sent this to bitbake mailing list where it belongs.
-M