Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas RAILLARD <public.douglas.raillard@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] toolchain: Add support for Cortex-M4 processor
Date: Thu, 17 Sep 2015 11:40:01 +0200	[thread overview]
Message-ID: <55FA8A71.7080700@gmail.com> (raw)
In-Reply-To: <1442474492-13774-2-git-send-email-cjwfirmware@vxmdesign.com>

Hi Chris,

On 17/09/2015 09:21, Chris Wardman wrote:
> This patch adds support for the Cortex-M4 processor. Cortex-M4 is almost
> completely identical to the Cortex-M3 processor. Cortex-M4 uses the same
> Thumb2/Thumb instruction set. Not sure if the extra M4 DSP instructions are
> currently supported.
> 
> Signed-off-by: Chris Wardman <cjwfirmware@vxmdesign.com>
> ---
>  arch/Config.in.arm | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/Config.in.arm b/arch/Config.in.arm
> index 4d10f4c..5055cb5 100644
> --- a/arch/Config.in.arm
> +++ b/arch/Config.in.arm
> @@ -156,6 +156,11 @@ config BR2_cortex_m3
>  	bool "cortex-M3"
>  	select BR2_ARM_CPU_HAS_THUMB
>  	select BR2_ARM_CPU_HAS_THUMB2
> +config BR2_cortex_m4
> +	bool "cortex-M4"
> +	select BR2_ARM_CPU_HAS_THUMB

It is not clear if selecting BR2_ARM_CPU_HAS_THUMB for Cortex M is
relevant or if this leads to other problems:
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/126372

> +	select BR2_ARM_CPU_HAR_THUMB2
> +	select BR2_ARM_CPU_ARMV7M

If adding the BR2_ARM_CPU_ARMV7M option is okay, this could also be used
to preset some options for uClibc-ng.

>  config BR2_fa526
>  	bool "fa526/626"
>  	select BR2_ARM_CPU_HAS_ARM
> @@ -419,6 +424,7 @@ config BR2_GCC_TARGET_CPU
>  	default "cortex-a12"	if BR2_cortex_a12
>  	default "cortex-a15"	if BR2_cortex_a15
>  	default "cortex-m3"	if BR2_cortex_m3
> +	default "cortex-m4"     if BR2_cortex_m4
>  	default "fa526"		if BR2_fa526
>  	default "marvell-pj4"	if BR2_pj4
>  	default "strongarm"	if BR2_strongarm
> 

Best regards,

Douglas
-- 

Douglas RAILLARD

  reply	other threads:[~2015-09-17  9:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17  7:21 [Buildroot] [PATCH 1/2] toolchain: add support for the newlib library Chris Wardman
2015-09-17  7:21 ` [Buildroot] [PATCH 2/2] toolchain: Add support for Cortex-M4 processor Chris Wardman
2015-09-17  9:40   ` Douglas RAILLARD [this message]
2016-03-08 22:10   ` Arnout Vandecappelle
2016-03-08 22:35 ` [Buildroot] [PATCH 1/2] toolchain: add support for the newlib library Arnout Vandecappelle

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=55FA8A71.7080700@gmail.com \
    --to=public.douglas.raillard@gmail.com \
    --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