u-boot/tools/dtoc
Simon Glass 439c947f32 dtoc: Handle nodes with phandles that depend on the same
At present dtoc assumes that nodes which are phandles do not themselves
reference other phandle nodes. Unfortunately this is not necessarilly
true. As a result we can currently output C code which does not compile
because a node declaration can be referenced before it is declared.

Adjust the code to explicitly output all phandle nodes needed by node
before the node itself is output.

This fixes building with the latest rk3399-firefly.dts from Linux, which
has reordered the nodes.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
2017-05-10 13:37:21 -06:00
..
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtoc dm: Add a tool to generate C code from a device tree 2016-07-14 20:40:24 -06:00
dtoc.py dtoc: Handle nodes with phandles that depend on the same 2017-05-10 13:37:21 -06:00
fdt.py dtoc: Support finding the offset of a property 2016-09-18 21:04:39 -06:00
fdt_fallback.py dtoc: Use items() to iterate over dictionaries in python 3.x 2016-10-09 09:30:32 -06:00
fdt_normal.py dtoc: Adjust GetProps() in fdt_normal to use the node path 2016-10-09 09:30:32 -06:00
fdt_select.py dtoc: Add a way for tests to request the fallback library 2016-10-09 09:30:32 -06:00
fdt_util.py dtoc: Decode val if it's a byte string 2017-04-13 11:43:49 -06:00