diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-10-30 17:38:04 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-12-08 16:05:52 +0000 |
commit | ff906fb95bab0c4c24c2589fd0de3b1d1d0b2e24 (patch) | |
tree | 42206c9e0af2aedf7251838b2c2bef08295d8ea9 /util/cbfstool/cbfs.h | |
parent | 9adcbfe486cb37ecbf38167ac13a502326f5863c (diff) | |
download | coreboot-ff906fb95bab0c4c24c2589fd0de3b1d1d0b2e24.tar.xz |
cbfstool: Add '-p' option for padding
This patch adds '-p' to the 'add' command. It allows the add
command to specify the size of the padding added with the file
being added. This is useful to reserve an extra space in case
the file is too big to be relocated.
BUG=b:68660966
BRANCH=none
TEST=emerge-fizz coreboot &&
cbfstool image.bin add -n ecrw -f EC_RW.bin -p 0x10 ...
Verify image.bin has extra space in the file header.
Change-Id: I64bc54fd10a453b4da467bc69d9590e61b0f7ead
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://review.coreboot.org/22239
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'util/cbfstool/cbfs.h')
-rw-r--r-- | util/cbfstool/cbfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index f7b5f917e7..2964304772 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -104,8 +104,9 @@ struct cbfs_file_attribute { #define CBFS_FILE_ATTR_TAG_UNUSED2 0xffffffff #define CBFS_FILE_ATTR_TAG_COMPRESSION 0x42435a4c #define CBFS_FILE_ATTR_TAG_HASH 0x68736148 -#define CBFS_FILE_ATTR_TAG_POSITION 0x42435350 /* PSCB */ +#define CBFS_FILE_ATTR_TAG_POSITION 0x42435350 /* PSCB */ #define CBFS_FILE_ATTR_TAG_ALIGNMENT 0x42434c41 /* ALCB */ +#define CBFS_FILE_ATTR_TAG_PADDING 0x47444150 /* PDNG */ struct cbfs_file_attr_compression { uint32_t tag; |