xref: /openbmc/u-boot/arch/arm/cpu/armv7/sunxi/Makefile (revision 643ad899)
1#
2# (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
3#
4# Based on some other Makefile
5# (C) Copyright 2000-2003
6# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7#
8# SPDX-License-Identifier:	GPL-2.0+
9#
10obj-y	+= timer.o
11obj-y	+= board.o
12obj-y	+= clock.o
13obj-y	+= pinmux.o
14obj-$(CONFIG_MACH_SUN6I)	+= prcm.o
15obj-$(CONFIG_MACH_SUN8I)	+= prcm.o
16obj-$(CONFIG_MACH_SUN4I)	+= clock_sun4i.o
17obj-$(CONFIG_MACH_SUN5I)	+= clock_sun4i.o
18obj-$(CONFIG_MACH_SUN6I)	+= clock_sun6i.o
19obj-$(CONFIG_MACH_SUN7I)	+= clock_sun4i.o
20obj-$(CONFIG_MACH_SUN8I)	+= clock_sun6i.o
21
22ifndef CONFIG_SPL_BUILD
23obj-y	+= cpu_info.o
24ifdef CONFIG_ARMV7_PSCI
25obj-y	+= psci.o
26endif
27endif
28
29ifdef CONFIG_SPL_BUILD
30obj-$(CONFIG_MACH_SUN4I)	+= dram.o
31obj-$(CONFIG_MACH_SUN5I)	+= dram.o
32obj-$(CONFIG_MACH_SUN7I)	+= dram.o
33ifdef CONFIG_SPL_FEL
34obj-y	+= start.o
35endif
36endif
37