mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
util/cbfstool/ifittool.c: Use relative addresses when adding FIT entries
This is needed to properly set addresses of objects located in the Top Swap region of the flash, when Top Swap-based redundancy is enabled. Upstream-Status: Pending Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com> Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
committed by
Michał Żygowski
parent
a6ec62c557
commit
257e862877
@@ -386,7 +386,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
len = be32toh(cbfs_file->len);
|
||||
offset = offset_to_ptr(convert_to_from_absolute_top_aligned,
|
||||
offset = offset_to_ptr(convert_to_from_top_aligned,
|
||||
&file_source_image.buffer,
|
||||
cbfs_get_entry_addr(&file_source_image, cbfs_file) +
|
||||
be32toh(cbfs_file->offset));
|
||||
|
||||
Reference in New Issue
Block a user