mirror of
https://xff.cz/git/u-boot/
synced 2025-10-01 15:31:27 +02:00
ARMv8/sec-firmware: fix a compile error
When enabled sec firmware framework, but lack of definition of the marco SEC_FIRMWARE_FIT_IMAGE, SEC_FIRMEWARE_FIT_CNF_NAME and SEC_FIRMWARE_TARGET_EL, there will be some build errors, so give a default definition. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
This commit is contained in:
@@ -26,6 +26,16 @@ extern void c_runtime_cpu_setup(void);
|
|||||||
*/
|
*/
|
||||||
phys_addr_t sec_firmware_addr;
|
phys_addr_t sec_firmware_addr;
|
||||||
|
|
||||||
|
#ifndef SEC_FIRMWARE_FIT_IMAGE
|
||||||
|
#define SEC_FIRMWARE_FIT_IMAGE "firmware"
|
||||||
|
#endif
|
||||||
|
#ifndef SEC_FIRMEWARE_FIT_CNF_NAME
|
||||||
|
#define SEC_FIRMEWARE_FIT_CNF_NAME "config@1"
|
||||||
|
#endif
|
||||||
|
#ifndef SEC_FIRMWARE_TARGET_EL
|
||||||
|
#define SEC_FIRMWARE_TARGET_EL 2
|
||||||
|
#endif
|
||||||
|
|
||||||
static int sec_firmware_get_data(const void *sec_firmware_img,
|
static int sec_firmware_get_data(const void *sec_firmware_img,
|
||||||
const void **data, size_t *size)
|
const void **data, size_t *size)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user