summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-06-01 09:38:11 -0600
committerSimon Glass <sjg@chromium.org>2018-06-07 11:25:07 -0800
commitdd57c13bbc28df6f1bc849ec55d1703f4ca0398e (patch)
tree28401cbca4c07d4cde33fc1944a100c46378fd92 /tools/binman/ftest.py
parent48ae412424ddfda64f45a9d679a960357e57433e (diff)
downloadu-boot-dd57c13bbc28df6f1bc849ec55d1703f4ca0398e.tar.gz
binman: Allow unit addresses for binaries
Allow the same binary to appear multiple times in an image by using the device-tree unit-address feature (u-boot@0, u-boot@1). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index a3abbc4b84..b5e8736fbb 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -909,6 +909,11 @@ class TestFunctional(unittest.TestCase):
sym_values + U_BOOT_SPL_DATA[16:])
self.assertEqual(expected, data)
+ def testPackUnitAddress(self):
+ """Test that we support multiple binaries with the same name"""
+ data = self._DoReadFile('54_unit_address.dts')
+ self.assertEqual(U_BOOT_DATA + U_BOOT_DATA, data)
+
if __name__ == "__main__":
unittest.main()