From: Juro Bystricky Date: Mon, 28 Aug 2017 20:28:26 +0000 (-0700) Subject: qemuboot.bbclass: create deterministic qemuboot.conf file X-Git-Tag: 2017-10~387 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0868edace0750862168abc8d504891646afc8c76;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index 0e21fc9bde..bd2f01db23 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':