From bb6d77b5a74365988b09911ab72b579bf7dbf585 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 19 Dec 2007 12:02:43 +0000 Subject: tune-arm1136jf-s: switch to use CPU_FEATURES to enable/disable VFP and Thumb support git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3357 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/conf/machine/include/tune-arm1136jf-s.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/conf/machine/include') diff --git a/meta/conf/machine/include/tune-arm1136jf-s.inc b/meta/conf/machine/include/tune-arm1136jf-s.inc index a69df825c..812c5905a 100644 --- a/meta/conf/machine/include/tune-arm1136jf-s.inc +++ b/meta/conf/machine/include/tune-arm1136jf-s.inc @@ -1,3 +1,8 @@ -TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp" +TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s" +TARGET_CC_ARCH += "${@['', '-mfloat-abi=softfp -mfpu=vfp'][(bb.data.getVar('TARGET_FPU', d, 1) == 'soft') and (bb.data.getVar('CPU_FEATURES', d, 1).find('vfp') != -1)]}" FEED_ARCH = "armv6" PACKAGE_ARCH = "armv6" + +ARM_INSTRUCTION_SET = "${@['arm', 'thumb'][bb.data.getVar('CPU_FEATURES', d, 1).find('thumb') != 1]}" + +require conf/machine/include/tune-thumb.inc -- cgit v1.2.3