diff mbox

staging: binder: Allow 64bit kernels to support 32bit-only userland

Message ID 1393854280-25403-1-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz March 3, 2014, 1:44 p.m. UTC
With the new binder API, one can mix 64bit and 32bit userland together,
however, currently there is no way to run a 32bit-only userland
on a 64bit kernel. This patch allows the binder legacy config option
to be available on 64bit kernels.

Note: Enabling this will make it so 64bit applications will not
be able to communicate with binder

Cc: Serban Constantinescu <serban.constantinescu@arm.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 drivers/staging/android/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig
index 1e1b36a..22e9e00 100644
--- a/drivers/staging/android/Kconfig
+++ b/drivers/staging/android/Kconfig
@@ -21,8 +21,9 @@  config ANDROID_BINDER_IPC
 
 config ANDROID_BINDER_IPC_32BIT
 	bool
-        default y
-	depends on !64BIT && ANDROID_BINDER_IPC
+	prompt "Legacy 32bit binder API support" if 64BIT
+	default y if !64BIT
+	depends on ANDROID_BINDER_IPC
 	---help---
 	  Enable to support an old 32-bit Android user-space. Breaks the new
 	  Android user-space.