scripts/dts: Sort output of DT_COMPAT_ defines

Sort the DT_COMPAT_ defines so comparing them from different builds is
easier.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-07-30 12:50:24 -05:00 committed by Kumar Gala
commit 9d9b108dab

View file

@ -72,7 +72,7 @@ def main():
active_compats.update(dev.compats) active_compats.update(dev.compats)
out_comment("Active compatibles (mentioned in DTS + binding found)") out_comment("Active compatibles (mentioned in DTS + binding found)")
for compat in active_compats: for compat in sorted(active_compats):
#define DT_COMPAT_<COMPAT> 1 #define DT_COMPAT_<COMPAT> 1
out("COMPAT_{}".format(str2ident(compat)), 1) out("COMPAT_{}".format(str2ident(compat)), 1)