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:
Peter Mitsis 2015-05-12 12:12:02 -04:00 committed by Anas Nashif
parent c3d43a5b1f
commit afe4503177
1 changed files with 1 additions and 1 deletions

View File

@ -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}