summaryrefslogtreecommitdiff
path: root/tools/binman/image.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:24 -0600
committerSimon Glass <sjg@chromium.org>2018-09-28 11:09:01 -0600
commit6ed45ba0a831393ab6c5d3355384238d2b4f47da (patch)
treebed509d46fc12e537b381c813b4020030a68450c /tools/binman/image.py
parent93d174135ac44cbbe81c87ea564488309949e6d4 (diff)
binman: Support updating all device tree files
Binman currently supports updating the main device tree with things like the position of each entry. Extend this support to SPL and TPL as well, since they may need (a subset of) this information. Also adjust DTB output files to have a .out extension since this seems clearer than having a .dtb extension with 'out' in the name somwhere. Also add a few missing comments and update the DT setup code to use ReadFile and WriteFile(). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/image.py')
-rw-r--r--tools/binman/image.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/image.py b/tools/binman/image.py
index 1fb5eb65db..bfb2229779 100644
--- a/tools/binman/image.py
+++ b/tools/binman/image.py
@@ -70,6 +70,11 @@ class Image:
self._section.AddMissingProperties()
def ProcessFdt(self, fdt):
+ """Allow entries to adjust the device tree
+
+ Some entries need to adjust the device tree for their purposes. This
+ may involve adding or deleting properties.
+ """
return self._section.ProcessFdt(fdt)
def GetEntryContents(self):