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:
Michał Kopeć
2026-01-14 14:44:13 +01:00
committed by Michał Żygowski
parent a6ec62c557
commit 257e862877
+1 -1
View File
@@ -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));