diff options
author | Simon Glass <sjg@chromium.org> | 2020-09-06 19:39:09 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-09-22 21:54:13 +0300 |
commit | b238143db92e6f3b1749ffdb346e90aa1a95454a (patch) | |
tree | 5fbadc1fdefbfab0925782d0b6b2dbcb9aa2aa1c /tools/binman/entry.py | |
parent | c0f1ebe9c1b9745e1cbdc742a11093da2c99a174 (diff) | |
download | u-boot-b238143db92e6f3b1749ffdb346e90aa1a95454a.tar.xz |
binman: Support help messages for missing blobs
When an external blob is missing it can be quite confusing for the user.
Add a way to provide a help message that is shown.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 0f128c4cf5..f7adc3b1ab 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -178,6 +178,7 @@ class Entry(object): self.align_end = fdt_util.GetInt(self._node, 'align-end') self.offset_unset = fdt_util.GetBool(self._node, 'offset-unset') self.expand_size = fdt_util.GetBool(self._node, 'expand-size') + self.missing_msg = fdt_util.GetString(self._node, 'missing-msg') def GetDefaultFilename(self): return None @@ -827,3 +828,11 @@ features to produce new behaviours. True if allowed, False if not allowed """ return self.allow_missing + + def GetHelpTags(self): + """Get the tags use for missing-blob help + + Returns: + list of possible tags, most desirable first + """ + return list(filter(None, [self.missing_msg, self.name, self.etype])) |