Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 1 | # |
Albert ARIBAUD | 340983d | 2011-04-22 19:41:02 +0200 | [diff] [blame] | 2 | # Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net> |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 3 | # |
| 4 | # Based on original Kirkwood support which is |
| 5 | # (C) Copyright 2009 |
| 6 | # Marvell Semiconductor <www.marvell.com> |
| 7 | # Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 8 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 10 | # |
| 11 | |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 12 | obj-y = cpu.o |
| 13 | obj-y += dram.o |
| 14 | obj-y += timer.o |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 15 | |
| 16 | ifndef CONFIG_SKIP_LOWLEVEL_INIT |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 17 | obj-y += lowlevel_init.o |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 18 | endif |
Albert ARIBAUD | a382322 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 19 | |
| 20 | # some files can only build in ARM or THUMB2, not THUMB1 |
| 21 | |
Tom Rini | 1c640a6 | 2017-03-18 09:01:44 -0400 | [diff] [blame] | 22 | ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD |
Albert ARIBAUD | a382322 | 2015-10-23 18:06:40 +0200 | [diff] [blame] | 23 | ifndef CONFIG_HAS_THUMB2 |
| 24 | |
| 25 | CFLAGS_cpu.o := -marm |
| 26 | |
| 27 | endif |
| 28 | endif |