[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH] feature-arm-thumb: Take ARM_INSTRUCTION_SET into account to decide thumb mode
From: raj.khem () gmail ! com (Khem Raj)
Date: 2011-07-29 16:58:00
Message-ID: 1311958680-10604-1-git-send-email-raj.khem () gmail ! com
[Download RAW message or body]
This will decouple the compiling in thumb mode from having thumb
capable cores.
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
.../conf/machine/include/arm/feature-arm-thumb.inc | 5 ++++-
1 files changed, 4 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 b580168..533eab9 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -4,7 +4,10 @@
# encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size)
# but requires more instructions (140% for 70% smaller code) so may be
# slower.
-TUNEVALID[thumb] = "Use thumb instructions instead of ARM"
+TUNEVALID[thumb] = "Use thumb instructions instead of ARM if ARM_INSTRUCTION_SET != \
arm" +ARM_THUMB_M_OPT = "${@['-mthumb', \
'-mno-thumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) != 'arm']}" +TUNE_CCARGS += \
"${@bb.utils.contains("TUNE_FEATURES", "thumb", "${ARM_THUMB_M_OPT}", \
"${ARM_THUMB_M_OPT}", d)}" +
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "thumb", "-mthumb", \
"-mno-thumb", d)}" OVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "thumb", \
":thumb", "", d)}"
--
1.7.4.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic