aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-08-28 13:28:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-30 11:20:49 +0100
commit0868edace0750862168abc8d504891646afc8c76 (patch)
treea660a1a08330825b4293b74285c7edab8c5c7abe
parentac9a36933e0afaa3d1acecc4915f4cf318279f38 (diff)
downloadopenembedded-core-contrib-0868edace0750862168abc8d504891646afc8c76.tar.gz
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@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/qemuboot.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 0e21fc9bdef..bd2f01db23d 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':