diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-01 09:38:16 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-06-07 11:25:08 -0800 |
commit | 1854695bd8af298d522fbb4bf0d8d9a3e1c6b33f (patch) | |
tree | f70de913446710661a9979595802231ec6c77932 /tools/binman/entry.py | |
parent | badf0ec6e4c89d8ee54b96f943057efe3c253113 (diff) | |
download | u-boot-1854695bd8af298d522fbb4bf0d8d9a3e1c6b33f.zip u-boot-1854695bd8af298d522fbb4bf0d8d9a3e1c6b33f.tar.gz u-boot-1854695bd8af298d522fbb4bf0d8d9a3e1c6b33f.tar.bz2 |
binman: Add support for sections
It is useful to be able to split an image into multiple sections,
each with its own size and position, for cases where a flash device has
read-only and read-write portions.
Add support for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 5374178..8b46fbb 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -220,3 +220,12 @@ class Entry(object): section: Section containing the entry """ pass + + def CheckPosition(self): + """Check that the entry positions are correct + + This is used for entries which have extra position requirements (other + than having to be fully inside their section). Sub-classes can implement + this function and raise if there is a problem. + """ + pass |