blob: 1ef240047f48d067748a42b08ed975ec96966e65 [file] [log] [blame]
wdenkf47713f2002-09-08 19:49:36 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenkf47713f2002-09-08 19:49:36 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkf47713f2002-09-08 19:49:36 +00006#
7
Masahiro Yamadacd2e46c2014-03-05 16:59:38 +09008lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _divsi3.o \
9 _lshrdi3.o _modsi3.o _udivsi3.o _umodsi3.o div0.o
wdenkf47713f2002-09-08 19:49:36 +000010
David Feng0ae76532013-12-14 11:47:35 +080011ifdef CONFIG_ARM64
12obj-y += crt0_64.o
13else
Albert ARIBAUD41623c92014-04-15 16:13:51 +020014obj-y += vectors.o crt0.o
David Feng0ae76532013-12-14 11:47:35 +080015endif
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090016
17ifndef CONFIG_SPL_BUILD
David Feng0ae76532013-12-14 11:47:35 +080018ifdef CONFIG_ARM64
19obj-y += relocate_64.o
20else
21obj-y += relocate.o
22endif
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090023ifndef CONFIG_SYS_GENERIC_BOARD
24obj-y += board.o
25endif
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090026
27obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
28obj-$(CONFIG_CMD_BOOTM) += bootm.o
29obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
30obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o
31obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
32else
33obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
34endif
Darwin Rambo261d2762014-06-09 11:12:59 -070035obj-$(CONFIG_SEMIHOSTING) += semihosting.o
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090036
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010037obj-y += sections.o
David Feng0ae76532013-12-14 11:47:35 +080038ifdef CONFIG_ARM64
David Fengc71645a2014-03-14 14:26:27 +080039obj-y += gic_64.o
David Feng0ae76532013-12-14 11:47:35 +080040obj-y += interrupts_64.o
41else
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090042obj-y += interrupts.o
David Feng0ae76532013-12-14 11:47:35 +080043endif
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090044obj-y += reset.o
45
46obj-y += cache.o
David Feng0ae76532013-12-14 11:47:35 +080047ifndef CONFIG_ARM64
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090048obj-y += cache-cp15.o
David Feng0ae76532013-12-14 11:47:35 +080049endif
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090050
Wolfgang Denkf772acf2009-08-17 13:17:29 +020051# For EABI conformant tool chains, provide eabi_compat()
52ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090053extra-y += eabi_compat.o
Wolfgang Denkf772acf2009-08-17 13:17:29 +020054endif