diff mbox series

[3/3] armv8: Makefile: build cache files when needed

Message ID 20201228121313.16520-3-peng.fan@oss.nxp.com
State New
Headers show
Series [1/3] common: Makefile: drop duplicated line | expand

Commit Message

Peng Fan (OSS) Dec. 28, 2020, 12:13 p.m. UTC
From: Peng Fan <peng.fan@nxp.com>


If no need cache support, not build the cache files, such as in SPL.

Signed-off-by: Peng Fan <peng.fan@nxp.com>

---
 arch/arm/cpu/armv8/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.28.0

Comments

Tom Rini Jan. 18, 2021, 1:01 p.m. UTC | #1
On Mon, Dec 28, 2020 at 08:13:13PM +0800, Peng Fan (OSS) wrote:

> From: Peng Fan <peng.fan@nxp.com>

> 

> If no need cache support, not build the cache files, such as in SPL.

> 

> Signed-off-by: Peng Fan <peng.fan@nxp.com>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile
index 93d26f9856..0f499699dc 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