aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-07-21 13:02:45 -0700
committerTom Rini <tom_rini@mentor.com>2010-07-21 13:02:45 -0700
commit9d22b7f5eec54b97b7f51dd9ec906645d83060e1 (patch)
treeda091b694a2837d4ff07308531c099c5f6eafcdb /conf
parent27e11b65415b91e835233ddf1769371f3cf4139e (diff)
downloadopenembedded-9d22b7f5eec54b97b7f51dd9ec906645d83060e1.tar.gz
arm-thumb.inc: Don't modify TARGET_CC_*ARCH on non-arm/armeb
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/distro/include/arm-thumb.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/conf/distro/include/arm-thumb.inc b/conf/distro/include/arm-thumb.inc
index cd88bb4786..84598d6aa9 100644
--- a/conf/distro/include/arm-thumb.inc
+++ b/conf/distro/include/arm-thumb.inc
@@ -27,6 +27,5 @@ ARM_INTERWORK_M_OPT = "${@['-mno-thumb-interwork', '-mthumb-interwork'][bb.data.
ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
#
-TARGET_CC_ARCH += "${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}"
-TARGET_CC_KERNEL_ARCH += "-mno-thumb-interwork -mno-thumb"
-
+TARGET_CC_ARCH += "${@['', '${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}'][bb.data.getVar('TARGET_ARCH', d, 1) in [ 'arm', 'armeb' ]]}"
+TARGET_CC_KERNEL_ARCH += "${@['', '-mno-thumb-interwork -mno-thumb'][bb.data.getVar('TARGET_ARCH', d, 1) in [ 'arm', 'armeb' ]]}"