wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2002-2006 |
wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | # | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 6 | # |
7 | |||||
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 8 | # Build private libgcc only when asked for |
9 | ifdef USE_PRIVATE_LIBGCC | ||||
10 | lib-y += _ashldi3.o | ||||
11 | lib-y += _ashrdi3.o | ||||
12 | lib-y += _divsi3.o | ||||
13 | lib-y += _lshrdi3.o | ||||
14 | lib-y += _modsi3.o | ||||
15 | lib-y += _udivsi3.o | ||||
16 | lib-y += _umodsi3.o | ||||
17 | lib-y += div0.o | ||||
18 | endif | ||||
wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 19 | |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 20 | ifdef CONFIG_ARM64 |
21 | obj-y += crt0_64.o | ||||
22 | else | ||||
23 | obj-y += crt0.o | ||||
24 | endif | ||||
Albert ARIBAUD | facdae5 | 2013-01-08 10:18:02 +0000 | [diff] [blame] | 25 | |
Allen Martin | ea74c93 | 2012-08-31 08:30:13 +0000 | [diff] [blame] | 26 | ifndef CONFIG_SPL_BUILD |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 27 | ifdef CONFIG_ARM64 |
28 | obj-y += relocate_64.o | ||||
29 | else | ||||
30 | obj-y += relocate.o | ||||
31 | endif | ||||
Simon Glass | 97bbf18 | 2013-03-11 06:49:57 +0000 | [diff] [blame] | 32 | ifndef CONFIG_SYS_GENERIC_BOARD |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 33 | obj-y += board.o |
Simon Glass | 97bbf18 | 2013-03-11 06:49:57 +0000 | [diff] [blame] | 34 | endif |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 35 | obj-y += sections.o |
Simon Glass | 97bbf18 | 2013-03-11 06:49:57 +0000 | [diff] [blame] | 36 | |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 37 | obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o |
38 | obj-$(CONFIG_CMD_BOOTM) += bootm.o | ||||
39 | obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o | ||||
40 | obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o | ||||
41 | obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o | ||||
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 42 | else |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_SPL_FRAMEWORK) += spl.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 44 | endif |
wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 45 | |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 46 | ifdef CONFIG_ARM64 |
47 | obj-y += interrupts_64.o | ||||
48 | else | ||||
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 49 | obj-y += interrupts.o |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 50 | endif |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 51 | obj-y += reset.o |
Stefano Babic | 84fb0dd | 2012-03-15 04:01:41 +0000 | [diff] [blame] | 52 | |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 53 | obj-y += cache.o |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 54 | ifndef CONFIG_ARM64 |
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 55 | obj-y += cache-cp15.o |
David Feng | 85fd5f1 | 2013-12-14 11:47:35 +0800 | [diff] [blame^] | 56 | endif |
Wolfgang Denk | d47f486 | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 57 | |
58 | # For EABI conformant tool chains, provide eabi_compat() | ||||
59 | ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) | ||||
Masahiro Yamada | 5a0c0ba | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 60 | extra-y += eabi_compat.o |
Wolfgang Denk | c73f44d | 2009-07-23 13:15:59 +0200 | [diff] [blame] | 61 | endif |