summaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-10 03:39:40 +0300
committerSimon Glass <sjg@chromium.org>2020-07-25 23:46:57 +0300
commitb1cca9552c6c930d094806a64b2096411783d13f (patch)
treec4389d3fe703f83e8f951b63be919bb802bc8e67 /tools/binman/entry.py
parent38fdb4cb35e9260a6aa78ffcfa68d39bfc3523de (diff)
downloadu-boot-b1cca9552c6c930d094806a64b2096411783d13f.tar.xz
binman: Detect when valid images are not produced
When external blobs are missing, show a message indicating that the images are not functional. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index 9388586e7c..3434a3f804 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -84,6 +84,7 @@ class Entry(object):
self.image_pos = None
self._expand_size = False
self.compress = 'none'
+ self.missing = False
@staticmethod
def Lookup(node_path, etype):
@@ -803,3 +804,14 @@ features to produce new behaviours.
"""
# This is meaningless for anything other than sections
pass
+
+ def CheckMissing(self, missing_list):
+ """Check if any entries in this section have missing external blobs
+
+ If there are missing blobs, the entries are added to the list
+
+ Args:
+ missing_list: List of Entry objects to be added to
+ """
+ if self.missing:
+ missing_list.append(self)