summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-08-26 13:11:30 -0600
committerSimon Glass <[email protected]>2024-09-26 12:40:30 +0200
commit548e86198bd0bf659118bd8f9060c927b77e6e6e (patch)
tree07753be45dd14e6bb3a907e884c7df9a048dab28
parent7d77ad906146f2fb0811e5780a0109679e7556b5 (diff)
binman: Correct the comment for fdtgrep
This returns stdout, not a CommandResult so update the comment. Signed-off-by: Simon Glass <[email protected]>
-rw-r--r--tools/binman/btool/fdtgrep.py3
-rw-r--r--tools/binman/etype/fit.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/binman/btool/fdtgrep.py b/tools/binman/btool/fdtgrep.py
index da1f8c7bf4e..446b2f4144b 100644
--- a/tools/binman/btool/fdtgrep.py
+++ b/tools/binman/btool/fdtgrep.py
@@ -74,8 +74,7 @@ class Bintoolfdtgrep(bintool.Bintool):
(with only neceesary nodes and properties)
Returns:
- CommandResult: Resulting output from the bintool, or None if the
- tool is not present
+ str or bytes: Resulting stdout from the bintool
"""
if phase == 'tpl':
tag = 'bootph-pre-sram'
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py
index ee44e5a1cd6..b957df54548 100644
--- a/tools/binman/etype/fit.py
+++ b/tools/binman/etype/fit.py
@@ -550,6 +550,9 @@ class Entry_fit(Entry_section):
phase (str): Phase to generate for ('tpl', 'vpl', 'spl')
outfile (str): Output filename to write the grepped FDT contents to
(with only neceesary nodes and properties)
+
+ Returns:
+ str or bytes: Resulting stdout from fdtgrep
"""
return self.fdtgrep.create_for_phase(infile, phase, outfile,
self._remove_props)