blob: 7f1436d76e1c085c1a80802b06fbbc5d048f9849 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk7eaacc52003-08-29 22:00:43 +00002#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2000-2006
wdenk7eaacc52003-08-29 22:00:43 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk7eaacc52003-08-29 22:00:43 +00005
Masahiro Yamada65aac042013-10-17 17:34:49 +09006extra-y = start.o
7obj-y = cpu.o cache.o
wdenk7eaacc52003-08-29 22:00:43 +00008
Marek Vasut654ac4c2011-10-24 00:14:23 +00009ifdef CONFIG_SPL_BUILD
Simon Glassf7bcc092019-09-25 08:56:26 -060010ifdef CONFIG_SPL_NO_CPU_SUPPORT
Masahiro Yamada65aac042013-10-17 17:34:49 +090011extra-y :=
Marek Vasut654ac4c2011-10-24 00:14:23 +000012endif
13endif
Masahiro Yamada40e73b12014-11-13 12:28:40 +090014
Masahiro Yamadaabde1272014-11-13 12:28:42 +090015obj-$(CONFIG_MX27) += mx27/
16obj-$(if $(filter mxs,$(SOC)),y) += mxs/
Masahiro Yamadaabde1272014-11-13 12:28:42 +090017obj-$(if $(filter spear,$(SOC)),y) += spear/
Icenowy Zhengb198c2e2022-01-29 10:23:02 -050018obj-$(CONFIG_ARCH_SUNXI) += sunxi/
Albert ARIBAUDa3823222015-10-23 18:06:40 +020019
20# some files can only build in ARM or THUMB2, not THUMB1
21
Tom Rini1c640a62017-03-18 09:01:44 -040022ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUDa3823222015-10-23 18:06:40 +020023ifndef CONFIG_HAS_THUMB2
24
25CFLAGS_cpu.o := -marm
26CFLAGS_cache.o := -marm
Marek BehĂșna62fac92021-05-20 13:24:11 +020027CFLAGS_REMOVE_cpu.o := $(LTO_CFLAGS)
28CFLAGS_REMOVE_cache.o := $(LTO_CFLAGS)
Albert ARIBAUDa3823222015-10-23 18:06:40 +020029
30endif
31endif