Skip to content

Commit 9eed235

Browse files
softwareckikv2019i
authored andcommitted
rimage: manifest: Preserve extended manifest in resigning mode
Copy data preceding the cse header to the output file. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent de4514f commit 9eed235

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/rimage/src/manifest.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,13 @@ int resign_image(struct image *image)
17731773
goto out;
17741774
}
17751775

1776+
/* Rewrite content before CSE header */
1777+
size = fwrite(buffer, 1, i, image->out_fd);
1778+
if (size != i) {
1779+
ret = file_error("Extended manifest write error", image->out_file);
1780+
goto out;
1781+
}
1782+
17761783
man_write_fw_mod(image);
17771784

17781785
out:

0 commit comments

Comments
 (0)