1# 2# Copyright (c) 2013-2026, Arm Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7BL1_SOURCES += bl1/${ARCH}/bl1_arch_setup.c \ 8 bl1/${ARCH}/bl1_context_mgmt.c \ 9 bl1/${ARCH}/bl1_entrypoint.S \ 10 bl1/${ARCH}/bl1_exceptions.S \ 11 bl1/bl1_main.c \ 12 lib/cpus/${ARCH}/cpu_helpers.S \ 13 lib/cpus/errata_report.c \ 14 lib/el3_runtime/${ARCH}/context_mgmt.c \ 15 plat/common/plat_bl1_common.c \ 16 plat/common/${ARCH}/platform_up_stack.S \ 17 ${MBEDTLS_SOURCES} 18 19ifeq (${ARCH},aarch64) 20BL1_SOURCES += lib/el3_runtime/aarch64/context.S \ 21 lib/cpus/errata_common.c 22endif 23 24ifeq (${TRUSTED_BOARD_BOOT},1) 25BL1_SOURCES += bl1/bl1_fwu.c 26endif 27 28ifeq (${ENABLE_PMF},1) 29BL1_SOURCES += lib/pmf/pmf_main.c 30endif 31 32ifeq (${WORKAROUND_CVE_2025_0647},1) 33BL1_SOURCES += lib/cpus/aarch64/wa_cve_2025_0647_cpprctx.S 34endif 35 36BL1_DEFAULT_LINKER_SCRIPT_SOURCE := bl1/bl1.ld.S 37 38# CRYPTO_SUPPORT 39NEED_AUTH := $(if $(filter 1,$(TRUSTED_BOARD_BOOT)),1,) 40NEED_HASH := $(if $(filter 1,$(MEASURED_BOOT) $(DRTM_SUPPORT)),1,) 41$(eval $(call set_crypto_support,NEED_AUTH,NEED_HASH)) 42 43# BL1_CPPFLAGS 44$(eval BL1_CPPFLAGS += $(call make_defines, \ 45 $(sort \ 46 CRYPTO_SUPPORT \ 47))) 48 49# Numeric_Flags 50$(eval $(call assert_numerics,\ 51 $(sort \ 52 CRYPTO_SUPPORT \ 53))) 54