summaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-08-02 00:22:42 +0300
committerSimon Glass <sjg@chromium.org>2018-08-02 01:30:45 +0300
commitdbf6be9f7f3b650ae5248eb7e2c00e94b4da867c (patch)
tree4b2bb2ba21e04668b24117c72e62eaa5fa39d8a7 /tools/binman/control.py
parent8122f3967f6eaab7134051d1d8c9b1bfc3babadb (diff)
downloadu-boot-dbf6be9f7f3b650ae5248eb7e2c00e94b4da867c.tar.xz
binman: Add a new 'image-pos' property
At present each entry has an offset within its parent section. This is useful for figuring out how entries relate to one another. However it is sometimes necessary to locate an entry within an image, regardless of which sections it is nested inside. Add a new 'image-pos' property to provide this information. Also add some documentation for the -u option binman provides, which updates the device tree with final entry information. Since the image position is a better symbol to use for the position of U-Boot as obtained by SPL, update the SPL symbols to use this instead of offset, which might be incorrect if hierarchical sections are used. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 17c6d7a2d2..9ac392b7e5 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -161,6 +161,7 @@ def Binman(options, args):
image.PackEntries()
image.CheckSize()
image.CheckEntries()
+ image.SetImagePos()
if options.update_fdt:
image.SetCalculatedProperties()
image.ProcessEntryContents()