arch/Config.in: introduce BR2_KERNEL_64_USERLAND_32 symbol
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 25 Oct 2013 13:10:22 +0000 (10:10 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Oct 2013 21:59:03 +0000 (22:59 +0100)
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>
arch/Config.in
arch/Config.in.mips

index 3fd8c1c7902ec26b89b49da9cb662590121f5cde..bc81dac7a9e1b92bbf82959c515e3365f4434e92 100644 (file)
@@ -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
 
index 86fbe6458c624b4229d70290391f8fe93bc2a8a6..d70fd6366f5fbad4c87e01934d3245c025452bc2 100644 (file)
@@ -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