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 Wehrmeister# BL2U_CPPFLAGS 23*6e2fe623SLauren Wehrmeister$(eval BL2U_CPPFLAGS += $(call make_defines, \ 24*6e2fe623SLauren Wehrmeister $(sort \ 25*6e2fe623SLauren Wehrmeister CRYPTO_SUPPORT \ 26*6e2fe623SLauren Wehrmeister))) 27*6e2fe623SLauren Wehrmeister 28*6e2fe623SLauren Wehrmeister# Numeric_Flags 29*6e2fe623SLauren Wehrmeister$(eval $(call assert_numerics,\ 30*6e2fe623SLauren Wehrmeister $(sort \ 31*6e2fe623SLauren Wehrmeister CRYPTO_SUPPORT \ 32*6e2fe623SLauren Wehrmeister))) 33