summaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 14:24:14 +0300
committerTom Rini <trini@konsulko.com>2021-05-24 21:21:30 +0300
commit9493e96e54eafa67df9b4f26e4cca4b68d167dbb (patch)
tree67f912b552494c123e16ec4ac603e5eccd01f97e /arch/arm/mach-keystone
parent28d476eada6b49fdbd331171c6a487466e709a66 (diff)
downloadu-boot-9493e96e54eafa67df9b4f26e4cca4b68d167dbb.tar.xz
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/mach-keystone')
-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 3e076e12ec..6c7c25090a 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