1# 2# (C) Copyright 2002-2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _divsi3.o \ 9 _lshrdi3.o _modsi3.o _udivsi3.o _umodsi3.o div0.o 10 11ifdef CONFIG_CPU_V7M 12obj-y += vectors_m.o crt0.o 13else ifdef CONFIG_ARM64 14obj-y += crt0_64.o 15else 16obj-y += vectors.o crt0.o 17endif 18 19ifndef CONFIG_SPL_BUILD 20ifdef CONFIG_ARM64 21obj-y += relocate_64.o 22else 23obj-y += relocate.o 24endif 25ifndef CONFIG_SYS_GENERIC_BOARD 26obj-y += board.o 27endif 28 29obj-$(CONFIG_CPU_V7M) += cmd_boot.o 30obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o 31obj-$(CONFIG_CMD_BOOTM) += bootm.o 32obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o 33obj-$(CONFIG_USE_ARCH_MEMSET) += memset.o 34obj-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o 35else 36obj-$(CONFIG_SPL_FRAMEWORK) += spl.o 37endif 38obj-$(CONFIG_SEMIHOSTING) += semihosting.o 39 40obj-y += sections.o 41obj-y += stack.o 42ifdef CONFIG_CPU_V7M 43obj-y += interrupts_m.o 44else ifdef CONFIG_ARM64 45obj-y += gic_64.o 46obj-y += interrupts_64.o 47else 48obj-y += interrupts.o 49endif 50ifndef CONFIG_RESET 51obj-y += reset.o 52endif 53 54obj-y += cache.o 55ifndef CONFIG_ARM64 56obj-y += cache-cp15.o 57endif 58 59obj-$(CONFIG_DEBUG_LL) += debug.o 60 61# For EABI conformant tool chains, provide eabi_compat() 62ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) 63extra-y += eabi_compat.o 64endif 65