diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:28 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-29 11:49:35 -0600 |
commit | 0a98b28b06800da48f006069fe14e47dd399d2ff (patch) | |
tree | 1646d2600d0b6e8ba7459695db082bc7f345d9b6 /tools/binman/bsection.py | |
parent | b4e1a38c294f56708d1a82717c850da359401d7e (diff) | |
download | u-boot-0a98b28b06800da48f006069fe14e47dd399d2ff.tar.gz |
binman: Support adding files
In some cases it is useful to add a group of files to the image and be
able to access them at run-time. Of course it is possible to generate
the binman config file with a set of blobs each with a filename. But for
convenience, add an entry type which can do this.
Add required support (for adding nodes and string properties) into the
state module.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/bsection.py')
-rw-r--r-- | tools/binman/bsection.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/binman/bsection.py b/tools/binman/bsection.py index 1c37d84e99..4bf206878d 100644 --- a/tools/binman/bsection.py +++ b/tools/binman/bsection.py @@ -103,6 +103,10 @@ class Section(object): def SetOffset(self, offset): self._offset = offset + def ExpandEntries(self): + for entry in self._entries.values(): + entry.ExpandEntries() + def AddMissingProperties(self): """Add new properties to the device tree as needed for this entry""" for prop in ['offset', 'size', 'image-pos']: |