mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-03 21:18:49 +00:00
Setting CRYPTO_LIB based on CRYPTO_SUPPORT via the CRYPTO_SUPPORT macro to be called by component-specific makefiles. Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com> Change-Id: Ib400e4668c60c24bb4399de6a320b5c16205affb
33 lines
765 B
Makefile
33 lines
765 B
Makefile
#
|
|
# Copyright (c) 2015-2025, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
BL2U_SOURCES += bl2u/bl2u_main.c \
|
|
bl2u/${ARCH}/bl2u_entrypoint.S \
|
|
plat/common/${ARCH}/platform_up_stack.S
|
|
|
|
ifeq (${ARCH},aarch64)
|
|
BL2U_SOURCES += common/aarch64/early_exceptions.S
|
|
endif
|
|
|
|
BL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S
|
|
|
|
# CRYPTO_SUPPORT
|
|
NEED_AUTH := $(if $(filter 1,$(TRUSTED_BOARD_BOOT)),1,)
|
|
NEED_HASH := $(if $(filter 1,$(MEASURED_BOOT) $(DRTM_SUPPORT)),1,)
|
|
$(eval $(call set_crypto_support,NEED_AUTH,NEED_HASH))
|
|
|
|
# BL2U_CPPFLAGS
|
|
$(eval BL2U_CPPFLAGS += $(call make_defines, \
|
|
$(sort \
|
|
CRYPTO_SUPPORT \
|
|
)))
|
|
|
|
# Numeric_Flags
|
|
$(eval $(call assert_numerics,\
|
|
$(sort \
|
|
CRYPTO_SUPPORT \
|
|
)))
|