]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemuboot.bbclass: create deterministic qemuboot.conf file
authorJuro Bystricky <juro.bystricky@intel.com>
Mon, 28 Aug 2017 20:28:26 +0000 (13:28 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Aug 2017 10:20:49 +0000 (11:20 +0100)
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@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/qemuboot.bbclass

index 0e21fc9bdef758df4413cadd8c15d2661420c8a0..bd2f01db23d9e87921cb46738b58f33d0e1915c6 100644 (file)
@@ -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':