[PATCH v2 08/11] binman: Allow FITs to be missing binaries
Simon Glass
sjg at chromium.org
Mon Aug 31 01:20:13 CEST 2020
In some cases a FIT may use an external binary that is not available.
Handle this case by issuing a warning, as is done for sections.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Add new patch to allow FITs to be missing binaries
tools/binman/etype/fit.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py
index d31b741a623..bfea02a152b 100644
--- a/tools/binman/etype/fit.py
+++ b/tools/binman/etype/fit.py
@@ -244,3 +244,15 @@ class Entry_fit(Entry):
fdt.Sync(auto_resize=True)
data = fdt.GetContents()
return data
+
+ def CheckMissing(self, missing_list):
+ """Check if any entries in this FIT 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 path, entries in self._fit_content.items():
+ for entry in entries:
+ entry.CheckMissing(missing_list)
--
2.28.0.402.g5ffc5be6b7-goog
More information about the U-Boot
mailing list