blob: 679f19a233d74df109aebab24a9e36f9acbd3060 [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 Yamada5a0c0ba2013-10-17 17:34:52 +09008# Build private libgcc only when asked for
9ifdef USE_PRIVATE_LIBGCC
10lib-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
18endif
wdenkf47713f2002-09-08 19:49:36 +000019
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090020obj-y += crt0.o
Albert ARIBAUDfacdae52013-01-08 10:18:02 +000021
Allen Martinea74c932012-08-31 08:30:13 +000022ifndef CONFIG_SPL_BUILD
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090023obj-y += relocate.o
Simon Glass97bbf182013-03-11 06:49:57 +000024ifndef CONFIG_SYS_GENERIC_BOARD
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090025obj-y += board.o
Simon Glass97bbf182013-03-11 06:49:57 +000026endif
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090027obj-y += sections.o
Simon Glass97bbf182013-03-11 06:49:57 +000028
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090029obj-$(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
Tom Rini31dfba42012-08-22 15:31:05 -070034else
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090035obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Aneesh V55fc5b62011-07-13 05:11:06 +000036endif
wdenkf47713f2002-09-08 19:49:36 +000037
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090038obj-y += interrupts.o
39obj-y += reset.o
Stefano Babic84fb0dd2012-03-15 04:01:41 +000040
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090041obj-y += cache.o
42obj-y += cache-cp15.o
Wolfgang Denkd47f4862009-08-17 13:17:29 +020043
44# For EABI conformant tool chains, provide eabi_compat()
45ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090046extra-y += eabi_compat.o
Wolfgang Denkc73f44d2009-07-23 13:15:59 +020047endif