xref: /openbmc/u-boot/arch/arm/mach-orion5x/Makefile (revision 67cf22cb)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
4#
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>
9
10obj-y	= cpu.o
11obj-y	+= dram.o
12obj-y	+= timer.o
13
14ifndef CONFIG_SKIP_LOWLEVEL_INIT
15obj-y	+= lowlevel_init.o
16endif
17
18# some files can only build in ARM or THUMB2, not THUMB1
19
20ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
21ifndef CONFIG_HAS_THUMB2
22
23CFLAGS_cpu.o := -marm
24
25endif
26endif
27