From c9c56f6e2b8b53cf3b2da3ea1db7e889a7152c79 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Sat, 8 Jan 2022 22:56:06 +0000 Subject: [PATCH] build: introduce CRYPTO_SUPPORT build option Introduced CRYPTO_SUPPORT an internal, non-user facing build option and set it when the TRUSTED_BOARD_BOOT or MEASURED_BOOT option is enabled. Change-Id: Iae723d57a755a8b534b6ced650016365c62d4e05 Signed-off-by: Manish V Badarkhe --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 \