mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
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>
This commit is contained in:
parent
86c5e21013
commit
e5fc9037dd
2 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,8 @@ ifndef CONFIG_HAS_THUMB2
|
|||
|
||||
CFLAGS_cpu.o := -marm
|
||||
CFLAGS_cache.o := -marm
|
||||
CFLAGS_REMOVE_cpu.o := $(LTO_CFLAGS)
|
||||
CFLAGS_REMOVE_cache.o := $(LTO_CFLAGS)
|
||||
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -64,6 +64,7 @@ endif
|
|||
|
||||
obj-y += cache.o
|
||||
obj-$(CONFIG_SYS_ARM_CACHE_CP15) += cache-cp15.o
|
||||
CFLAGS_REMOVE_cache-cp15.o := $(LTO_CFLAGS)
|
||||
|
||||
obj-y += psci-dt.o
|
||||
|
||||
|
|
Loading…
Reference in a new issue