diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-05-20 13:24:14 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-24 14:21:30 -0400 |
commit | 9493e96e54eafa67df9b4f26e4cca4b68d167dbb (patch) | |
tree | 67f912b552494c123e16ec4ac603e5eccd01f97e | |
parent | 28d476eada6b49fdbd331171c6a487466e709a66 (diff) | |
download | u-boot-9493e96e54eafa67df9b4f26e4cca4b68d167dbb.zip u-boot-9493e96e54eafa67df9b4f26e4cca4b68d167dbb.tar.gz u-boot-9493e96e54eafa67df9b4f26e4cca4b68d167dbb.tar.bz2 |
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>
-rw-r--r-- | arch/arm/mach-keystone/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/Makefile b/arch/arm/mach-keystone/Makefile index 3e076e1..6c7c250 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 |