dtoc: Allow providing a directory to write files to
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2020 03:34:50 +0000 (20:34 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:26:35 +0000 (12:26 -0700)
commit192c111cfce0684fa1cbbd4a4bd3df03720ef7a6
tree05ad27a45dc1fce7b6821a9b763bd91c09cd2e35
parentde846cbb307486a1533dcf4d5c28568412149ddb
dtoc: Allow providing a directory to write files to

At present dtoc writes only a single file on each invocation. U-Boot
writes the two files it needs by separate invocations of dtoc. Since dtoc
now scans all U-Boot driver source, this is fairly slow (about 1 second
per file).

It would be better if dtoc could write all the files at once.

In preparation for this, add a way to specify an output directory for the
files.

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