blob: 606153e407c7d6c3251f65dd9abe11345e707b8f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Albert Aribaudac2ba9e2010-06-17 19:36:07 +05302#
Albert ARIBAUD340983d2011-04-22 19:41:02 +02003# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaudac2ba9e2010-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 Aribaudac2ba9e2010-06-17 19:36:07 +05309
Masahiro Yamada65aac042013-10-17 17:34:49 +090010obj-y = cpu.o
11obj-y += dram.o
12obj-y += timer.o
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053013
14ifndef CONFIG_SKIP_LOWLEVEL_INIT
Masahiro Yamada65aac042013-10-17 17:34:49 +090015obj-y += lowlevel_init.o
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053016endif
Albert ARIBAUDa3823222015-10-23 18:06:40 +020017
18# some files can only build in ARM or THUMB2, not THUMB1
19
Tom Rini1c640a62017-03-18 09:01:44 -040020ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUDa3823222015-10-23 18:06:40 +020021ifndef CONFIG_HAS_THUMB2
22
23CFLAGS_cpu.o := -marm
24
25endif
26endif