aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-12-28 20:13:13 +0800
committerTom Rini <trini@konsulko.com>2021-01-16 12:11:43 -0500
commitf4a86cac20094c81992764023974603556e378df (patch)
treef574b5f134ccdf11c4f2b0ab8d89e75485ccfd60
parent8709ecc659dd1fc7156da48ecedc1a94b66bfaa5 (diff)
downloadu-boot-f4a86cac20094c81992764023974603556e378df.zip
u-boot-f4a86cac20094c81992764023974603556e378df.tar.gz
u-boot-f4a86cac20094c81992764023974603556e378df.tar.bz2
armv8: Makefile: build cache files when needed
If no need cache support, not build the cache files, such as in SPL. Signed-off-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--arch/arm/cpu/armv8/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile
index f7b4a5e..d85ddde 100644
--- a/arch/arm/cpu/armv8/Makefile
+++ b/arch/arm/cpu/armv8/Makefile
@@ -9,14 +9,16 @@ obj-y += cpu.o
ifndef CONFIG_$(SPL_TPL_)TIMER
obj-$(CONFIG_SYS_ARCH_TIMER) += generic_timer.o
endif
+ifndef CONFIG_$(SPL_)SYS_DCACHE_OFF
obj-y += cache_v8.o
+obj-y += cache.o
+endif
ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) += exceptions.o
else
obj-y += exceptions.o
obj-y += exception_level.o
endif
-obj-y += cache.o
obj-y += tlb.o
obj-y += transition.o
ifndef CONFIG_ARMV8_PSCI