]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Fix Fdt.GetNode() to handle a missing node
authorSimon Glass <sjg@chromium.org>
Fri, 6 Jul 2018 16:27:30 +0000 (10:27 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Jul 2018 15:11:00 +0000 (09:11 -0600)
commitdf99373b2e5adc6597ff4a40a1925bf0f9dfe2db
treec844c67822e6a8d9168a305d6186e51d52fde0a3
parent08ac7a7503d7185e42a24b621cd1879798fa854d
dtoc: Fix Fdt.GetNode() to handle a missing node

At present the algortihm is not correct since it will return the root node
if the requested node is not found and there are no slashes in the
requested node name. Fix this and add a test.

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