Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2000-2006 |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 5 | |
Masahiro Yamada | d8769c6 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 6 | extra-y = start.o |
| 7 | obj-y = cpu.o cache.o |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 8 | |
Marek Vasut | 99bd341 | 2011-10-24 00:14:23 +0000 | [diff] [blame] | 9 | ifdef CONFIG_SPL_BUILD |
| 10 | ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE |
Masahiro Yamada | d8769c6 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 11 | extra-y := |
Marek Vasut | 99bd341 | 2011-10-24 00:14:23 +0000 | [diff] [blame] | 12 | endif |
| 13 | endif |
Masahiro Yamada | 165ecd2 | 2014-11-13 12:28:40 +0900 | [diff] [blame] | 14 | |
Masahiro Yamada | 56f31e8 | 2014-11-13 12:28:42 +0900 | [diff] [blame] | 15 | obj-$(CONFIG_ARMADA100) += armada100/ |
Masahiro Yamada | 56f31e8 | 2014-11-13 12:28:42 +0900 | [diff] [blame] | 16 | obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/ |
Masahiro Yamada | 56f31e8 | 2014-11-13 12:28:42 +0900 | [diff] [blame] | 17 | obj-$(CONFIG_MX25) += mx25/ |
| 18 | obj-$(CONFIG_MX27) += mx27/ |
| 19 | obj-$(if $(filter mxs,$(SOC)),y) += mxs/ |
Masahiro Yamada | 56f31e8 | 2014-11-13 12:28:42 +0900 | [diff] [blame] | 20 | obj-$(if $(filter spear,$(SOC)),y) += spear/ |
Albert ARIBAUD | 62e9207 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 21 | |
| 22 | # some files can only build in ARM or THUMB2, not THUMB1 |
| 23 | |
Tom Rini | 3a64940 | 2017-03-18 09:01:44 -0400 | [diff] [blame] | 24 | ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD |
Albert ARIBAUD | 62e9207 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 25 | ifndef CONFIG_HAS_THUMB2 |
| 26 | |
| 27 | CFLAGS_cpu.o := -marm |
| 28 | CFLAGS_cache.o := -marm |
| 29 | |
| 30 | endif |
| 31 | endif |