Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2000-2006 |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 5 | |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 6 | extra-y = start.o |
7 | obj-y = cpu.o cache.o | ||||
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 8 | |
Marek Vasut | 654ac4c | 2011-10-24 00:14:23 +0000 | [diff] [blame] | 9 | ifdef CONFIG_SPL_BUILD |
Simon Glass | f7bcc09 | 2019-09-25 08:56:26 -0600 | [diff] [blame] | 10 | ifdef CONFIG_SPL_NO_CPU_SUPPORT |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 11 | extra-y := |
Marek Vasut | 654ac4c | 2011-10-24 00:14:23 +0000 | [diff] [blame] | 12 | endif |
13 | endif | ||||
Masahiro Yamada | 40e73b1 | 2014-11-13 12:28:40 +0900 | [diff] [blame] | 14 | |
Masahiro Yamada | abde127 | 2014-11-13 12:28:42 +0900 | [diff] [blame] | 15 | obj-$(if $(filter mxs,$(SOC)),y) += mxs/ |
Icenowy Zheng | b198c2e | 2022-01-29 10:23:02 -0500 | [diff] [blame] | 16 | obj-$(CONFIG_ARCH_SUNXI) += sunxi/ |
Albert ARIBAUD | a382322 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 17 | |
18 | # some files can only build in ARM or THUMB2, not THUMB1 | ||||
19 | |||||
Tom Rini | 1c640a6 | 2017-03-18 09:01:44 -0400 | [diff] [blame] | 20 | ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD |
Albert ARIBAUD | a382322 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 21 | ifndef CONFIG_HAS_THUMB2 |
22 | |||||
23 | CFLAGS_cpu.o := -marm | ||||
24 | CFLAGS_cache.o := -marm | ||||
Marek BehĂșn | a62fac9 | 2021-05-20 13:24:11 +0200 | [diff] [blame] | 25 | CFLAGS_REMOVE_cpu.o := $(LTO_CFLAGS) |
26 | CFLAGS_REMOVE_cache.o := $(LTO_CFLAGS) | ||||
Albert ARIBAUD | a382322 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 27 | |
28 | endif | ||||
29 | endif |