diff options
author | Paul HENRYS <paul.henrys_ext@softathome.com> | 2024-11-25 19:16:54 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-19 09:10:34 -0600 |
commit | e7d7d3307c6109f2bec5dd5ba779996dd891348d (patch) | |
tree | 9f9595f90f31df739d496f2f460b7142d7f9d939 /tools/binman/ftest.py | |
parent | c7896b3e4892c9b5b5fb723c7f042b9b28e73af0 (diff) |
tools: binman: etype: fit: Append DTB directory to the list of input directories
When specifying a directory containing DTBs with 'fit,fdt-list-dir', it can be
handy not to have to also specify this directory to the input directories of
binman with '-I' option and use the method tools.append_input_dirs() append it.
This avoids to have to specify the DTB directory in both the device tree
provided to binman and through '-I' option to binman.
Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 4a2a9f22885..a553ca9e564 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -4285,14 +4285,17 @@ class TestFunctional(unittest.TestCase): entry_args = { 'default-dt': 'test-fdt2', } + extra_indirs = None if use_fdt_list: entry_args['of-list'] = 'test-fdt1 test-fdt2' if default_dt: entry_args['default-dt'] = default_dt + if use_fdt_list: + extra_indirs = [os.path.join(self._indir, TEST_FDT_SUBDIR)] data = self._DoReadFileDtb( dts, entry_args=entry_args, - extra_indirs=[os.path.join(self._indir, TEST_FDT_SUBDIR)])[0] + extra_indirs=extra_indirs)[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)] |