1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2000-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6extra-y	= start.o
7obj-y	= cpu.o cache.o
8
9ifdef	CONFIG_SPL_BUILD
10ifdef	CONFIG_SPL_NO_CPU_SUPPORT
11extra-y	:=
12endif
13endif
14
15obj-$(CONFIG_ARMADA100) += armada100/
16obj-$(CONFIG_MX25) += mx25/
17obj-$(CONFIG_MX27) += mx27/
18obj-$(if $(filter mxs,$(SOC)),y) += mxs/
19obj-$(if $(filter spear,$(SOC)),y) += spear/
20
21# some files can only build in ARM or THUMB2, not THUMB1
22
23ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
24ifndef CONFIG_HAS_THUMB2
25
26CFLAGS_cpu.o := -marm
27CFLAGS_cache.o := -marm
28
29endif
30endif
31