aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-21 18:24:31 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 16:26:48 +1300
commit189f291914cb867f8782d7224a1073d6e17fc800 (patch)
treef848d1a376d44180ce736afba75c34bc0f2b4b67 /tools/binman/entry.py
parent3d4333829388db834e6f0945bbefc837da590d78 (diff)
downloadu-boot-189f291914cb867f8782d7224a1073d6e17fc800.zip
u-boot-189f291914cb867f8782d7224a1073d6e17fc800.tar.gz
u-boot-189f291914cb867f8782d7224a1073d6e17fc800.tar.bz2
binman: Add support for a collection of entries
The vblock entry type includes code to collect the data from a number of other entries (not necessarily subentries) and concatenating it. This is a useful feature for other entry types. Make it a base class, so that vblock can use it, along with other entry types. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index ac25986..a157038 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -438,6 +438,11 @@ class Entry(object):
"""Convenience function to raise an error referencing a node"""
raise ValueError("Node '%s': %s" % (self._node.path, msg))
+ def Info(self, msg):
+ """Convenience function to log info referencing a node"""
+ tag = "Info '%s'" % self._node.path
+ tout.Detail('%30s: %s' % (tag, msg))
+
def Detail(self, msg):
"""Convenience function to log detail referencing a node"""
tag = "Node '%s'" % self._node.path