diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2011-02-07 23:53:05 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2011-02-12 12:10:10 -0800 |
commit | d7eaa9faa839a1219d19a51f117fa9dc8fee42a4 (patch) | |
tree | b880489904ee8da4b24b5540b205c766e4401642 /conf/machine | |
parent | 6c198396d0e7fcb4b55d4a7a129c0dd71556dcae (diff) | |
download | openembedded-d7eaa9faa839a1219d19a51f117fa9dc8fee42a4.tar.gz |
cortex-m3: adjusted target cflags
Explicit '-mthumb' is required because Cortex-M3 does not support ARM
instructions and actual flags cause gcc to fail with 'error: target CPU
does not support ARM mode'.
The '-mcpu=cortex-m3' is shorter than '-march=armv7-m -mtune=cortex-m3'
and enables workarounds like '-mfix-cortex-m3-ldrd'.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/machine')
-rw-r--r-- | conf/machine/include/tune-cortexm3.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/machine/include/tune-cortexm3.inc b/conf/machine/include/tune-cortexm3.inc index 6da9aeedda..a66a33c50b 100644 --- a/conf/machine/include/tune-cortexm3.inc +++ b/conf/machine/include/tune-cortexm3.inc @@ -1,4 +1,4 @@ # valid options for -march: `armv7', `armv7-m' -TARGET_CC_ARCH = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp" +TARGET_CC_ARCH = "-mthumb -mcpu=cortex-m3 -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv7" BASE_PACKAGE_ARCH = "armv7" |