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>
This commit is contained in:
parent
52e77726ef
commit
0634b374ae
|
@ -9,14 +9,16 @@ obj-y += cpu.o
|
||||||
ifndef CONFIG_$(SPL_TPL_)TIMER
|
ifndef CONFIG_$(SPL_TPL_)TIMER
|
||||||
obj-$(CONFIG_SYS_ARCH_TIMER) += generic_timer.o
|
obj-$(CONFIG_SYS_ARCH_TIMER) += generic_timer.o
|
||||||
endif
|
endif
|
||||||
|
ifndef CONFIG_$(SPL_)SYS_DCACHE_OFF
|
||||||
obj-y += cache_v8.o
|
obj-y += cache_v8.o
|
||||||
|
obj-y += cache.o
|
||||||
|
endif
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
obj-$(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) += exceptions.o
|
obj-$(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) += exceptions.o
|
||||||
else
|
else
|
||||||
obj-y += exceptions.o
|
obj-y += exceptions.o
|
||||||
obj-y += exception_level.o
|
obj-y += exception_level.o
|
||||||
endif
|
endif
|
||||||
obj-y += cache.o
|
|
||||||
obj-y += tlb.o
|
obj-y += tlb.o
|
||||||
obj-y += transition.o
|
obj-y += transition.o
|
||||||
ifndef CONFIG_ARMV8_PSCI
|
ifndef CONFIG_ARMV8_PSCI
|
||||||
|
|
Loading…
Reference in New Issue