u-boot/tools/dtoc
Simon Glass 71719e15e8 dtoc: Tweak ordering of fdt-offsets refreshing
Once the tree has been synced, thus potentially moving things around in the
fdt, we set _cached_offsets to False so that a refresh will happen next
time a property is accessed.

This 'lazy' refresh doesn't really save much time, since refresh is a very
fast operation, just a single walk of the tree. Also, having the refresh
happen in the bowels of property access it makes it harder to figure out
what is going on.

Simplify the code by always doing a refresh before and after a sync. Set
_cached_offsets to True immediately after this, in the Refresh() function,
since this makes more sense than doing it in the caller.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-03-27 16:26:48 +13:00
..
test dtoc: Read aliases for uclasses 2021-03-22 19:23:27 +13:00
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dtoc: Only generate the required files 2021-03-26 17:03:08 +13:00
dtoc dtoc: Rename the main module 2020-04-26 14:25:21 -06:00
fdt.py dtoc: Tweak ordering of fdt-offsets refreshing 2021-03-27 16:26:48 +13:00
fdt_util.py binman: Use target-specific tools when cross-compiling 2020-09-22 12:54:13 -06:00
main.py dtoc: Add an option for device instantiation 2021-03-22 19:23:27 +13:00
setup.py dtoc: Add a setup script for Python 2020-08-22 08:53:38 -06:00
src_scan.py dtoc: Support processing the root node 2021-03-22 19:23:27 +13:00
test_dtoc.py dtoc: Only generate the required files 2021-03-26 17:03:08 +13:00
test_fdt dtoc: Add some tests for the fdt module 2018-07-09 09:11:00 -06:00
test_fdt.py dtoc: Improve internal error for Refresh() 2021-03-27 16:26:48 +13:00
test_src_scan.py dtoc: Support processing the root node 2021-03-22 19:23:27 +13:00