All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
@ 2012-03-25 16:48 Khem Raj
  2012-03-26 11:01 ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2012-03-25 16:48 UTC (permalink / raw)
  To: openembedded-core

armv7 is least common denominator of armv7-a
armv7-m and armv7-r and armv7-m does not support
ARM instructions but only thumb2 instruction set
which means armv7 when chosen will complain if
code is compiled in arm mode which is default
in OE if not specified other wise

Fixes errors like below

error: target CPU does not support ARM mode

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/machine/include/arm/arch-armv7.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/conf/machine/include/arm/arch-armv7.inc b/meta/conf/machine/include/arm/arch-armv7.inc
index 33d9f0d..563a6b4 100644
--- a/meta/conf/machine/include/arm/arch-armv7.inc
+++ b/meta/conf/machine/include/arm/arch-armv7.inc
@@ -4,7 +4,7 @@ ARMPKGARCH ?= "armv7"
 
 TUNEVALID[armv7] = "Enable instructions for ARMv7"
 TUNE_CONFLICTS[armv7] = "armv4 armv5 armv6"
-TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7", "", d)}"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7 -mthumb", "", d)}"
 MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "armv7", ":armv7", "" ,d)}"
 
 require conf/machine/include/arm/arch-armv6.inc
-- 
1.7.9.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-26 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-25 16:48 [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS Khem Raj
2012-03-26 11:01 ` Richard Purdie
2012-03-26 11:06   ` Phil Blundell
2012-03-26 11:21     ` Richard Purdie
2012-03-26 14:13       ` Khem Raj
2012-03-26 14:37         ` Phil Blundell
2012-03-26 15:12           ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.