]> Git Repo - u-boot.git/commitdiff
armv8: Makefile: build cache files when needed
authorPeng Fan <[email protected]>
Mon, 28 Dec 2020 12:13:13 +0000 (20:13 +0800)
committerTom Rini <[email protected]>
Sun, 17 Jan 2021 00:17:11 +0000 (19:17 -0500)
If no need cache support, not build the cache files, such as in SPL.

Signed-off-by: Peng Fan <[email protected]>
arch/arm/cpu/armv8/Makefile

index f7b4a5ee46c083acfa1c0e638306dfcd03f6bdc6..d85ddde430a669d79aa718e3ab0c1aa843af07d9 100644 (file)
@@ -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
This page took 0.036185 seconds and 4 git commands to generate.