[PATCH 04/49] dtoc: Allow providing a directory to write files to

Simon Glass sjg at chromium.org
Wed Jan 6 16:13:11 CET 2021


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 at chromium.org>
---

 tools/dtoc/dtb_platdata.py |  8 ++++++--
 tools/dtoc/main.py         |  7 ++++++-
 tools/dtoc/test_dtoc.py    | 14 +++++++-------
 3 files changed, 19 insertions(+), 10 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list