Skip to content
Permalink
Browse files

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>
  • Loading branch information...
galak committed Jul 30, 2019
1 parent 0ea07d3 commit 9d9b108dab872e739606b16f020b1022ad23ae50
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/dts/gen_defines.py
@@ -72,7 +72,7 @@ def main():
active_compats.update(dev.compats)

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
out("COMPAT_{}".format(str2ident(compat)), 1)

0 comments on commit 9d9b108

Please sign in to comment.
You can’t perform that action at this time.