diff --git a/Makefile b/Makefile index ed7b07676..b92d3a9c4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# Copyright (c) 2013-2021, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2013-2022, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -736,6 +736,12 @@ ifeq ($(DYN_DISABLE_AUTH), 1) endif endif +ifneq ($(filter 1,${MEASURED_BOOT} ${TRUSTED_BOARD_BOOT}),) + CRYPTO_SUPPORT := 1 +else + CRYPTO_SUPPORT := 0 +endif + # SDEI_IN_FCONF is only supported when SDEI_SUPPORT is enabled. ifeq ($(SDEI_SUPPORT)-$(SDEI_IN_FCONF),0-1) $(error "SDEI_IN_FCONF is only supported when SDEI_SUPPORT is enabled") @@ -1022,6 +1028,7 @@ $(eval $(call assert_booleans,\ SPM_MM \ SPMD_SPM_AT_SEL2 \ TRUSTED_BOARD_BOOT \ + CRYPTO_SUPPORT \ USE_COHERENT_MEM \ USE_DEBUGFS \ ARM_IO_IN_DTB \ @@ -1136,6 +1143,7 @@ $(eval $(call add_defines,\ SPM_MM \ SPMD_SPM_AT_SEL2 \ TRUSTED_BOARD_BOOT \ + CRYPTO_SUPPORT \ TRNG_SUPPORT \ USE_COHERENT_MEM \ USE_DEBUGFS \