blob: fdb0c926fb2ced72fbc7511707573ed336de5741 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk6f213472003-08-29 22:00:43 +00002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2000-2006
wdenk6f213472003-08-29 22:00:43 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk6f213472003-08-29 22:00:43 +00005
Masahiro Yamadad8769c62013-10-17 17:34:49 +09006extra-y = start.o
7obj-y = cpu.o cache.o
wdenk6f213472003-08-29 22:00:43 +00008
Marek Vasut99bd3412011-10-24 00:14:23 +00009ifdef CONFIG_SPL_BUILD
10ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
Masahiro Yamadad8769c62013-10-17 17:34:49 +090011extra-y :=
Marek Vasut99bd3412011-10-24 00:14:23 +000012endif
13endif
Masahiro Yamada165ecd22014-11-13 12:28:40 +090014
Masahiro Yamada56f31e82014-11-13 12:28:42 +090015obj-$(CONFIG_ARMADA100) += armada100/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090016obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090017obj-$(CONFIG_MX25) += mx25/
18obj-$(CONFIG_MX27) += mx27/
19obj-$(if $(filter mxs,$(SOC)),y) += mxs/
Masahiro Yamada56f31e82014-11-13 12:28:42 +090020obj-$(if $(filter spear,$(SOC)),y) += spear/
Albert ARIBAUD62e92072015-10-23 18:06:40 +020021
22# some files can only build in ARM or THUMB2, not THUMB1
23
Tom Rini3a649402017-03-18 09:01:44 -040024ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUD62e92072015-10-23 18:06:40 +020025ifndef CONFIG_HAS_THUMB2
26
27CFLAGS_cpu.o := -marm
28CFLAGS_cache.o := -marm
29
30endif
31endif