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:
parent
0ea07d3072
commit
9d9b108dab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue