Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 2 | menu "Android" |
| 3 | |
| 4 | config ANDROID |
| 5 | bool "Android Drivers" |
| 6 | ---help--- |
| 7 | Enable support for various drivers needed on the Android platform |
| 8 | |
| 9 | if ANDROID |
| 10 | |
| 11 | config ANDROID_BINDER_IPC |
| 12 | bool "Android Binder IPC Driver" |
| 13 | depends on MMU |
| 14 | default n |
| 15 | ---help--- |
| 16 | Binder is used in Android for both communication between processes, |
| 17 | and remote method invocation. |
| 18 | |
| 19 | This means one Android process can call a method/routine in another |
| 20 | Android process, using Binder to identify, invoke and pass arguments |
| 21 | between said processes. |
| 22 | |
Martijn Coenen | ac4812c | 2017-02-03 14:40:48 -0800 | [diff] [blame] | 23 | config ANDROID_BINDER_DEVICES |
| 24 | string "Android Binder devices" |
| 25 | depends on ANDROID_BINDER_IPC |
Martijn Coenen | 9e18d0c | 2017-07-28 13:56:07 +0200 | [diff] [blame] | 26 | default "binder,hwbinder,vndbinder" |
Martijn Coenen | ac4812c | 2017-02-03 14:40:48 -0800 | [diff] [blame] | 27 | ---help--- |
| 28 | Default value for the binder.devices parameter. |
| 29 | |
| 30 | The binder.devices parameter is a comma-separated list of strings |
| 31 | that specifies the names of the binder device nodes that will be |
| 32 | created. Each binder device has its own context manager, and is |
| 33 | therefore logically separated from the other devices. |
| 34 | |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 35 | config ANDROID_BINDER_IPC_32BIT |
Jisheng Zhang | e8d2ed7 | 2017-08-25 08:39:51 +0800 | [diff] [blame] | 36 | bool "Use old (Android 4.4 and earlier) 32-bit binder API" |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 37 | depends on !64BIT && ANDROID_BINDER_IPC |
| 38 | default y |
| 39 | ---help--- |
| 40 | The Binder API has been changed to support both 32 and 64bit |
| 41 | applications in a mixed environment. |
| 42 | |
| 43 | Enable this to support an old 32-bit Android user-space (v4.4 and |
| 44 | earlier). |
| 45 | |
| 46 | Note that enabling this will break newer Android user-space. |
| 47 | |
Sherry Yang | 4175e2b | 2017-08-23 08:46:40 -0700 | [diff] [blame] | 48 | config ANDROID_BINDER_IPC_SELFTEST |
| 49 | bool "Android Binder IPC Driver Selftest" |
| 50 | depends on ANDROID_BINDER_IPC |
| 51 | ---help--- |
| 52 | This feature allows binder selftest to run. |
| 53 | |
| 54 | Binder selftest checks the allocation and free of binder buffers |
| 55 | exhaustively with combinations of various buffer sizes and |
| 56 | alignments. |
| 57 | |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 58 | endif # if ANDROID |
| 59 | |
| 60 | endmenu |