diff options
author | Julius Werner <jwerner@chromium.org> | 2020-11-18 18:00:31 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2021-03-16 21:44:46 +0000 |
commit | c24db001efb669c06489c55122e85a4a8948b539 (patch) | |
tree | 8ef05ad91f769bdabf2c36cce66834739fe6b68f /src/include | |
parent | 0dd6ee783fffc5a96a903fcb64127d03fd608358 (diff) |
cbfstool: Move alignment/baseaddress handling into cbfs_add_component()
The --alignment flag is currently only handled by cbfstool add, but
there seems little reason to not handle it for all file-adding commands
(the help text actually mentions it for add-stage as well but it doesn't
currently work there). This patch moves the related code (and the
related baseaddress handling) into cbfs_add_component(). As a nice side
effect this allows us to rearrange cbfs_add_component() such that we can
conclusively determine whether we need a hash attribute before trying to
align the file, allowing that code to correctly infer the final header
size even when a hash attribute was implicitly added (for an image built
with CBFS verification enabled).
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Idc6d68b2c7f30e5d136433adb3aec5a87053f992
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47823
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions