aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-17 13:25:38 -0600
committerSimon Glass <sjg@chromium.org>2018-08-01 16:30:48 -0600
commit11e36ccea174043229319263f9d0b5b7f7cca654 (patch)
treeae97c27416a1f44cf45da09364480818784e4eea /tools/binman/entry.py
parent5a5da7ce153b19bc3106e0bdb625b2e211852914 (diff)
downloadu-boot-11e36ccea174043229319263f9d0b5b7f7cca654.zip
u-boot-11e36ccea174043229319263f9d0b5b7f7cca654.tar.gz
u-boot-11e36ccea174043229319263f9d0b5b7f7cca654.tar.bz2
binman: Add support for flashrom FMAP
Add an entry which can hold an FMAP region as used by flashrom, an open-source flashing tool used on Linux x86 machines. This provides a simplified non-hierarchical view of the entries in the image and has a signature at the start to allow flashrom to find it in the image. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index dc09b81..8b910fe 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -361,6 +361,15 @@ class Entry(object):
"""
self.WriteMapLine(fd, indent, self.name, self.offset, self.size)
+ def GetEntries(self):
+ """Return a list of entries contained by this entry
+
+ Returns:
+ List of entries, or None if none. A normal entry has no entries
+ within it so will return None
+ """
+ return None
+
def GetArg(self, name, datatype=str):
"""Get the value of an entry argument or device-tree-node property