summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-18 07:23:59 -0600
committerSimon Glass <sjg@chromium.org>2023-07-20 14:10:58 -0600
commitb1e40ee73421018a42000e3d462708625c73a48f (patch)
tree25fcfe84e387257106a9dc26ff11c65dbded5611 /tools/binman/ftest.py
parentfadad3a64a12cf279d31088aebc45806ec86fb4e (diff)
binman: Provide a way to specify the fdt-list directly
Sometimes multiple boards are built with binman and it is useful to specify a different FDT list for each. At present this is not possible without providing multiple values of the of-list entryarg (which is not supported in the U-Boot build system). Allow a fit,fdt-list-val string-list property to be used instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index db348de7222..ed1940ed9f7 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -6761,6 +6761,18 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
# Just check that the data appears in the file somewhere
self.assertIn(U_BOOT_DATA, data)
+ def testFitFdtList(self):
+ """Test an image with an FIT with the fit,fdt-list-val option"""
+ entry_args = {
+ 'default-dt': 'test-fdt2',
+ }
+ data = self._DoReadFileDtb(
+ '284_fit_fdt_list.dts',
+ entry_args=entry_args,
+ extra_indirs=[os.path.join(self._indir, TEST_FDT_SUBDIR)])[0]
+ self.assertEqual(U_BOOT_NODTB_DATA, data[-len(U_BOOT_NODTB_DATA):])
+ fit_data = data[len(U_BOOT_DATA):-len(U_BOOT_NODTB_DATA)]
+
if __name__ == "__main__":
unittest.main()