dtoc: Add new check that offsets are correct
authorSimon Glass <sjg@chromium.org>
Sun, 21 Mar 2021 05:24:39 +0000 (18:24 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 03:26:48 +0000 (16:26 +1300)
commit5d1bec30efcd1d0e74643a54a348718e8f79fc92
tree6ed549e1dcd9dde372b6d379267b93ac18663dd9
parentf6176651bc1bad080d0512aeeed438e8763b951b
dtoc: Add new check that offsets are correct

Add a few more internal checks to make sure offsets are correct, before
updating the dtb.

To make this easier, update the functions which add a property to return
that property,.

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