1 /* 2 * Copyright (c) 2024, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef METADATA_H 8 #define METADATA_H 9 10 /* 11 * Images, measured during the boot process, have some associated metadata. 12 * One of these types of metadata is the image identifier strings. These macros 13 * define these strings. They are used across the different measured boot 14 * backends. 15 * Note that these strings follow the standardization recommendations 16 * defined in the Arm Server Base Security Guide (a.k.a. SBSG, Arm DEN 0086), 17 * where applicable. They should not be changed in the code. 18 * Where the SBSG does not make recommendations, we are free to choose any 19 * naming convention. 20 * The key thing is to choose meaningful strings so that when the measured boot 21 * metadata is used in attestation, the different components can be identified. 22 */ 23 #define MBOOT_BL2_IMAGE_STRING "BL_2" 24 #define MBOOT_BL31_IMAGE_STRING "SECURE_RT_EL3" 25 #if defined(SPD_opteed) 26 #define MBOOT_BL32_IMAGE_STRING "SECURE_RT_EL1_OPTEE" 27 #elif defined(SPD_tspd) 28 #define MBOOT_BL32_IMAGE_STRING "SECURE_RT_EL1_TSPD" 29 #elif defined(SPD_tlkd) 30 #define MBOOT_BL32_IMAGE_STRING "SECURE_RT_EL1_TLKD" 31 #elif defined(SPD_trusty) 32 #define MBOOT_BL32_IMAGE_STRING "SECURE_RT_EL1_TRUSTY" 33 #else 34 #define MBOOT_BL32_IMAGE_STRING "SECURE_RT_EL1_UNKNOWN" 35 #endif /* SPD_opteed */ 36 #define MBOOT_BL32_EXTRA1_IMAGE_STRING "SECURE_RT_EL1_OPTEE_EXTRA1" 37 #define MBOOT_BL32_EXTRA2_IMAGE_STRING "SECURE_RT_EL1_OPTEE_EXTRA2" 38 #define MBOOT_BL33_IMAGE_STRING "BL_33" 39 #define MBOOT_FW_CONFIG_STRING "FW_CONFIG" 40 #define MBOOT_HW_CONFIG_STRING "HW_CONFIG" 41 #define MBOOT_NT_FW_CONFIG_STRING "NT_FW_CONFIG" 42 #define MBOOT_SCP_BL2_IMAGE_STRING "SYS_CTRL_2" 43 #define MBOOT_SOC_FW_CONFIG_STRING "SOC_FW_CONFIG" 44 #define MBOOT_STM32_STRING "STM32" 45 #define MBOOT_TB_FW_CONFIG_STRING "TB_FW_CONFIG" 46 #define MBOOT_TOS_FW_CONFIG_STRING "TOS_FW_CONFIG" 47 #define MBOOT_RMM_IMAGE_STRING "RMM" 48 #define MBOOT_SP1_STRING "SP1" 49 #define MBOOT_SP2_STRING "SP2" 50 #define MBOOT_SP3_STRING "SP3" 51 #define MBOOT_SP4_STRING "SP4" 52 #define MBOOT_SP5_STRING "SP5" 53 #define MBOOT_SP6_STRING "SP6" 54 #define MBOOT_SP7_STRING "SP7" 55 #define MBOOT_SP8_STRING "SP8" 56 57 #endif /* METADATA_H */ 58