aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc/main.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-28 20:34:52 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:26:35 -0700
commit10cbd3b7da12e993c67d56182d30294661a93619 (patch)
treea9df90772211c49e5471b921baaed03f86b6167c /tools/dtoc/main.py
parentbe44f27156bf46807049a0e1c303626d05f781f8 (diff)
downloadu-boot-10cbd3b7da12e993c67d56182d30294661a93619.zip
u-boot-10cbd3b7da12e993c67d56182d30294661a93619.tar.gz
u-boot-10cbd3b7da12e993c67d56182d30294661a93619.tar.bz2
dtoc: Add an 'all' command
With upcoming changes, dtoc will output several files for different of-platdata components. Add a way to output all ava!ilable files at once ('all'), to the appropriate directories, without needing to specify each one invidually. This puts the commands in alphabetical order, so update the tests accordingly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/main.py')
-rwxr-xr-xtools/dtoc/main.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/dtoc/main.py b/tools/dtoc/main.py
index 244c184..f82ee78 100755
--- a/tools/dtoc/main.py
+++ b/tools/dtoc/main.py
@@ -13,11 +13,7 @@ having to link against libfdt. By putting the data from the device tree into
C structures, normal C code can be used. This helps to reduce the size of the
compiled program.
-Dtoc produces two output files:
-
- dt-structs.h - contains struct definitions
- dt-platdata.c - contains data from the device tree using the struct
- definitions, as well as U-Boot driver definitions.
+Dtoc produces several output files - see OUTPUT_FILES in dtb_platdata.py
This tool is used in U-Boot to provide device tree data to SPL without
increasing the code size of SPL. This supports the CONFIG_SPL_OF_PLATDATA