From fb11a62fede3d76506ba353f93264569e711cf74 Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Tue, 21 Jul 2015 11:53:35 +0530 Subject: [PATCH] Tegra: T210: include CPU files from SoC's platform.mk This patch moves the inclusion of CPU code (A53, A57) to T210's makefile. This way we can reduce code size for Tegra platforms by including only the required CPU files. Signed-off-by: Varun Wadekar --- plat/nvidia/tegra/common/tegra_common.mk | 2 -- plat/nvidia/tegra/soc/t210/platform_t210.mk | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plat/nvidia/tegra/common/tegra_common.mk b/plat/nvidia/tegra/common/tegra_common.mk index b88742a8d..e1c0d84d6 100644 --- a/plat/nvidia/tegra/common/tegra_common.mk +++ b/plat/nvidia/tegra/common/tegra_common.mk @@ -50,8 +50,6 @@ BL31_SOURCES += drivers/arm/gic/gic_v2.c \ drivers/console/console.S \ drivers/delay_timer/delay_timer.c \ drivers/ti/uart/16550_console.S \ - lib/cpus/aarch64/cortex_a53.S \ - lib/cpus/aarch64/cortex_a57.S \ plat/common/aarch64/platform_mp_stack.S \ ${COMMON_DIR}/aarch64/tegra_helpers.S \ ${COMMON_DIR}/drivers/memctrl/memctrl.c \ diff --git a/plat/nvidia/tegra/soc/t210/platform_t210.mk b/plat/nvidia/tegra/soc/t210/platform_t210.mk index 003b48960..ca7718c88 100644 --- a/plat/nvidia/tegra/soc/t210/platform_t210.mk +++ b/plat/nvidia/tegra/soc/t210/platform_t210.mk @@ -46,8 +46,10 @@ $(eval $(call add_define,PLATFORM_CLUSTER_COUNT)) PLATFORM_MAX_CPUS_PER_CLUSTER := 4 $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER)) -BL31_SOURCES += ${SOC_DIR}/plat_psci_handlers.c \ - ${SOC_DIR}/plat_setup.c \ +BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \ + lib/cpus/aarch64/cortex_a57.S \ + ${SOC_DIR}/plat_psci_handlers.c \ + ${SOC_DIR}/plat_setup.c \ ${SOC_DIR}/plat_secondary.c # Enable workarounds for selected Cortex-A53 erratas. -- GitLab