wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 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 | 1a45966 | 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 | |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 8 | # Build private libgcc only when asked for |
Wolfgang Denk | 52b1bf2 | 2009-07-23 13:15:59 +0200 | [diff] [blame] | 9 | ifdef USE_PRIVATE_LIBGCC |
Masahiro Yamada | fa8f950 | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 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 |
Wolfgang Denk | 52b1bf2 | 2009-07-23 13:15:59 +0200 | [diff] [blame] | 18 | endif |
wdenk | f47713f | 2002-09-08 19:49:36 +0000 | [diff] [blame] | 19 | |
Masahiro Yamada | fa8f950 | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 20 | obj-y += crt0.o |
| 21 | |
| 22 | ifndef CONFIG_SPL_BUILD |
| 23 | obj-y += relocate.o |
| 24 | ifndef CONFIG_SYS_GENERIC_BOARD |
| 25 | obj-y += board.o |
| 26 | endif |
| 27 | obj-y += sections.o |
| 28 | |
| 29 | obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o |
| 30 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
| 31 | obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o |
| 32 | obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o |
| 33 | obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o |
| 34 | else |
| 35 | obj-$(CONFIG_SPL_FRAMEWORK) += spl.o |
| 36 | endif |
| 37 | |
| 38 | obj-y += interrupts.o |
| 39 | obj-y += reset.o |
| 40 | |
| 41 | obj-y += cache.o |
| 42 | obj-y += cache-cp15.o |
| 43 | |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 44 | # For EABI conformant tool chains, provide eabi_compat() |
| 45 | ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) |
Masahiro Yamada | fa8f950 | 2013-10-17 17:34:52 +0900 | [diff] [blame] | 46 | extra-y += eabi_compat.o |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 47 | endif |