1# 2# Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. 3# Copyright (c) 2020, NVIDIA Corporation. All rights reserved. 4# 5# SPDX-License-Identifier: BSD-3-Clause 6# 7 8PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \ 9 -Iplat/nvidia/tegra/include/lib \ 10 -Iplat/nvidia/tegra/include 11 12include lib/xlat_tables_v2/xlat_tables.mk 13PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} 14 15TEGRA_COMMON := plat/nvidia/tegra/common 16TEGRA_DRIVERS := plat/nvidia/tegra/drivers 17TEGRA_LIBS := plat/nvidia/tegra/lib 18 19# Include GICv3 driver files 20include drivers/arm/gic/v3/gicv3.mk 21TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \ 22 plat/common/plat_gicv3.c \ 23 ${TEGRA_COMMON}/tegra_gicv3.c 24 25# Include GICv2 driver files 26include drivers/arm/gic/v2/gicv2.mk 27 28TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \ 29 plat/common/plat_gicv2.c \ 30 ${TEGRA_COMMON}/tegra_gicv2.c 31 32TEGRA_GICv3_SOURCES := drivers/arm/gic/common/gic_common.c \ 33 drivers/arm/gic/v3/arm_gicv3_common.c \ 34 drivers/arm/gic/v3/gicv3_main.c \ 35 drivers/arm/gic/v3/gicv3_helpers.c \ 36 plat/common/plat_gicv3.c \ 37 ${TEGRA_COMMON}/tegra_gicv3.c 38 39BL31_SOURCES += drivers/delay_timer/delay_timer.c \ 40 drivers/io/io_storage.c \ 41 plat/common/aarch64/crash_console_helpers.S \ 42 ${TEGRA_LIBS}/debug/profiler.c \ 43 ${TEGRA_COMMON}/aarch64/tegra_helpers.S \ 44 ${TEGRA_LIBS}/debug/profiler.c \ 45 ${TEGRA_COMMON}/tegra_bl31_setup.c \ 46 ${TEGRA_COMMON}/tegra_delay_timer.c \ 47 ${TEGRA_COMMON}/tegra_fiq_glue.c \ 48 ${TEGRA_COMMON}/tegra_io_storage.c \ 49 ${TEGRA_COMMON}/tegra_platform.c \ 50 ${TEGRA_COMMON}/tegra_pm.c \ 51 ${TEGRA_COMMON}/tegra_sip_calls.c \ 52 ${TEGRA_COMMON}/tegra_sdei.c 53 54ifneq ($(ENABLE_STACK_PROTECTOR), 0) 55BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c 56endif 57ifeq (${EL3_EXCEPTION_HANDLING},1) 58BL31_SOURCES += plat/common/aarch64/plat_ehf.c 59endif 60