blob: 606153e407c7d6c3251f65dd9abe11345e707b8f [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Albert Aribaud0c61e6f2010-06-17 19:36:07 +05302#
Albert ARIBAUD57b4bce2011-04-22 19:41:02 +02003# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaud0c61e6f2010-06-17 19:36:07 +05304#
5# Based on original Kirkwood support which is
6# (C) Copyright 2009
7# Marvell Semiconductor <www.marvell.com>
8# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
Albert Aribaud0c61e6f2010-06-17 19:36:07 +05309
Masahiro Yamadad8769c62013-10-17 17:34:49 +090010obj-y = cpu.o
11obj-y += dram.o
12obj-y += timer.o
Albert Aribaud0c61e6f2010-06-17 19:36:07 +053013
14ifndef CONFIG_SKIP_LOWLEVEL_INIT
Masahiro Yamadad8769c62013-10-17 17:34:49 +090015obj-y += lowlevel_init.o
Albert Aribaud0c61e6f2010-06-17 19:36:07 +053016endif
Albert ARIBAUD62e92072015-10-23 18:06:40 +020017
18# some files can only build in ARM or THUMB2, not THUMB1
19
Tom Rini3a649402017-03-18 09:01:44 -040020ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUD62e92072015-10-23 18:06:40 +020021ifndef CONFIG_HAS_THUMB2
22
23CFLAGS_cpu.o := -marm
24
25endif
26endif