diff options
author | Jonas Karlman <jonas@kwiboo.se> | 2023-01-21 19:01:39 +0000 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-01-26 10:47:45 -0700 |
commit | 9b2fd2d22852ee70c07934a78314b01ad9b96b62 (patch) | |
tree | 816a6684c429c68242cb5297b7258b98e75afe08 /tools/binman/btool/mkimage.py | |
parent | 27e0fb3b0823519aea2d42cd8bde20234dd87cef (diff) |
binman: Add support for align argument to mkimage tool
Add support to indicate what alignment to use for the FIT and its
external data. Pass the alignment to mkimage via the -B flag.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/btool/mkimage.py')
-rw-r--r-- | tools/binman/btool/mkimage.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/binman/btool/mkimage.py b/tools/binman/btool/mkimage.py index da5f3441624..d5b407c5547 100644 --- a/tools/binman/btool/mkimage.py +++ b/tools/binman/btool/mkimage.py @@ -22,7 +22,7 @@ class Bintoolmkimage(bintool.Bintool): # pylint: disable=R0913 def run(self, reset_timestamp=False, output_fname=None, external=False, - pad=None): + pad=None, align=None): """Run mkimage Args: @@ -33,6 +33,7 @@ class Bintoolmkimage(bintool.Bintool): pad: Bytes to use for padding the FIT devicetree output. This allows other things to be easily added later, if required, such as signatures + align: Bytes to use for alignment of the FIT and its external data version: True to get the mkimage version """ args = [] @@ -40,6 +41,8 @@ class Bintoolmkimage(bintool.Bintool): args.append('-E') if pad: args += ['-p', f'{pad:x}'] + if align: + args += ['-B', f'{align:x}'] if reset_timestamp: args.append('-t') if output_fname: |