projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d476e
)
ARM: fix LTO for keystone
author
Marek Behún
<marek.behun@nic.cz>
Thu, 20 May 2021 11:24:14 +0000
(13:24 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000
(14:21 -0400)
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>
arch/arm/mach-keystone/Makefile
patch
|
blob
|
history
diff --git
a/arch/arm/mach-keystone/Makefile
b/arch/arm/mach-keystone/Makefile
index 3e076e12eca623282f8572c71be80542414a6d88..6c7c25090a29cae9429f2f745d40d67e66b42de3 100644
(file)
--- 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