blob: 0f730117c0e7821e8263c15ea9ecffdfbe3ed945 [file] [log] [blame]
wdenk6f213472003-08-29 22:00:43 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk6f213472003-08-29 22:00:43 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk6f213472003-08-29 22:00:43 +00006#
7
Masahiro Yamadad8769c62013-10-17 17:34:49 +09008extra-y = start.o
9obj-y = cpu.o cache.o
wdenk6f213472003-08-29 22:00:43 +000010
Marek Vasut99bd3412011-10-24 00:14:23 +000011ifdef CONFIG_SPL_BUILD
12ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
Masahiro Yamadad8769c62013-10-17 17:34:49 +090013extra-y :=
Marek Vasut99bd3412011-10-24 00:14:23 +000014endif
15endif
Masahiro Yamada165ecd22014-11-13 12:28:40 +090016
Masahiro Yamada56f31e82014-11-13 12:28:42 +090017obj-$(CONFIG_ARMADA100) += armada100/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090018obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090019obj-$(CONFIG_MX25) += mx25/
20obj-$(CONFIG_MX27) += mx27/
21obj-$(if $(filter mxs,$(SOC)),y) += mxs/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090022obj-$(if $(filter spear,$(SOC)),y) += spear/
Albert ARIBAUD62e92072015-10-23 18:06:40 +020023
24# some files can only build in ARM or THUMB2, not THUMB1
25
Tom Rini3a649402017-03-18 09:01:44 -040026ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUD62e92072015-10-23 18:06:40 +020027ifndef CONFIG_HAS_THUMB2
28
29CFLAGS_cpu.o := -marm
30CFLAGS_cache.o := -marm
31
32endif
33endif