From 257e8628775e4b6d577d1fb2ea74b7b2bb9f06c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kope=C4=87?= Date: Wed, 14 Jan 2026 14:44:13 +0100 Subject: [PATCH] util/cbfstool/ifittool.c: Use relative addresses when adding FIT entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ć Signed-off-by: Michał Żygowski --- util/cbfstool/ifittool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cbfstool/ifittool.c b/util/cbfstool/ifittool.c index d289ef746a..9827d3fee9 100644 --- a/util/cbfstool/ifittool.c +++ b/util/cbfstool/ifittool.c @@ -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));