From e030657d6259414298cc3299657af87da9548e24 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 29 Jul 2015 11:20:40 -0700 Subject: [PATCH] sourcery-tuning: fix -march=armv5e failures The most common failure case was qemuarm. Currently, ARMPKGSFX_THUMB is used in TUNE_CCARGS, and it only includes 't' when ARM_INSTRUCTION_SET=thumb. Bypass that check for armv5, as we need -march=armv5te rather than -march=armv5t, but we still want -mthumb removed when appropriate. Fixes #86 Signed-off-by: Christopher Larson --- conf/distro/include/sourcery-tuning.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/distro/include/sourcery-tuning.inc b/conf/distro/include/sourcery-tuning.inc index 325737a..9cbc6fb 100644 --- a/conf/distro/include/sourcery-tuning.inc +++ b/conf/distro/include/sourcery-tuning.inc @@ -1,3 +1,8 @@ +# Sourcery G++'s binutils isn't patched with armv5e support +ARMPKGSFX_THUMB_armv5 = "${@bb.utils.contains("TUNE_FEATURES", "thumb", "${ARM_THUMB_SUFFIX}", "", d)}" + +# Use the additional tuning flags which Sourcery G++ provides in certain +# cases, to ensure that the correct multilibs are used. E.g. '-te500v2'. SOURCERY_GXX_IS_PRO = "${@'1' if os.path.exists('${EXTERNAL_TOOLCHAIN}/license') else '0'}" # Workaround for ICE of gcc-4.8.x when passing -mfloat-gprs=double