diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-18 16:23:59 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-07-20 23:10:58 +0300 |
commit | b1e40ee73421018a42000e3d462708625c73a48f (patch) | |
tree | 25fcfe84e387257106a9dc26ff11c65dbded5611 /tools/binman/etype/fit.py | |
parent | fadad3a64a12cf279d31088aebc45806ec86fb4e (diff) | |
download | u-boot-b1e40ee73421018a42000e3d462708625c73a48f.tar.xz |
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/etype/fit.py')
-rw-r--r-- | tools/binman/etype/fit.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index c395706ece..ef4d066757 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -81,6 +81,12 @@ class Entry_fit(Entry_section): `of-list` meaning that `-a of-list="dtb1 dtb2..."` should be passed to binman. + fit,fdt-list-val + As an alternative to fit,fdt-list the list of device tree files + can be provided in this property as a string list, e.g.:: + + fit,fdt-list-val = "dtb1", "dtb2"; + Substitutions ~~~~~~~~~~~~~ @@ -361,6 +367,9 @@ class Entry_fit(Entry_section): [EntryArg(self._fit_list_prop.value, str)]) if fdts is not None: self._fdts = fdts.split() + else: + self._fdts = fdt_util.GetStringList(self._node, 'fit,fdt-list-val') + self._fit_default_dt = self.GetEntryArgsOrProps([EntryArg('default-dt', str)])[0] |