@ -44,11 +44,9 @@ $(eval $(call CERT_ADD_CMD_OPT,${NTFW_NVCTR_VAL},--ntfw-nvctr))
# Add Trusted Key certificate to the fiptool and cert_create command line options
$( eval $ ( call FIP_ADD_PAYLOAD ,$ {TRUSTED_KEY_CERT },--trusted -key -cert ) )
$( eval $ ( call CERT_ADD_CMD_OPT ,$ {TRUSTED_KEY_CERT },--trusted -key -cert ) )
# Add fwu certificate to the fiptool and cert_create command line options
$( eval $ ( call FIP_ADD_PAYLOAD ,$ {FWU_CERT },--fwu -cert ,,FWU_ ) )
$( eval $ ( call CERT_ADD_CMD_OPT ,$ {FWU_CERT },--fwu -cert ,,FWU_ ) )
# Add the keys to the cert_create command line options (private keys are NOT
# packed in the FIP). Developers can use their own keys by specifying the proper
@ -60,74 +58,38 @@ $(if ${ROT_KEY},$(eval $(call CERT_ADD_CMD_OPT,${ROT_KEY},--rot-key,,FWU_)))
$( if $ {TRUSTED_WORLD_KEY },$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {TRUSTED_WORLD_KEY },--trusted -world -key ) ) )
$( if $ {NON_TRUSTED_WORLD_KEY },$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {NON_TRUSTED_WORLD_KEY },--non -trusted -world -key ) ) )
# Add the BL2 CoT (image cert + image)
$( if $ {BL 2},$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {BL 2},--tb -fw ,true ) ) ,\
$( eval $( call CERT_ADD_CMD_OPT,$( call IMG_BIN,2) ,--tb-fw,true) ) )
$( eval $ ( call CERT_ADD_CMD_OPT ,$ {BUILD_PLAT }/tb_fw .crt ,--tb -fw -cert ) )
# Add the BL2 CoT (image cert)
i f e q ( $ { B L 2 _ A T _ E L 3 } , 0 )
$( eval $ ( call FIP_ADD_PAYLOAD ,$ {BUILD_PLAT }/tb_fw .crt ,--tb -fw -cert ) )
e n d i f
# Add the SCP_BL2 CoT (key cert + img cert + image )
# Add the SCP_BL2 CoT (key cert + img cert)
i f n e q ( $ { S C P _ B L 2 } , )
$( eval $( call CERT_ADD_CMD_OPT,${ SCP_BL2 } ,--scp-fw,true) )
$( if ${ SCP_BL2_KEY } ,$( eval $( call CERT_ADD_CMD_OPT,${ SCP_BL2_KEY } ,--scp-fw-key) ) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /scp_fw_content.crt,--scp-fw-cert) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /scp_fw_key.crt,--scp-fw-key-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /scp_fw_content.crt,--scp-fw-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /scp_fw_key.crt,--scp-fw-key-cert) )
e n d i f
i f e q ( $ { A R C H } , a a r c h 6 4 )
i f e q ( $ { N E E D _ B L 3 1 } , y e s )
# Add the BL31 CoT (key cert + img cert + image)
$( if $ {BL 31},$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {BL 31},--soc -fw ,true ) ) ,\
$( eval $( call CERT_ADD_CMD_OPT,$( call IMG_BIN,31) ,--soc-fw,true) ) )
# Add the BL31 CoT (key cert + img cert)
$( if $ {BL 31_KEY },$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {BL 31_KEY },--soc -fw -key ) ) )
$( eval $ ( call CERT_ADD_CMD_OPT ,$ {BUILD_PLAT }/soc_fw_content .crt ,--soc -fw -cert ) )
$( eval $ ( call CERT_ADD_CMD_OPT ,$ {BUILD_PLAT }/soc_fw_key .crt ,--soc -fw -key -cert ) )
$( eval $ ( call FIP_ADD_PAYLOAD ,$ {BUILD_PLAT }/soc_fw_content .crt ,--soc -fw -cert ) )
$( eval $ ( call FIP_ADD_PAYLOAD ,$ {BUILD_PLAT }/soc_fw_key .crt ,--soc -fw -key -cert ) )
e n d i f
e n d i f
# Add the BL32 CoT (key cert + img cert + image )
# Add the BL32 CoT (key cert + img cert)
i f e q ( $ { N E E D _ B L 3 2 } , y e s )
$( if ${ BL32 } ,$( eval $( call CERT_ADD_CMD_OPT,${ BL32 } ,--tos-fw,true) ) ,\
$( if ${ BL32_SOURCES } ,$( eval $( call CERT_ADD_CMD_OPT,$( call IMG_BIN,32) ,--tos-fw,true) ) ) )
$( if ${ BL32_KEY } ,$( eval $( call CERT_ADD_CMD_OPT,${ BL32_KEY } ,--tos-fw-key) ) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /tos_fw_content.crt,--tos-fw-cert) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /tos_fw_key.crt,--tos-fw-key-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /tos_fw_content.crt,--tos-fw-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /tos_fw_key.crt,--tos-fw-key-cert) )
i f n e q ( $ { B L 3 2 _ E X T R A 1 } , )
$( eval $( call CERT_ADD_CMD_OPT,${ BL32_EXTRA1 } ,--tos-fw-extra1,true) )
e n d i f
i f n e q ( $ { B L 3 2 _ E X T R A 2 } , )
$( eval $( call CERT_ADD_CMD_OPT,${ BL32_EXTRA2 } ,--tos-fw-extra2,true) )
e n d i f
e n d i f
# Add the BL33 CoT (key cert + img cert + image )
# Add the BL33 CoT (key cert + img cert)
i f n e q ( $ { B L 3 3 } , )
$( eval $( call CERT_ADD_CMD_OPT,${ BL33 } ,--nt-fw,true) )
$( if ${ BL33_KEY } ,$( eval $( call CERT_ADD_CMD_OPT,${ BL33_KEY } ,--nt-fw-key) ) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /nt_fw_content.crt,--nt-fw-cert) )
$( eval $( call CERT_ADD_CMD_OPT,${ BUILD_PLAT } /nt_fw_key.crt,--nt-fw-key-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /nt_fw_content.crt,--nt-fw-cert) )
$( eval $( call FIP_ADD_PAYLOAD,${ BUILD_PLAT } /nt_fw_key.crt,--nt-fw-key-cert) )
e n d i f
# Add the BL2U image
$( if $ {BL 2U },$ ( eval $ ( call CERT_ADD_CMD_OPT ,$ {BL 2U },--ap -fwu -cfg ,true ,FWU_ ) ) ,\
$( eval $( call CERT_ADD_CMD_OPT,$( call IMG_BIN,2u) ,--ap-fwu-cfg,true,FWU_) ) )
# Add the SCP_BL2U image
i f n e q ( $ { S C P _ B L 2 U } , )
$( eval $( call CERT_ADD_CMD_OPT,${ SCP_BL2U } ,--scp-fwu-cfg,true,FWU_) )
e n d i f
# Add the NS_BL2U image
i f n e q ( $ { N S _ B L 2 U } , )
$( eval $( call CERT_ADD_CMD_OPT,${ NS_BL2U } ,--fwu,true,FWU_) )
e n d i f