summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 21:24:08 +0300
committerSimon Glass <sjg@chromium.org>2019-07-29 18:38:06 +0300
commitf6e02497ae063b7939b0670153d22a7b17bf4408 (patch)
tree4092ea48dfe2cd52cd9280dad8baf907df9f22a2 /tools/dtoc/fdt.py
parent313533018dc175a5552a8ccac9d6bcd780e824df (diff)
downloadu-boot-f6e02497ae063b7939b0670153d22a7b17bf4408.tar.xz
binman: Update state when replacing device-tree entries
Since the state module holds references to all the device trees used by binman, it must be updated when the device trees are updated. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index cd7673c7da..6770be79fb 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -695,6 +695,14 @@ class Fdt:
node = Node(fdt, parent, offset, name, path)
return node
+ def GetFilename(self):
+ """Get the filename of the device tree
+
+ Returns:
+ String filename
+ """
+ return self._fname
+
def FdtScan(fname):
"""Returns a new Fdt object"""
dtb = Fdt(fname)