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