3aae7ab0f1
Because of inline asm usage in platsmp.c, smc instruction creates build failure for ARM V6+V7 build where as using instruction encoding for smc breaks the thumb2 build. So move the code snippet to separate asm file and mark it with 'armv7-a$(plus_sec)' to avoid any build issues. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
6 lines
167 B
Makefile
6 lines
167 B
Makefile
obj-y := keystone.o smc.o
|
|
|
|
plus_sec := $(call as-instr,.arch_extension sec,+sec)
|
|
AFLAGS_smc.o :=-Wa,-march=armv7-a$(plus_sec)
|
|
|
|
obj-$(CONFIG_SMP) += platsmp.o
|