mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 05:54:08 +00:00
Merge "fix(fiptool): avoid packing the zero size images in the FIP" into integration
This commit is contained in:
commit
d76346b940
2 changed files with 5 additions and 1 deletions
4
.cz.json
4
.cz.json
|
@ -809,6 +809,10 @@
|
|||
{
|
||||
"title": "STM32 Image",
|
||||
"scopes": ["stm32image", "tools/stm32image"]
|
||||
},
|
||||
{
|
||||
"title": "fiptool",
|
||||
"scopes": ["fiptool"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -537,7 +537,7 @@ static int pack_images(const char *filename, uint64_t toc_flags, unsigned long a
|
|||
for (desc = image_desc_head; desc != NULL; desc = desc->next) {
|
||||
image_t *image = desc->image;
|
||||
|
||||
if (image == NULL)
|
||||
if (image == NULL || (image->toc_e.size == 0ULL))
|
||||
continue;
|
||||
payload_size += image->toc_e.size;
|
||||
entry_offset = (entry_offset + align - 1) & ~(align - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue