blob: 51497cc289b42ab55b1aaa9ae4fd06c1ec649288 [file] [log] [blame]
wdenkf47713f2002-09-08 19:49:36 +00001#
Marian Balakowiczd62379d2006-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 Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkf47713f2002-09-08 19:49:36 +00006#
7
Masahiro Yamadae1a211d2014-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
rev13@wp.plb3b57e82015-03-01 12:44:39 +010011ifdef CONFIG_CPU_V7M
12obj-y += vectors_m.o crt0.o
13else ifdef CONFIG_ARM64
David Feng85fd5f12013-12-14 11:47:35 +080014obj-y += crt0_64.o
15else
Albert ARIBAUD9852cc62014-04-15 16:13:51 +020016obj-y += vectors.o crt0.o
David Feng85fd5f12013-12-14 11:47:35 +080017endif
Albert ARIBAUDfacdae52013-01-08 10:18:02 +000018
Allen Martinea74c932012-08-31 08:30:13 +000019ifndef CONFIG_SPL_BUILD
David Feng85fd5f12013-12-14 11:47:35 +080020ifdef CONFIG_ARM64
21obj-y += relocate_64.o
22else
23obj-y += relocate.o
24endif
Simon Glass97bbf182013-03-11 06:49:57 +000025ifndef CONFIG_SYS_GENERIC_BOARD
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090026obj-y += board.o
Simon Glass97bbf182013-03-11 06:49:57 +000027endif
28
Matt Porterbd1fef52015-05-05 15:00:23 -040029obj-$(CONFIG_CPU_V7M) += cmd_boot.o
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090030obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
31obj-$(CONFIG_CMD_BOOTM) += bootm.o
32obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
33obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o
34obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
Tom Rini31dfba42012-08-22 15:31:05 -070035else
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090036obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Aneesh V55fc5b62011-07-13 05:11:06 +000037endif
Darwin Rambod32d4112014-06-09 11:12:59 -070038obj-$(CONFIG_SEMIHOSTING) += semihosting.o
wdenkf47713f2002-09-08 19:49:36 +000039
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010040obj-y += sections.o
Andreas Bießmann25429862015-02-06 23:06:45 +010041obj-y += stack.o
rev13@wp.plb3b57e82015-03-01 12:44:39 +010042ifdef CONFIG_CPU_V7M
43obj-y += interrupts_m.o
44else ifdef CONFIG_ARM64
Bhupesh Sharma8238f342015-07-01 09:58:03 +053045obj-y += ccn504.o
David Feng79bbde02014-03-14 14:26:27 +080046obj-y += gic_64.o
David Feng85fd5f12013-12-14 11:47:35 +080047obj-y += interrupts_64.o
48else
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090049obj-y += interrupts.o
David Feng85fd5f12013-12-14 11:47:35 +080050endif
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090051obj-y += reset.o
Stefano Babic84fb0dd2012-03-15 04:01:41 +000052
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090053obj-y += cache.o
David Feng85fd5f12013-12-14 11:47:35 +080054ifndef CONFIG_ARM64
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090055obj-y += cache-cp15.o
David Feng85fd5f12013-12-14 11:47:35 +080056endif
Wolfgang Denkd47f4862009-08-17 13:17:29 +020057
Masahiro Yamadadf00e522014-09-01 11:06:34 +090058obj-$(CONFIG_DEBUG_LL) += debug.o
59
Wolfgang Denkd47f4862009-08-17 13:17:29 +020060# For EABI conformant tool chains, provide eabi_compat()
61ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090062extra-y += eabi_compat.o
Wolfgang Denkc73f44d2009-07-23 13:15:59 +020063endif