blob: 3c381dedaf8823624b10c42ac5ee867b750eb611 [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
Simon Glassc46760d2024-09-29 19:49:53 -060014ifndef CONFIG_$(XPL_)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
Simon Glassc46760d2024-09-29 19:49:53 -060020ifdef CONFIG_$(XPL_)SYS_THUMB_BUILD
Albert ARIBAUD62e92072015-10-23 18:06:40 +020021ifndef CONFIG_HAS_THUMB2
22
23CFLAGS_cpu.o := -marm
24
25endif
26endif