1# 2# SPDX-License-Identifier: BSD-3-Clause 3# 4# Copyright (C) 2024, Charleye <wangkart@aliyun.com> 5# All rights reserved. 6# 7 8override RESET_TO_BL31 := 0 9override CTX_INCLUDE_AARCH32_REGS := 0 10override USE_COHERENT_MEM := 0 11override SEPARATE_CODE_AND_RODATA := 1 12override HW_ASSISTED_COHERENCY := 1 13 14# Enable exception handling at EL3 15EL3_EXCEPTION_HANDLING := 1 16GICV2_G0_FOR_EL3 := 1 17 18# RAS options 19ENABLE_FEAT_RAS := 1 20HANDLE_EA_EL3_FIRST_NS := 1 21 22SDEI_SUPPORT := 1 23 24CRASH_REPORTING := 1 25ENABLE_ASSERTIONS := 1 26 27INIT_UNUSED_NS_EL2 := 1 28ERRATA_A55_1530923 := 1 29ARM_ARCH_MINOR := 2 30 31AX_PLAT := plat/ax 32AX_PLAT_SOC := ${AX_PLAT}/${PLAT} 33 34PLAT_INCLUDES := -I${AX_PLAT_SOC}/include 35 36# Include GICv2 driver files 37include drivers/arm/gic/v2/gicv2.mk 38include lib/xlat_tables_v2/xlat_tables.mk 39 40LUA_GIC_SOURCES := ${GICV2_SOURCES} 41 42PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \ 43 lib/bl_aux_params/bl_aux_params.c \ 44 plat/common/plat_gicv2.c \ 45 plat/common/plat_psci_common.c \ 46 plat/arm/common/arm_common.c \ 47 ${AX_PLAT_SOC}/plat_helper.S \ 48 ${XLAT_TABLES_LIB_SRCS} 49 50BL31_SOURCES += ${LUA_GIC_SOURCES} \ 51 drivers/ti/uart/aarch64/16550_console.S \ 52 drivers/delay_timer/delay_timer.c \ 53 drivers/delay_timer/generic_delay_timer.c \ 54 lib/cpus/aarch64/cortex_a55.S \ 55 ${AX_PLAT_SOC}/bl31_plat_setup.c \ 56 ${AX_PLAT_SOC}/lua_topology.c \ 57 ${AX_PLAT_SOC}/lua_pm.c \ 58 ${AX_PLAT_SOC}/lua_console.c \ 59 ${AX_PLAT_SOC}/lua_gic.c \ 60 ${AX_PLAT_SOC}/lua_ehf.c \ 61 ${AX_PLAT_SOC}/lua_ras.c \ 62 ${AX_PLAT_SOC}/lua_sdei.c 63 64# RAS sources 65ifeq (${ENABLE_FEAT_RAS}-${HANDLE_EA_EL3_FIRST_NS},1-1) 66BL31_SOURCES += lib/extensions/ras/std_err_record.c \ 67 lib/extensions/ras/ras_common.c 68endif 69 70include lib/libfdt/libfdt.mk