diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-27 02:40:09 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 23:42:59 +0300 |
commit | f90d906a275f85e7077d9a30ab82b20676b54645 (patch) | |
tree | ecce3b12a7a78d5ebcd90223e330719f9c2f6872 /tools/binman/entry.py | |
parent | ef439ed191a0655a86f5b4035cec9cc57e97d8b1 (diff) | |
download | u-boot-f90d906a275f85e7077d9a30ab82b20676b54645.tar.xz |
binman: Expand docs and test for padding
Padding becomes part of the entry once the image is written out, but
within binman the entry contents does not include the padding. Add
documentation to make this clear, as well as a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 173c9131cb..e5d0aa52bd 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -51,9 +51,14 @@ class Entry(object): align: Entry start offset alignment, or None align_size: Entry size alignment, or None align_end: Entry end offset alignment, or None - pad_before: Number of pad bytes before the contents, 0 if none - pad_after: Number of pad bytes after the contents, 0 if none - data: Contents of entry (string of bytes) + pad_before: Number of pad bytes before the contents when it is placed + in the containing section, 0 if none. The pad bytes become part of + the entry. + pad_after: Number of pad bytes after the contents when it is placed in + the containing section, 0 if none. The pad bytes become part of + the entry. + data: Contents of entry (string of bytes). This does not include + padding created by pad_before or pad_after compress: Compression algoithm used (e.g. 'lz4'), 'none' if none orig_offset: Original offset value read from node orig_size: Original size value read from node |