]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Output nodes in order
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2020 03:35:04 +0000 (20:35 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:26:35 +0000 (12:26 -0700)
commit7b9e15864c6205d574cf3862b92585bcd247726f
treeba935489dd796176fb1d3c75059651c6d376bfa9
parent2dff8b95f7a32cfebd41867d6c74ce300f79f829
dtoc: Output nodes in order

Previously we had to worry about nodes being output before those that they
depended on, thus causing build errors.  So the current algorithm is
careful to output nodes in the right order.

We now use a different method for outputting phandles that does not
involve pointers. Also we plan to add a 'declarations' header file to
declare all drivers as 'extern'.

Update the code to drop the dependency checking and output in a simple
loop. This makes the output easier to follow since drivers are in order of
thier indices (0, 1, ...), which is also the order it appears in in the
linker list.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtb_platdata.py
tools/dtoc/test_dtoc.py