]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Allow deleting nodes and adding them in the same sync
authorSimon Glass <sjg@chromium.org>
Tue, 8 Feb 2022 18:49:52 +0000 (11:49 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Feb 2022 17:05:44 +0000 (10:05 -0700)
commitfd43b0e706426a2f801029a317bc4dce13043da3
tree7139166fb02e711844068a3f2ccf63b2d2402273
parent25a516550e24128e016bbe13186118b1b5f3a3c6
dtoc: Allow deleting nodes and adding them in the same sync

This does not work at present, since the current algorithm assumes that
either there are no nodes or all nodes have an offset. If a node is new,
but an old node is still in the tree, then syncing fails due to this
assumption.

Fix it and add a test.

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