summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-10-25 10:10:22 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-10-30 22:59:03 +0100
commit957a986214169a76c51e9f63a232b67f286889d8 (patch)
treebe08f711e601648dd30578ad69a7b9f5d2339ae8 /arch
parent9e7d7b3cd422affad5976a4013bcb8626a079491 (diff)
arch/Config.in: introduce BR2_KERNEL_64_USERLAND_32 symbol
On some architectures one can be running a 64-bit kernel with a 32-bit userland. Such is the case for sparc64 (unsupported) for example and mips64 with n32 ABI. Some tools that interface directly with the kernel need to be built specially for this, so introduce this symbol to tweak their build in one central kludge to be future-proof. Example: bug #6602. Signed-off-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.in3
-rw-r--r--arch/Config.in.mips1
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/Config.in b/arch/Config.in
index 3fd8c1c79..bc81dac7a 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -3,6 +3,9 @@ menu "Target options"
config BR2_ARCH_IS_64
bool
+config BR2_KERNEL_64_USERLAND_32
+ bool
+
config BR2_SOFT_FLOAT
bool
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index 86fbe6458..d70fd6366 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -47,6 +47,7 @@ config BR2_MIPS_OABI32
config BR2_MIPS_NABI32
bool "n32"
depends on BR2_ARCH_IS_64
+ select BR2_KERNEL_64_USERLAND_32
config BR2_MIPS_NABI64
bool "n64"
depends on BR2_ARCH_IS_64