diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-24 21:07:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-05-24 21:07:21 +0000 |
commit | 9cfe3493eedf2c768b3e7938fbb76dddc658b4dd (patch) | |
tree | 72110669598f41010457620f0094dbd98f2784df | |
parent | Version bump (diff) | |
download | historical-9cfe3493eedf2c768b3e7938fbb76dddc658b4dd.tar.gz historical-9cfe3493eedf2c768b3e7938fbb76dddc658b4dd.tar.bz2 historical-9cfe3493eedf2c768b3e7938fbb76dddc658b4dd.zip |
enable thumb mode by default for arm targets that are using the microcontroller profile #418209 by Jiri Pittner & Boris Vingradov
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c20d9ef42fec..988ce82b3c34 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.592 2013/05/21 20:47:44 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.593 2013/05/24 21:07:21 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -977,6 +977,9 @@ gcc-compiler-configure() { confgcc+=( --with-arch=${arm_arch} ) fi + # Make default mode thumb for microcontroller classes #418209 + [[ ${arm_arch} == *-m ]] && confgcc+=( --with-mode=thumb ) + # Enable hardvfp if [[ $(tc-is-softfloat) == "no" ]] && \ [[ ${CTARGET} == armv[67]* ]] && \ |