From c49deb837cb1ba0a64869fcb4fabac11d3e94ae0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 25 Nov 2016 20:15:54 -0700 Subject: binman: Add support for u-boot.img as an input binary Add an entry type for u-boot.img (a legacy U-Boot image) and a simple test. Signed-off-by: Simon Glass Tested-by: Bin Meng --- tools/binman/func_test.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/binman/func_test.py') diff --git a/tools/binman/func_test.py b/tools/binman/func_test.py index 341957b59f0..8dd118b7c2a 100644 --- a/tools/binman/func_test.py +++ b/tools/binman/func_test.py @@ -713,3 +713,8 @@ class TestFunctional(unittest.TestCase): first = data[:len(U_BOOT_NODTB_DATA)] self.assertEqual('nodtb with microcode' + pos_and_size + ' somewhere in here', first) + + def testUBootImg(self): + """Test that u-boot.img can be put in a file""" + data = self._DoReadFile('36_u_boot_img.dts') + self.assertEqual(U_BOOT_IMG_DATA, data) -- cgit v1.2.3