mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 22:05:40 +00:00
refactor(auth): remove HW_CONFIG reference from BL1 CoT file
Remove the 'HW_CONFIG' reference from the BL1 CoT file, as BL1 does not play any role in loading the hw_config image. This reference was incorrectly added to the BL1 CoT file. Change-Id: I9c1d9abce65844eaa1f41ab4f98d3c258ab7a8d2 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
416aa42e55
commit
7962c1c2c2
4 changed files with 22 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
|
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -173,7 +173,6 @@ static const auth_img_desc_t fw_config = {
|
||||||
static const auth_img_desc_t * const cot_desc[] = {
|
static const auth_img_desc_t * const cot_desc[] = {
|
||||||
[TRUSTED_BOOT_FW_CERT_ID] = &trusted_boot_fw_cert,
|
[TRUSTED_BOOT_FW_CERT_ID] = &trusted_boot_fw_cert,
|
||||||
[BL2_IMAGE_ID] = &bl2_image,
|
[BL2_IMAGE_ID] = &bl2_image,
|
||||||
[HW_CONFIG_ID] = &hw_config,
|
|
||||||
[TB_FW_CONFIG_ID] = &tb_fw_config,
|
[TB_FW_CONFIG_ID] = &tb_fw_config,
|
||||||
[FW_CONFIG_ID] = &fw_config,
|
[FW_CONFIG_ID] = &fw_config,
|
||||||
[FWU_CERT_ID] = &fwu_cert,
|
[FWU_CERT_ID] = &fwu_cert,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
|
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -84,6 +84,22 @@ static auth_param_type_desc_t sp_pkg8_hash = AUTH_PARAM_TYPE_DESC(
|
||||||
AUTH_PARAM_HASH, SP_PKG8_HASH_OID);
|
AUTH_PARAM_HASH, SP_PKG8_HASH_OID);
|
||||||
#endif /* SPD_spmd */
|
#endif /* SPD_spmd */
|
||||||
|
|
||||||
|
/* HW Config */
|
||||||
|
static const auth_img_desc_t hw_config = {
|
||||||
|
.img_id = HW_CONFIG_ID,
|
||||||
|
.img_type = IMG_RAW,
|
||||||
|
.parent = &trusted_boot_fw_cert,
|
||||||
|
.img_auth_methods = (const auth_method_desc_t[AUTH_METHOD_NUM]) {
|
||||||
|
[0] = {
|
||||||
|
.type = AUTH_METHOD_HASH,
|
||||||
|
.param.hash = {
|
||||||
|
.data = &raw_data,
|
||||||
|
.hash = &hw_config_hash
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Trusted key certificate
|
* Trusted key certificate
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
|
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -52,7 +52,7 @@ auth_param_type_desc_t tb_fw_config_hash = AUTH_PARAM_TYPE_DESC(
|
||||||
AUTH_PARAM_HASH, TRUSTED_BOOT_FW_CONFIG_HASH_OID);
|
AUTH_PARAM_HASH, TRUSTED_BOOT_FW_CONFIG_HASH_OID);
|
||||||
auth_param_type_desc_t fw_config_hash = AUTH_PARAM_TYPE_DESC(
|
auth_param_type_desc_t fw_config_hash = AUTH_PARAM_TYPE_DESC(
|
||||||
AUTH_PARAM_HASH, FW_CONFIG_HASH_OID);
|
AUTH_PARAM_HASH, FW_CONFIG_HASH_OID);
|
||||||
static auth_param_type_desc_t hw_config_hash = AUTH_PARAM_TYPE_DESC(
|
auth_param_type_desc_t hw_config_hash = AUTH_PARAM_TYPE_DESC(
|
||||||
AUTH_PARAM_HASH, HW_CONFIG_HASH_OID);
|
AUTH_PARAM_HASH, HW_CONFIG_HASH_OID);
|
||||||
|
|
||||||
/* trusted_boot_fw_cert */
|
/* trusted_boot_fw_cert */
|
||||||
|
@ -109,19 +109,3 @@ const auth_img_desc_t trusted_boot_fw_cert = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* HW Config */
|
|
||||||
const auth_img_desc_t hw_config = {
|
|
||||||
.img_id = HW_CONFIG_ID,
|
|
||||||
.img_type = IMG_RAW,
|
|
||||||
.parent = &trusted_boot_fw_cert,
|
|
||||||
.img_auth_methods = (const auth_method_desc_t[AUTH_METHOD_NUM]) {
|
|
||||||
[0] = {
|
|
||||||
.type = AUTH_METHOD_HASH,
|
|
||||||
.param.hash = {
|
|
||||||
.data = &raw_data,
|
|
||||||
.hash = &hw_config_hash
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020,2023, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2020-2024, Arm Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -21,10 +21,10 @@ extern auth_param_type_desc_t sig_alg;
|
||||||
extern auth_param_type_desc_t raw_data;
|
extern auth_param_type_desc_t raw_data;
|
||||||
|
|
||||||
extern auth_param_type_desc_t tb_fw_hash;
|
extern auth_param_type_desc_t tb_fw_hash;
|
||||||
|
extern auth_param_type_desc_t hw_config_hash;
|
||||||
extern auth_param_type_desc_t tb_fw_config_hash;
|
extern auth_param_type_desc_t tb_fw_config_hash;
|
||||||
extern auth_param_type_desc_t fw_config_hash;
|
extern auth_param_type_desc_t fw_config_hash;
|
||||||
|
|
||||||
extern const auth_img_desc_t trusted_boot_fw_cert;
|
extern const auth_img_desc_t trusted_boot_fw_cert;
|
||||||
extern const auth_img_desc_t hw_config;
|
|
||||||
|
|
||||||
#endif /* TBBR_COT_COMMON_H */
|
#endif /* TBBR_COT_COMMON_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue