2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2005-01-09 23:16:25 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2005-01-09 23:16:25 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2013-10-17 08:34:49 +00:00
|
|
|
extra-y = start.o
|
|
|
|
obj-y = cpu.o cache.o
|
2005-01-09 23:16:25 +00:00
|
|
|
|
2011-10-24 00:14:23 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2019-09-25 14:56:26 +00:00
|
|
|
ifdef CONFIG_SPL_NO_CPU_SUPPORT
|
2013-10-17 08:34:49 +00:00
|
|
|
extra-y :=
|
2011-10-24 00:14:23 +00:00
|
|
|
endif
|
|
|
|
endif
|
2014-11-13 03:28:40 +00:00
|
|
|
|
2014-11-13 03:28:42 +00:00
|
|
|
obj-$(if $(filter mxs,$(SOC)),y) += mxs/
|
2022-01-29 15:23:02 +00:00
|
|
|
obj-$(CONFIG_ARCH_SUNXI) += sunxi/
|
2015-10-23 16:06:40 +00:00
|
|
|
|
|
|
|
# some files can only build in ARM or THUMB2, not THUMB1
|
|
|
|
|
2017-03-18 13:01:44 +00:00
|
|
|
ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
|
2015-10-23 16:06:40 +00:00
|
|
|
ifndef CONFIG_HAS_THUMB2
|
|
|
|
|
|
|
|
CFLAGS_cpu.o := -marm
|
|
|
|
CFLAGS_cache.o := -marm
|
ARM: fix LTO build for some thumb-interwork cases
Fix LTO build for some thumb-interwork usecases (such as for
da850evm_defconfig), where inline assmebly such as
mrc p15,0,r2,c1,c0,0
causes the compiler to fail during LTO linking with
Error: selected processor does not support `mrc p15,0,r2,c1,c0,0'
in Thumb mode
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-05-20 11:24:11 +00:00
|
|
|
CFLAGS_REMOVE_cpu.o := $(LTO_CFLAGS)
|
|
|
|
CFLAGS_REMOVE_cache.o := $(LTO_CFLAGS)
|
2015-10-23 16:06:40 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|