]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Save scan information across test runs
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:00:51 +0000 (06:00 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
commit972ea24c72b2643a4dbd74b19acb946f17d5ec4b
treeb495bb80200c9e553df3b4d88731139628837c81
parent3737a0beb397f4752ab2af32decfe6bd6298f285
dtoc: Save scan information across test runs

At present most of the tests scan the U-Boot source tree as part of their
run. This information does not change across tests, so we can save time
by remembering it.

Add a way to set up this information and use it for each test, taking a
copy first, so as not to mess up the original.

This reduces the run time from about 1.6 seconds to 1.5 seconds on my
machine. For code coverage (which cannot run in parallel), it reduces from
33 seconds to 5.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtb_platdata.py
tools/dtoc/main.py
tools/dtoc/test_dtoc.py