From: Peng Fan Date: Mon, 28 Dec 2020 12:13:13 +0000 (+0800) Subject: armv8: Makefile: build cache files when needed X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0634b374aeb96f8e1b0c76e77de3b247577254e8;p=u-boot.git 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 --- diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile index f7b4a5ee46..d85ddde430 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