summaryrefslogtreecommitdiff
path: root/meta/conf
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2011-07-30 01:04:33 +0000
committerKhem Raj <raj.khem@gmail.com>2011-07-29 10:18:15 -0700
commite23f9ce928353c9da2b9c4bfa9a1a125a7d160f2 (patch)
tree06a1a275b50c5cb905f334c1aee7ea01e02035a0 /meta/conf
parent90ce6e4b7ffaaf1e3af39583ca62b20f08e78959 (diff)
downloadopenembedded-core-e23f9ce928353c9da2b9c4bfa9a1a125a7d160f2.tar.gz
openembedded-core-e23f9ce928353c9da2b9c4bfa9a1a125a7d160f2.tar.bz2
openembedded-core-e23f9ce928353c9da2b9c4bfa9a1a125a7d160f2.tar.xz
openembedded-core-e23f9ce928353c9da2b9c4bfa9a1a125a7d160f2.zip
feature-arm-thumb: respect ARM_INSTRUCTION_SET
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/machine/include/arm/feature-arm-thumb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index b5801687f..e7d392e95 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -5,7 +5,8 @@
# but requires more instructions (140% for 70% smaller code) so may be
# slower.
TUNEVALID[thumb] = "Use thumb instructions instead of ARM"
-TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "thumb", "-mthumb", "-mno-thumb", d)}"
+ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "thumb", "${ARM_THUMB_M_OPT}", "${ARM_THUMB_M_OPT}", d)}"
OVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "thumb", ":thumb", "", d)}"
# Note armv7 will hit on armv7a as well