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 <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
f7a92518f6
commit
c9c56f6e2b
10
Makefile
10
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
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
|
@ -736,6 +736,12 @@ ifeq ($(DYN_DISABLE_AUTH), 1)
|
||||||
endif
|
endif
|
||||||
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.
|
# SDEI_IN_FCONF is only supported when SDEI_SUPPORT is enabled.
|
||||||
ifeq ($(SDEI_SUPPORT)-$(SDEI_IN_FCONF),0-1)
|
ifeq ($(SDEI_SUPPORT)-$(SDEI_IN_FCONF),0-1)
|
||||||
$(error "SDEI_IN_FCONF is only supported when SDEI_SUPPORT is enabled")
|
$(error "SDEI_IN_FCONF is only supported when SDEI_SUPPORT is enabled")
|
||||||
|
@ -1022,6 +1028,7 @@ $(eval $(call assert_booleans,\
|
||||||
SPM_MM \
|
SPM_MM \
|
||||||
SPMD_SPM_AT_SEL2 \
|
SPMD_SPM_AT_SEL2 \
|
||||||
TRUSTED_BOARD_BOOT \
|
TRUSTED_BOARD_BOOT \
|
||||||
|
CRYPTO_SUPPORT \
|
||||||
USE_COHERENT_MEM \
|
USE_COHERENT_MEM \
|
||||||
USE_DEBUGFS \
|
USE_DEBUGFS \
|
||||||
ARM_IO_IN_DTB \
|
ARM_IO_IN_DTB \
|
||||||
|
@ -1136,6 +1143,7 @@ $(eval $(call add_defines,\
|
||||||
SPM_MM \
|
SPM_MM \
|
||||||
SPMD_SPM_AT_SEL2 \
|
SPMD_SPM_AT_SEL2 \
|
||||||
TRUSTED_BOARD_BOOT \
|
TRUSTED_BOARD_BOOT \
|
||||||
|
CRYPTO_SUPPORT \
|
||||||
TRNG_SUPPORT \
|
TRNG_SUPPORT \
|
||||||
USE_COHERENT_MEM \
|
USE_COHERENT_MEM \
|
||||||
USE_DEBUGFS \
|
USE_DEBUGFS \
|
||||||
|
|
Loading…
Reference in New Issue