From patchwork Mon Feb 7 15:53:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: cortex-m3: adjusted target cflags Date: Mon, 07 Feb 2011 15:53:05 -0000 From: Enrico Scholz X-Patchwork-Id: 479 Message-Id: <1297093986-24331-1-git-send-email-enrico.scholz@sigma-chemnitz.de> To: openembedded-devel@lists.openembedded.org Cc: Enrico Scholz 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 --- 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 6da9aee..a66a33c 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"