[oe-commits] [openembedded-core] 11/12: qemuboot.bbclass: create deterministic qemuboot.conf file

git at git.openembedded.org git at git.openembedded.org
Wed Aug 30 10:21:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 0868edace0750862168abc8d504891646afc8c76
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Mon Aug 28 13:28:26 2017 -0700

    qemuboot.bbclass: create deterministic qemuboot.conf file
    
    The lines in qemuboot.conf are in random order.
    This patch fixes this by printing the lines in sorted order.
    This makes it easier to compare two different builds for
    any differences.
    
    Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/qemuboot.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 0e21fc9..bd2f01d 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -87,7 +87,7 @@ python do_write_qemuboot_conf() {
     topdir="%s/"%(d.getVar('TOPDIR')).replace("//","/")
     cf = configparser.ConfigParser()
     cf.add_section('config_bsp')
-    for k in qemuboot_vars(d):
+    for k in sorted(qemuboot_vars(d)):
         # qemu-helper-native sysroot is not removed by rm_work and
         # contains all tools required by runqemu
         if k == 'STAGING_BINDIR_NATIVE':

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list