blob: 679f19a233d74df109aebab24a9e36f9acbd3060 [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
Wolfgang Denkf772acf2009-08-17 13:17:29 +02008# Build private libgcc only when asked for
Wolfgang Denk52b1bf22009-07-23 13:15:59 +02009ifdef USE_PRIVATE_LIBGCC
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090010lib-y += _ashldi3.o
11lib-y += _ashrdi3.o
12lib-y += _divsi3.o
13lib-y += _lshrdi3.o
14lib-y += _modsi3.o
15lib-y += _udivsi3.o
16lib-y += _umodsi3.o
17lib-y += div0.o
Wolfgang Denk52b1bf22009-07-23 13:15:59 +020018endif
wdenkf47713f2002-09-08 19:49:36 +000019
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090020obj-y += crt0.o
21
22ifndef CONFIG_SPL_BUILD
23obj-y += relocate.o
24ifndef CONFIG_SYS_GENERIC_BOARD
25obj-y += board.o
26endif
27obj-y += sections.o
28
29obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
30obj-$(CONFIG_CMD_BOOTM) += bootm.o
31obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
32obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o
33obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
34else
35obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
36endif
37
38obj-y += interrupts.o
39obj-y += reset.o
40
41obj-y += cache.o
42obj-y += cache-cp15.o
43
Wolfgang Denkf772acf2009-08-17 13:17:29 +020044# For EABI conformant tool chains, provide eabi_compat()
45ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
Masahiro Yamadafa8f9502013-10-17 17:34:52 +090046extra-y += eabi_compat.o
Wolfgang Denkf772acf2009-08-17 13:17:29 +020047endif