aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMarek BehĂșn2021-05-20 13:24:14 +0200
committerTom Rini2021-05-24 14:21:30 -0400
commit9493e96e54eafa67df9b4f26e4cca4b68d167dbb (patch)
tree67f912b552494c123e16ec4ac603e5eccd01f97e /arch/arm
parent28d476eada6b49fdbd331171c6a487466e709a66 (diff)
ARM: fix LTO for keystone
When building keystone with LTO the compiler complains: Error: selected processor does not support `smc #0' in Thumb mode Fix this by removing -flto for the file implementing these SMC calls. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-keystone/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/Makefile b/arch/arm/mach-keystone/Makefile
index 3e076e12eca..6c7c25090a2 100644
--- a/arch/arm/mach-keystone/Makefile
+++ b/arch/arm/mach-keystone/Makefile
@@ -9,6 +9,7 @@ obj-y += init.o
obj-y += psc.o
obj-y += clock.o
obj-y += mon.o
+CFLAGS_REMOVE_mon.o := $(LTO_CFLAGS)
ifndef CONFIG_SPL_BUILD
obj-y += cmd_clock.o
obj-y += cmd_mon.o