diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-17 22:25:39 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-08-02 01:30:48 +0300 |
commit | ec127af0429ad6f9818297f9c3ee77edb2154182 (patch) | |
tree | 4a4f1425abc9d36139844d53811dd8af7db653a0 /tools/binman/ftest.py | |
parent | 11e36ccea174043229319263f9d0b5b7f7cca654 (diff) | |
download | u-boot-ec127af0429ad6f9818297f9c3ee77edb2154182.tar.xz |
binman: Add support for a cros_ec image
Add an entry type which can hold a Chrome OS EC.
To make this work a new entry type is created, which supports getting a
blob filename from the command line.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index bd4de4e287..5428ee651a 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -46,6 +46,8 @@ MRC_DATA = 'mrc' TEXT_DATA = 'text' TEXT_DATA2 = 'text2' TEXT_DATA3 = 'text3' +CROS_EC_RW_DATA = 'ecrw' + class TestFunctional(unittest.TestCase): """Functional tests for binman @@ -92,6 +94,7 @@ class TestFunctional(unittest.TestCase): TestFunctional._MakeInputFile('cmc.bin', CMC_DATA) TestFunctional._MakeInputFile('vbt.bin', VBT_DATA) TestFunctional._MakeInputFile('mrc.bin', MRC_DATA) + TestFunctional._MakeInputFile('ecrw.bin', CROS_EC_RW_DATA) self._output_setup = False # ELF file with a '_dt_ucode_base_size' symbol @@ -1224,6 +1227,14 @@ class TestFunctional(unittest.TestCase): fmap_util.FMAP_AREA_LEN * 3, fentries[2].size) self.assertEqual('FMAP', fentries[2].name) + def testBlobNamedByArg(self): + """Test we can add a blob with the filename coming from an entry arg""" + entry_args = { + 'cros-ec-rw-path': 'ecrw.bin', + } + data, _, _, _ = self._DoReadFileDtb('68_blob_named_by_arg.dts', + entry_args=entry_args) + if __name__ == "__main__": unittest.main() |