Specify -march=armv7-m when building for cortex-m[3,4]
If not specified, some GCC variants may default to -march=armv5. Change-Id: Ieb97591195b00fea3c7602df554c0d89164be19e Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
c3d43a5b1f
commit
afe4503177
|
@ -48,7 +48,7 @@ iGCC_arm_ASMFLAGS = -mthumb -Wa,-mthumb ${iGCC_arm_DEFS}
|
|||
# Instruction-Set Architecture (ISA)
|
||||
iMCPU_CortexM3 = m3
|
||||
iMCPU_CortexM4 = m4f
|
||||
iMCPU ?= -mcpu=cortex-${iMCPU_${vCPU}}
|
||||
iMCPU ?= -mcpu=cortex-${iMCPU_${vCPU}} -march=armv7-m
|
||||
|
||||
iGCC_${vCPU}_CFLAGS ?= ${iMCPU}
|
||||
iGCC_${vCPU}_CXXFLAGS ?= ${iMCPU}
|
||||
|
|
Loading…
Reference in New Issue