aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/ftest.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/ftest.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/ftest.py')
-rw-r--r--tools/binman/ftest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 5e24920..39e67b9 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -3357,6 +3357,13 @@ class TestFunctional(unittest.TestCase):
data = self._DoReadFile('154_intel_fsp_t.dts')
self.assertEqual(FSP_T_DATA, data[:len(FSP_T_DATA)])
+ def testMkimage(self):
+ """Test using mkimage to build an image"""
+ data = self._DoReadFile('156_mkimage.dts')
+
+ # Just check that the data appears in the file somewhere
+ self.assertIn(U_BOOT_SPL_DATA, data)
+
if __name__ == "__main__":
unittest.main()