aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/entry.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-07 14:07:14 -0700
committerSimon Glass <sjg@chromium.org>2023-01-18 11:50:01 -0700
commit2f80c5ef134c2c339f6d4ad2f9a21aa0ffd465a8 (patch)
treedd7aaa2a161f2f5be5d9a7c52e2306f51bdfe1ed /tools/binman/entry.py
parent39f4a85bb2dd5915ebc86921c34da26faa278fec (diff)
binman: Support new op-tee binary format
OP-TEE has a format with a binary header that can be used instead of the ELF file. With newer versions of OP-TEE this may be required on some platforms. Add support for this in binman. First, add a method to obtain the ELF sections from an entry, then use that in the FIT support. We then end up with the ability to support both types of OP-TEE files, depending on which one is passed in with the entry argument (TEE=xxx in the U-Boot build). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r--tools/binman/entry.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index 637aece370..de51d29589 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -1290,3 +1290,16 @@ features to produce new behaviours.
def mark_absent(self, msg):
tout.info("Entry '%s' marked absent: %s" % (self._node.path, msg))
self.absent = True
+
+ def read_elf_segments(self):
+ """Read segments from an entry that can generate an ELF file
+
+ Returns:
+ tuple:
+ list of segments, each:
+ int: Segment number (0 = first)
+ int: Start address of segment in memory
+ bytes: Contents of segment
+ int: entry address of ELF file
+ """
+ return None