dtoc: Support copying the contents of a node into another
authorSimon Glass <sjg@chromium.org>
Tue, 18 Jul 2023 13:24:02 +0000 (07:24 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 20 Jul 2023 20:10:58 +0000 (14:10 -0600)
commit4df457b657b6d0c10031ab4b1eb414e3ea6c3819
tree2c8775b511cfe0d7cf609584b792267556a0e741
parente1ad57e7ef6e17fb6f55bf70fff61bfd93703b78
dtoc: Support copying the contents of a node into another

This permits implementation of a simple templating system, where a node
can be reused as a base for others.

For now this adds new subnodes after any existing ones.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt.py
tools/dtoc/test/dtoc_test_copy.dts [new file with mode: 0644]
tools/dtoc/test_fdt.py