diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-10 03:39:40 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-20 20:37:47 +0300 |
commit | 13262c93626502873786067fcbe2e2ab5894b90f (patch) | |
tree | f4d6cdfb02fcfbec1bac60d33f11ef8e0e430f83 /tools/binman/etype/section.py | |
parent | f9793a12c5e76c50018d516cbaa011ac86c285fa (diff) | |
download | u-boot-13262c93626502873786067fcbe2e2ab5894b90f.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/etype/section.py')
-rw-r--r-- | tools/binman/etype/section.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index 9b718f1fa7..dd7f1ccd09 100644 --- a/tools/binman/etype/section.py +++ b/tools/binman/etype/section.py @@ -55,6 +55,7 @@ class Entry_section(Entry): self._skip_at_start = None self._end_4gb = False self._allow_missing = False + self.missing = False def ReadNode(self): """Read properties from the image node""" @@ -559,3 +560,14 @@ class Entry_section(Entry): True if allowed, False if not allowed """ return self._allow_missing + + 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 + """ + for entry in self._entries.values(): + entry.CheckMissing(missing_list) |