mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 22:05:40 +00:00
fix(stm32mp1): add void entry in plat_def_toc_entries
The fill_image_descs() function in fiptool adds images until .cmdline_name is NULL. Add a void entry to STM32MP1 plat_def_toc_entries[] to properly escape the loop. Also reported by Valentyn Korniienko (@ValentiWorkLearning) on github with pull requests [1] and [2]. [1] https://github.com/ARM-software/arm-trusted-firmware/pull/1997 [2] https://github.com/STMicroelectronics/arm-trusted-firmware/pull/8 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I94fd36ca677d46ce6df95c7674c6b6bd365b28c7
This commit is contained in:
parent
dcf430656c
commit
8214ecdab2
1 changed files with 9 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022, STMicroelectronics - All Rights Reserved
|
* Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <firmware_image_package.h>
|
#include <firmware_image_package.h>
|
||||||
|
|
||||||
#include "tbbr_config.h"
|
#include "tbbr_config.h"
|
||||||
|
@ -13,6 +15,11 @@ toc_entry_t plat_def_toc_entries[] = {
|
||||||
.name = "STM32MP CONFIG CERT",
|
.name = "STM32MP CONFIG CERT",
|
||||||
.uuid = UUID_STM32MP_CONFIG_CERT,
|
.uuid = UUID_STM32MP_CONFIG_CERT,
|
||||||
.cmdline_name = "stm32mp-cfg-cert"
|
.cmdline_name = "stm32mp-cfg-cert"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
.name = NULL,
|
||||||
|
.uuid = { {0} },
|
||||||
|
.cmdline_name = NULL,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue