Leave the 'expand' term for use by entry types which have an expanded
version of themselves. Rename this method to indicate that it generates
subentries.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
# entry offsets remain the same.
for image in images.values():
image.CollectBintools()
# entry offsets remain the same.
for image in images.values():
image.CollectBintools()
if update_fdt:
image.AddMissingProperties(True)
image.ProcessFdt(dtb)
if update_fdt:
image.AddMissingProperties(True)
image.ProcessFdt(dtb)
- def ExpandEntries(self):
- """Expand out entries which produce other entries
+ def gen_entries(self):
+ """Allow entries to generate other entries
Some entries generate subnodes automatically, from which sub-entries
are then created. This method allows those to be added to the binman
Some entries generate subnodes automatically, from which sub-entries
are then created. This method allows those to be added to the binman
self.dtb_file = dtb_file
self.bss_pad = bss_pad
self.dtb_file = dtb_file
self.bss_pad = bss_pad
- def ExpandEntries(self):
"""Create the subnodes"""
names = [self.root_fname + '-nodtb', self.root_fname + '-dtb']
if self.bss_pad:
"""Create the subnodes"""
names = [self.root_fname + '-nodtb', self.root_fname + '-dtb']
if self.bss_pad:
self._require_matches = fdt_util.GetBool(self._node,
'require-matches')
self._require_matches = fdt_util.GetBool(self._node,
'require-matches')
- def ExpandEntries(self):
files = tools.get_input_filename_glob(self._pattern)
if self._require_matches and not files:
self.Raise("Pattern '%s' matched no files" % self._pattern)
files = tools.get_input_filename_glob(self._pattern)
if self._require_matches and not files:
self.Raise("Pattern '%s' matched no files" % self._pattern)
- def ExpandEntries(self):
- super().ExpandEntries()
+ def gen_entries(self):
+ super().gen_entries()
for entry in self._entries.values():
for entry in self._entries.values():
def AddMissingProperties(self, have_image_pos):
"""Add new properties to the device tree as needed for this entry"""
def AddMissingProperties(self, have_image_pos):
"""Add new properties to the device tree as needed for this entry"""