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 8# 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 19 20ifdef CONFIG_ARM64 21obj-y += crt0_64.o 22else 23obj-y += crt0.o 24endif 25 26ifndef CONFIG_SPL_BUILD 27ifdef CONFIG_ARM64 28obj-y += relocate_64.o 29else 30obj-y += relocate.o 31endif 32ifndef CONFIG_SYS_GENERIC_BOARD 33obj-y += board.o 34endif 35obj-y += sections.o 36 37obj-$(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 42else 43obj-$(CONFIG_SPL_FRAMEWORK) += spl.o 44endif 45 46ifdef CONFIG_ARM64 47obj-y += interrupts_64.o 48else 49obj-y += interrupts.o 50endif 51obj-y += reset.o 52 53obj-y += cache.o 54ifndef CONFIG_ARM64 55obj-y += cache-cp15.o 56endif 57 58# For EABI conformant tool chains, provide eabi_compat() 59ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) 60extra-y += eabi_compat.o 61endif 62