diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-18 20:24:52 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-26 17:03:09 +1300 |
commit | a01d1a25bcd7b22bdb16a8fd0583df0d41db3054 (patch) | |
tree | bd936e485c3239e1560136f8f4faca80807386c7 /tools/binman/entry.py | |
parent | 862ddf91002c31dcca7bd8f2712a98b71de01de8 (diff) | |
download | u-boot-a01d1a25bcd7b22bdb16a8fd0583df0d41db3054.zip u-boot-a01d1a25bcd7b22bdb16a8fd0583df0d41db3054.tar.gz u-boot-a01d1a25bcd7b22bdb16a8fd0583df0d41db3054.tar.bz2 |
binman: Document ExpandEntries() in the base class
Move the documentation to the base method as it is with other methods.
Also update it a little while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index d58a730..507760e 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -211,6 +211,17 @@ class Entry(object): return {} def ExpandEntries(self): + """Expand out entries which produce other entries + + Some entries generate subnodes automatically, from which sub-entries + are then created. This method allows those to be added to the binman + definition for the current image. An entry which implements this method + should call state.AddSubnode() to add a subnode and can add properties + with state.AddString(), etc. + + An example is 'files', which produces a section containing a list of + files. + """ pass def AddMissingProperties(self, have_image_pos): |