build: sort dictionary in genconfig.py before printing

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I8a698531b261c303babac3c5c1594919430c0bac

Reviewed-on: https://review.gerrithub.io/398855
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Jim Harris 2018-02-07 13:58:11 -07:00
parent 9fccc84fba
commit 75cb574660

View File

@ -44,7 +44,7 @@ for config in ('CONFIG', 'CONFIG.local'):
except IOError:
continue
for key, value in defs.items():
for key, value in sorted(defs.items()):
if value == 0:
print("#undef {0}".format(key))
else: