blob: 5249aa8844cf2bb1be6d7a54a98c772a67356754 [file] [log] [blame]
Albert Aribaudac2ba9e2010-06-17 19:36:07 +05301#
Albert ARIBAUD340983d2011-04-22 19:41:02 +02002# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaudac2ba9e2010-06-17 19:36:07 +05303#
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 Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053010#
11
Masahiro Yamada65aac042013-10-17 17:34:49 +090012obj-y = cpu.o
13obj-y += dram.o
14obj-y += timer.o
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053015
16ifndef CONFIG_SKIP_LOWLEVEL_INIT
Masahiro Yamada65aac042013-10-17 17:34:49 +090017obj-y += lowlevel_init.o
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053018endif
Albert ARIBAUDa3823222015-10-23 18:06:40 +020019
20# some files can only build in ARM or THUMB2, not THUMB1
21
Tom Rini1c640a62017-03-18 09:01:44 -040022ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Albert ARIBAUDa3823222015-10-23 18:06:40 +020023ifndef CONFIG_HAS_THUMB2
24
25CFLAGS_cpu.o := -marm
26
27endif
28endif