summaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-06 10:27:40 -0600
committerSimon Glass <sjg@chromium.org>2018-07-09 09:11:00 -0600
commitecab89737a4eb58c043388b1ca1c0f1dfdaa3346 (patch)
treee4cdc99478b084d017cb359f2025e7e2d7088ef3 /tools/binman/entry.py
parent0a4357c4c2b29d787d70775dd6ad64b50e23082a (diff)
binman: Add a ProcessFdt() method
Some entry types modify the device tree, e.g. to remove microcode or add a property. So far this just modifies their local copy and does not affect a 'shared' device tree. Rather than doing this modification in the ObtainContents() method, and a new ProcessFdt() method which is specifically designed to modify this shared device tree. Move the existing device-tree code over to use this method, reducing ObtainContents() to the goal of just obtaining the contents without any processing, even for device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index 303c992e37..62e65c9126 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -130,6 +130,9 @@ class Entry(object):
self.align_end = fdt_util.GetInt(self._node, 'align-end')
self.pos_unset = fdt_util.GetBool(self._node, 'pos-unset')
+ def ProcessFdt(self, fdt):
+ return True
+
def SetPrefix(self, prefix):
"""Set the name prefix for a node