summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-08 00:07:09 +0300
committerSimon Glass <sjg@chromium.org>2023-01-18 21:50:01 +0300
commit226ce1d24dfcb9291e6ffbaba4799981b8c29ab2 (patch)
tree5b0005158038dacf7f4f25841b73ada184e7fdbf /tools
parentefddab6c365439b9084ef1ac4750eacb7ba9e889 (diff)
downloadu-boot-226ce1d24dfcb9291e6ffbaba4799981b8c29ab2.tar.xz
binman: Tidy up comment in fit _gen_node
Expand this comment to cover both cases that are supported. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/etype/fit.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py
index 7860e2aeea..8ad4f3a8a8 100644
--- a/tools/binman/etype/fit.py
+++ b/tools/binman/etype/fit.py
@@ -579,11 +579,17 @@ class Entry_fit(Entry_section):
def _gen_node(base_node, node, depth, in_images, entry):
"""Generate nodes from a template
- This creates one node for each member of self._fdts using the
- provided template. If a property value contains 'NAME' it is
- replaced with the filename of the FDT. If a property value contains
- SEQ it is replaced with the node sequence number, where 1 is the
- first.
+ This creates one or more nodes depending on the fit,operation being
+ used.
+
+ For OP_GEN_FDT_NODES it creates one node for each member of
+ self._fdts using the provided template. If a property value contains
+ 'NAME' it is replaced with the filename of the FDT. If a property
+ value contains SEQ it is replaced with the node sequence number,
+ where 1 is the first.
+
+ For OP_SPLIT_ELF it emits one node for each section in the ELF file.
+ If the file is missing, nothing is generated.
Args:
base_node (Node): Base Node of the FIT (with 'description'