u-boot/tools/dtoc
Simon Glass 170732523b dtoc: Correct dtoc output when testing
At present each invocation of run_steps() updates OUTPUT_FILES_COMMON,
since it does not make a copy of the dict. This is fine for a single
invocation, but for tests, run_steps() is invoked many times.

As a result it may include unwanted items from the previous run, if it
happens that a test runs twice on the same CPU. The problem has not been
noticied previously, as there are few enough tests and enough CPUs that
is is rare for the 'wrong' combination of tests to run together.

Fix this by making a copy of the dict, before updating it. Update the
tests to suit, taking account of the files that are no-longer generated.

With this fix, we no-longer generate files which are not needed for a
particular state of OF_PLATDATA_INST, so the check_instantiate() function
is not needed anymore. It has become dead code and so fails the
code-coverage test (dtoc -T). Remove it.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-04-29 03:23:37 -07:00
..
test dtoc: Improve handling of reg properties 2021-04-06 16:33:19 +12:00
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dtoc: Correct dtoc output when testing 2021-04-29 03:23:37 -07:00
dtoc dtoc: Rename the main module 2020-04-26 14:25:21 -06:00
fdt.py dtoc: Add new check that offsets are correct 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: Show driver warnings once at the end 2021-04-06 16:33:19 +12:00
test_dtoc.py dtoc: Correct dtoc output when testing 2021-04-29 03:23:37 -07:00
test_fdt dtoc: Add some tests for the fdt module 2018-07-09 09:11:00 -06:00
test_fdt.py dtoc: Add new check that offsets are correct 2021-03-27 16:26:48 +13:00
test_src_scan.py dtoc: Show driver warnings once at the end 2021-04-06 16:33:19 +12:00