cortex-m3: adjusted target cflags
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Mon, 7 Feb 2011 23:53:05 +0000 (23:53 +0000)
committerKhem Raj <raj.khem@gmail.com>
Sat, 12 Feb 2011 20:10:10 +0000 (12:10 -0800)
commitd7eaa9faa839a1219d19a51f117fa9dc8fee42a4
treeb880489904ee8da4b24b5540b205c766e4401642
parent6c198396d0e7fcb4b55d4a7a129c0dd71556dcae
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>
conf/machine/include/tune-cortexm3.inc