19003fa0bSYatharth Kochar# 205d22c30SBoyan Karatotev# Copyright (c) 2015-2025, Arm Limited and Contributors. All rights reserved. 39003fa0bSYatharth Kochar# 482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause 59003fa0bSYatharth Kochar# 69003fa0bSYatharth Kochar 79003fa0bSYatharth KocharBL2U_SOURCES += bl2u/bl2u_main.c \ 81bd61d0aSYatharth Kochar bl2u/${ARCH}/bl2u_entrypoint.S \ 91bd61d0aSYatharth Kochar plat/common/${ARCH}/platform_up_stack.S 101bd61d0aSYatharth Kochar 111bd61d0aSYatharth Kocharifeq (${ARCH},aarch64) 121bd61d0aSYatharth KocharBL2U_SOURCES += common/aarch64/early_exceptions.S 131bd61d0aSYatharth Kocharendif 149003fa0bSYatharth Kochar 1582274936SChris KayBL2U_DEFAULT_LINKER_SCRIPT_SOURCE := bl2u/bl2u.ld.S 16*6e2fe623SLauren Wehrmeister 17*6e2fe623SLauren Wehrmeister# CRYPTO_SUPPORT 18*6e2fe623SLauren WehrmeisterNEED_AUTH := $(if $(filter 1,$(TRUSTED_BOARD_BOOT)),1,) 19*6e2fe623SLauren WehrmeisterNEED_HASH := $(if $(filter 1,$(MEASURED_BOOT) $(DRTM_SUPPORT)),1,) 20*6e2fe623SLauren Wehrmeister$(eval $(call set_crypto_support,NEED_AUTH,NEED_HASH)) 21*6e2fe623SLauren Wehrmeister 22*6e2fe623SLauren Wehrmeisterifneq ($(filter 1 2 3,$(CRYPTO_SUPPORT)),) 23*6e2fe623SLauren WehrmeisterCRYPTO_LIB := $(BUILD_PLAT)/lib/libmbedtls.a 24*6e2fe623SLauren Wehrmeisterendif 25*6e2fe623SLauren Wehrmeister 26*6e2fe623SLauren Wehrmeister# BL2U_CPPFLAGS 27*6e2fe623SLauren Wehrmeister$(eval BL2U_CPPFLAGS += $(call make_defines, \ 28*6e2fe623SLauren Wehrmeister $(sort \ 29*6e2fe623SLauren Wehrmeister CRYPTO_SUPPORT \ 30*6e2fe623SLauren Wehrmeister))) 31*6e2fe623SLauren Wehrmeister 32*6e2fe623SLauren Wehrmeister# Numeric_Flags 33*6e2fe623SLauren Wehrmeister$(eval $(call assert_numerics,\ 34*6e2fe623SLauren Wehrmeister $(sort \ 35*6e2fe623SLauren Wehrmeister CRYPTO_SUPPORT \ 36*6e2fe623SLauren Wehrmeister))) 37