aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/etype/_testing.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-09 18:39:31 -0600
committerSimon Glass <sjg@chromium.org>2020-07-20 11:37:47 -0600
commit3e8fba4cd41a3b324dffe921f9cd311e41f77a22 (patch)
tree8ed6eb1dc94b57335e2634334e45dd48f5bf6ef0 /tools/binman/etype/_testing.py
parentce774e94de7009be0039ee02ca75f93d33a285a9 (diff)
downloadu-boot-3e8fba4cd41a3b324dffe921f9cd311e41f77a22.zip
u-boot-3e8fba4cd41a3b324dffe921f9cd311e41f77a22.tar.gz
u-boot-3e8fba4cd41a3b324dffe921f9cd311e41f77a22.tar.bz2
binman: Add support for calling mkimage
As a first step to integrating mkimage into binman, add a new entry type that feeds data into mkimage for processing and incorporates that output into the image. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/_testing.py')
-rw-r--r--tools/binman/etype/_testing.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/etype/_testing.py b/tools/binman/etype/_testing.py
index ed718ee..ea60561 100644
--- a/tools/binman/etype/_testing.py
+++ b/tools/binman/etype/_testing.py
@@ -57,6 +57,8 @@ class Entry__testing(Entry):
'return-contents-once')
self.bad_update_contents_twice = fdt_util.GetBool(self._node,
'bad-update-contents-twice')
+ self.return_contents_later = fdt_util.GetBool(self._node,
+ 'return-contents-later')
# Set to True when the entry is ready to process the FDT.
self.process_fdt_ready = False
@@ -83,6 +85,9 @@ class Entry__testing(Entry):
def ObtainContents(self):
if self.return_unknown_contents or not self.return_contents:
return False
+ if self.return_contents_later:
+ self.return_contents_later = False
+ return False
self.data = self.contents
self.contents_size = len(self.data)
if self.return_contents_once: