summaryrefslogtreecommitdiff
path: root/tools/binman/bsection.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-08 13:18:37 -0600
committerSimon Glass <sjg@chromium.org>2019-07-23 20:27:57 -0700
commit79a0176fae9f5273adbe486ee64e6ef0581bb3fe (patch)
tree4a6b9eeea69604c3fb25ed59a297505ca36e32ce /tools/binman/bsection.py
parent86679cefe5fd3d24ccc4dc117c9e1b107f60c937 (diff)
binman: Assume Intel descriptor is at the start of the image
At present binman requires that the Intel descriptor has an explicit offset. Generally this is 0 since the descriptor is at the start of the image. Add a default to handle this, so users don't need to specify the offset. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/bsection.py')
-rw-r--r--tools/binman/bsection.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/binman/bsection.py b/tools/binman/bsection.py
index e0e3707db41..49b8ef3e3e0 100644
--- a/tools/binman/bsection.py
+++ b/tools/binman/bsection.py
@@ -477,6 +477,14 @@ class Section(object):
return self._parent_section.GetRootSkipAtStart()
return self._skip_at_start
+ def GetStartOffset(self):
+ """Get the start offset for this section
+
+ Returns:
+ The first available offset in this section (typically 0)
+ """
+ return self._skip_at_start
+
def GetImageSize(self):
"""Get the size of the image containing this section