From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3 11/14] arch/arm: add support for Thumb2
Date: Tue, 16 Jul 2013 15:29:32 +0200 [thread overview]
Message-ID: <87sizezl8j.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1373961805-3901-12-git-send-email-thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Tue, 16 Jul 2013 10:03:22 +0200")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Until now, we were using the default ARM instruction set, as used by
Thomas> the toolchain: the 32 bits ARM instruction set for the internal
Thomas> backend, and for external toolchain, whatever default was chosen when
Thomas> the toolchain was generated.
Thomas> This commit adds support for the Thumb2 instruction set. To do so, it:
Thomas> * provides a menuconfig choice between ARM and Thumb2. The choice is
Thomas> only shown when Thumb2 is supported, i.e on ARMv7-A CPUs.
Thomas> * passes the --with-mode={arm,thumb} option when building gcc in the
Thomas> internal backend. This tells the compiler which type of
Thomas> instructions it should generate.
Thomas> * passes the m{arm,thumb} option in the external toolchain
Thomas> wrapper. ARM and Thumb2 code can freely be mixed together, so the
Thomas> fact that the C library has been built either ARM or Thumb2 and
Thomas> that the rest of the code is built Thumb2 or ARM is not a problem.
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> ---
Thomas> arch/Config.in | 6 ++++
Thomas> arch/Config.in.arm | 36 ++++++++++++++++++++++
Thomas> package/gcc/gcc.mk | 5 +++
Thomas> toolchain/toolchain-external/ext-tool.mk | 5 +++
Thomas> .../toolchain-external/ext-toolchain-wrapper.c | 3 ++
Thomas> 5 files changed, 55 insertions(+)
Thomas> +++ b/package/gcc/gcc.mk
Thomas> @@ -177,6 +177,11 @@ ifneq ($(GCC_TARGET_FLOAT_ABI),)
Thomas> HOST_GCC_COMMON_CONF_OPT += --with-float=$(GCC_TARGET_FLOAT_ABI)
Thomas> endif
Thomas> +GCC_TARGET_MODE = $(call qstrip,$(BR2_GCC_TARGET_MODE))
Thomas> +ifneq ($(GCC_TARGET_MODE),y)
This should check against the empty string and not 'y'.
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2013-07-16 13:29 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 8:03 [Buildroot] [PATCHv3 00/14] ARM floating point improvements, EABIhf and Thumb2 support Thomas Petazzoni
2013-07-16 8:03 ` [Buildroot] [PATCHv3 01/14] arch: introduce BR2_GCC_TARGET_{FPU, FLOAT_ABI} Thomas Petazzoni
2013-07-16 11:48 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 02/14] arch: Refactor BR2_SOFT_FLOAT into per-architecture options Thomas Petazzoni
2013-07-16 11:53 ` Peter Korsgaard
2013-07-16 12:12 ` Thomas Petazzoni
2013-07-16 12:34 ` Peter Korsgaard
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 03/14] arch: improve ARM floating point support and add support for EABIhf Thomas Petazzoni
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 04/14] binutils: exclude binutils versions that don't support EABIhf Thomas Petazzoni
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 05/14] gcc: take into account ARM floating point capabilities Thomas Petazzoni
2013-07-16 13:13 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 06/14] toolchain: remove the old BR2_VFP_FLOAT option Thomas Petazzoni
2013-07-16 13:15 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 07/14] configs: update defconfigs after VFP option changes Thomas Petazzoni
2013-07-16 13:16 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 08/14] configs: use new EABIhf option for beaglebone_defconfig Thomas Petazzoni
2013-07-16 13:19 ` Peter Korsgaard
2013-07-16 13:32 ` Thomas Petazzoni
2013-07-16 13:39 ` Peter Korsgaard
2013-07-16 13:47 ` Thomas Petazzoni
2013-07-16 15:06 ` Spenser Gilliland
2013-07-16 15:23 ` Thomas Petazzoni
2013-07-16 15:31 ` Peter Korsgaard
2013-07-16 13:39 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 09/14] toolchain-external: update config options after EABIhf introduction Thomas Petazzoni
2013-07-16 13:21 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 10/14] gcc: create symbolic link to ld-linux in EABIhf/gcc 4.7/eglibc Thomas Petazzoni
2013-07-16 13:23 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 11/14] arch/arm: add support for Thumb2 Thomas Petazzoni
2013-07-16 13:29 ` Peter Korsgaard [this message]
2013-07-16 8:03 ` [Buildroot] [PATCHv3 12/14] uclibc: use numbered patches for 0.9.33.2 Thomas Petazzoni
2013-07-16 13:31 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 13/14] uclibc: add Thumb2 fixes Thomas Petazzoni
2013-07-16 13:32 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 14/14] arch: use tabs instead of spaces in Config.in files Thomas Petazzoni
2013-07-16 13:32 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sizezl8j.fsf@dell.be.48ers.dk \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox