mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 12:25:22 +00:00
Make the node/ordinal list a part of the header comment to make the output prettier. Before: /* * Generated by gen_defines.py * * DTS input file: * rv32m1_vega_ri5cy.dts.pre.tmp * * Directories with bindings: * $ZEPHYR_BASE/dts/bindings */ /* Nodes in dependency order (ordinal : path): */ /* 0 : / */ /* 1 : /aliases */ /* 2 : /chosen */ /* 3 : /connector */ /* 4 : /cpus */ /* 5 : /cpus/cpu@0 */ /* 6 : /gpio_keys */ /* 7 : /soc */ ... After: /* * Generated by gen_defines.py * * DTS input file: * rv32m1_vega_ri5cy.dts.pre.tmp * * Directories with bindings: * $ZEPHYR_BASE/dts/bindings * * Nodes in dependency order (ordinal and path): * 0 / * 1 /aliases * 2 /chosen * 3 /connector * 4 /cpus * 5 /cpus/cpu@0 * 6 /gpio_keys * 7 /soc * ... */ Also move the writing of the top comment and the node comments into separate functions, to shorten main() and make it easier to follow. Piggyback some minor comment-related simplifications. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
---|---|---|
.. | ||
test-bindings | ||
test-bindings-2 | ||
dtlib.py | ||
edtlib.py | ||
gen_defines.py | ||
grutils.py | ||
test-multidir.dts | ||
test.dts | ||
testdtlib.py | ||
testedtlib.py |