aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Bamvor Jian Zhang <bamvor.zhangjian@huawei.com>2015-03-18 17:49:48 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-12 18:32:37 +0200
commit827ba46556b7c2dddb0e881879bacf3283fc2c3f (patch)
treeb208dc2ee9d4c0c4ec8b1496b623c1f52afddc4f /arch
parent44c48b1274f567d09899e798e58f98cf0bbbff50 (diff)
downloadbuildroot-827ba46556b7c2dddb0e881879bacf3283fc2c3f.tar.gz
buildroot-827ba46556b7c2dddb0e881879bacf3283fc2c3f.tar.bz2
aarch64: add big endian(aarch64_be) support
Add aarch64_be support. Note that CONFIG_CPU_BIG_ENDIAN should be defined in kernel config when building a big endian kernel. Signed-off-by: Zhang Jian(Bamvor) <bamvor.zhangjian@huawei.com> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/Config.in12
-rw-r--r--arch/Config.in.aarch644
2 files changed, 13 insertions, 3 deletions
diff --git a/arch/Config.in b/arch/Config.in
index 94397b34c6..39ce0464df 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -59,7 +59,15 @@ config BR2_armeb
http://en.wikipedia.org/wiki/ARM
config BR2_aarch64
- bool "AArch64"
+ bool "AArch64 (little endian)"
+ select BR2_ARCH_IS_64
+ 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 +355,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 2e79870b34..325bcccda2 100644
--- a/arch/Config.in.aarch64
+++ b/arch/Config.in.aarch64
@@ -1,8 +1,10 @@
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