blob: 321997c332cb1c8a06df29c944350021fc1b6dde [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
David Feng85fd5f12013-12-14 11:47:35 +080020ifdef CONFIG_ARM64
21obj-y += crt0_64.o
22else
23obj-y += crt0.o
24endif
Albert ARIBAUDfacdae52013-01-08 10:18:02 +000025
Allen Martinea74c932012-08-31 08:30:13 +000026ifndef CONFIG_SPL_BUILD
David Feng85fd5f12013-12-14 11:47:35 +080027ifdef CONFIG_ARM64
28obj-y += relocate_64.o
29else
30obj-y += relocate.o
31endif
Simon Glass97bbf182013-03-11 06:49:57 +000032ifndef CONFIG_SYS_GENERIC_BOARD
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090033obj-y += board.o
Simon Glass97bbf182013-03-11 06:49:57 +000034endif
David Feng85fd5f12013-12-14 11:47:35 +080035obj-y += sections.o
Simon Glass97bbf182013-03-11 06:49:57 +000036
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090037obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
38obj-$(CONFIG_CMD_BOOTM) += bootm.o
39obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
40obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o
41obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
Tom Rini31dfba42012-08-22 15:31:05 -070042else
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090043obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Aneesh V55fc5b62011-07-13 05:11:06 +000044endif
wdenkf47713f2002-09-08 19:49:36 +000045
David Feng85fd5f12013-12-14 11:47:35 +080046ifdef CONFIG_ARM64
47obj-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
58# For EABI conformant tool chains, provide eabi_compat()
59ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090060extra-y += eabi_compat.o
Wolfgang Denkc73f44d2009-07-23 13:15:59 +020061endif