diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-05-11 20:01:02 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-05-11 20:01:02 +1000 |
commit | e0d0059169945c8ee16790d2e7244cea397dfd56 (patch) | |
tree | db50205e4996c17264c9279b1bc7370fdbaf9802 /arch/powerpc/platforms/Kconfig.cputype | |
parent | 6e5c077519f2661c56647fc21b2ec2ba0a50bb75 (diff) | |
download | linux-e0d0059169945c8ee16790d2e7244cea397dfd56.tar.bz2 |
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 'arch/powerpc/platforms/Kconfig.cputype')
-rw-r--r-- | arch/powerpc/platforms/Kconfig.cputype | 10 |
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 |