aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/platforms/Kconfig.cputype
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-05-11 20:01:02 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-05-11 20:01:02 +1000
commite0d0059169945c8ee16790d2e7244cea397dfd56 (patch)
treedb50205e4996c17264c9279b1bc7370fdbaf9802 /arch/powerpc/platforms/Kconfig.cputype
parentpowerpc/vdso: Combine start/size variables (diff)
downloadwireguard-linux-e0d0059169945c8ee16790d2e7244cea397dfd56.tar.xz
wireguard-linux-e0d0059169945c8ee16790d2e7244cea397dfd56.zip
powerpc/vdso: Disable building the 32-bit VDSO on little endian
The only little endian configuration we support is ppc64le. As such if we're building little endian we don't need a 32-bit VDSO, because there is no 32-bit userspace. This patch is a fairly ugly mess of #ifdefs, but is the minimal logic required to disable the 32-bit VDSO. We can hopefully clean up the result in future with some further refactoring. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/platforms/Kconfig.cputype10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 7264e91190be..724ecc791404 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -405,6 +405,16 @@ config PPC_DOORBELL
endmenu
+config VDSO32
+ def_bool y
+ depends on PPC32 || CPU_BIG_ENDIAN
+ help
+ This symbol controls whether we build the 32-bit VDSO. We obviously
+ want to do that if we're building a 32-bit kernel. If we're building
+ a 64-bit kernel then we only want a 32-bit VDSO if we're building for
+ big endian. That is because the only little endian configuration we
+ support is ppc64le which is 64-bit only.
+
choice
prompt "Endianness selection"
default CPU_BIG_ENDIAN