aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-06 10:27:42 -0600
committerSimon Glass <sjg@chromium.org>2018-07-09 09:11:00 -0600
commit16b8d6b76992690c65c58dc8b0591496cc5e46ef (patch)
tree193945e290312a24554291be13545d13546c4155 /tools/binman/control.py
parent078ab1a2f5a9901f5f9983163d4f98b8d94bfda0 (diff)
downloadu-boot-16b8d6b76992690c65c58dc8b0591496cc5e46ef.zip
u-boot-16b8d6b76992690c65c58dc8b0591496cc5e46ef.tar.gz
u-boot-16b8d6b76992690c65c58dc8b0591496cc5e46ef.tar.bz2
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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index eafabf0..a40b300 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: