Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/5] aarch64: add big endian(aarch64_be) support
Date: Mon, 20 Jul 2015 13:56:41 +0200	[thread overview]
Message-ID: <20150720135641.5608d679@free-electrons.com> (raw)
In-Reply-To: <1437391542-13590-2-git-send-email-bamvor.zhangjian@huawei.com>

Zhang,

Thanks for this new iteration!

On Mon, 20 Jul 2015 19:25:38 +0800, Zhang Jian(Bamvor) wrote:

> diff --git a/Makefile b/Makefile
> index b1bcf78..35818f0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -329,7 +329,7 @@ KERNEL_ARCH := $(shell echo "$(ARCH)" | sed -e "s/-.*//" \
>  	-e s/arcle/arc/ \
>  	-e s/arceb/arc/ \
>  	-e s/arm.*/arm/ -e s/sa110/arm/ \
> -	-e s/aarch64/arm64/ \
> +	-e s/aarch64.*/arm64/ \
>  	-e s/bfin/blackfin/ \
>  	-e s/parisc64/parisc/ \
>  	-e s/powerpc64.*/powerpc/ \
> diff --git a/arch/Config.in b/arch/Config.in
> index 94397b3..875f412 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -59,7 +59,16 @@ config BR2_armeb
>  	  http://en.wikipedia.org/wiki/ARM
>  
>  config BR2_aarch64
> -	bool "AArch64"
> +	bool "AArch64 (little endian)"
> +	select BR2_ARCH_IS_64
> +	select BR2_ARCH_HAS_MMU_MANDATORY
> +	help
> +	  Aarch64 is a 64-bit architecture developed by ARM Holdings.
> +	  http://www.arm.com/products/processors/instruction-set-architectures/armv8-architecture.php
> +	  http://en.wikipedia.org/wiki/ARM
> +
> +config BR2_aarch64_be
> +	bool "AArch64 (big endian)"
>  	select BR2_ARCH_IS_64
>  	select BR2_ARCH_HAS_MMU_MANDATORY
>  	help
> @@ -347,7 +356,7 @@ if BR2_arm || BR2_armeb
>  source "arch/Config.in.arm"
>  endif
>  
> -if BR2_aarch64
> +if BR2_aarch64 || BR2_aarch64_be
>  source "arch/Config.in.aarch64"
>  endif
>  
> diff --git a/arch/Config.in.aarch64 b/arch/Config.in.aarch64
> index 2e79870..9830302 100644
> --- a/arch/Config.in.aarch64
> +++ b/arch/Config.in.aarch64
> @@ -1,8 +1,11 @@
>  config BR2_ARCH
>  	default "aarch64"	if BR2_aarch64
> +	default "aarch64_be"	if BR2_aarch64_be
>  
>  config BR2_ENDIAN
> -	default "LITTLE"
> +	default "LITTLE" if BR2_aarch64
> +	default "BIG"	 if BR2_aarch64_be
>  
>  config BR2_ARCH_HAS_ATOMICS
>  	default y
> +

The changes above have already been applied to Buildroot. Please make
sure to base your patches on the latest master. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-07-20 11:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 11:25 [Buildroot] [PATCH 0/5] Add ILP32 support in aarch64 Zhang Jian
2015-07-20 11:25 ` [Buildroot] [PATCH 1/5] aarch64: add big endian(aarch64_be) support Zhang Jian
2015-07-20 11:56   ` Thomas Petazzoni [this message]
2015-07-20 11:25 ` [Buildroot] [PATCH 2/5] aarch64: ilp32: handle special file name Zhang Jian
2015-07-20 11:25 ` [Buildroot] [PATCH 3/5] aarch64: ilp32: add ilp32 compiler and linker flags Zhang Jian
2015-07-20 11:25 ` [Buildroot] [PATCH 4/5] aarch64: ilp32: add ilp32 build config Zhang Jian
2015-07-20 11:25 ` [Buildroot] [PATCH 5/5] aarch64: ilp32 defconfig examples Zhang Jian
  -- strict thread matches above, loose matches on Subject: below --
2015-03-16 10:00 [Buildroot] [PATCH 0/5] Add ILP32 support in aarch64 Zhang Jian
2015-03-16 10:00 ` [Buildroot] [PATCH 1/5] aarch64: add big endian(aarch64_be) support Zhang Jian

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=20150720135641.5608d679@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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