diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-06 10:27:42 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 09:11:00 -0600 |
commit | 16b8d6b76992690c65c58dc8b0591496cc5e46ef (patch) | |
tree | 193945e290312a24554291be13545d13546c4155 /tools/binman/control.py | |
parent | 078ab1a2f5a9901f5f9983163d4f98b8d94bfda0 (diff) | |
download | u-boot-16b8d6b76992690c65c58dc8b0591496cc5e46ef.tar.gz |
binman: Support updating the device tree with calc'd info
It is useful to write the position and size of each entry back to the
device tree so that U-Boot can access this at runtime. Add a feature to
support this, along with associated tests.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r-- | tools/binman/control.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index eafabf05c7..a40b300fda 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -168,6 +168,8 @@ def Binman(options, args): image.BuildImage() if options.map: image.WriteMap() + with open(fname, 'wb') as outfd: + outfd.write(dtb.GetContents()) finally: tools.FinaliseOutputDir() finally: |