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" |
Todd Kjos | 8ced0c6 | 2019-02-08 10:35:15 -0800 | [diff] [blame] | 13 | depends on MMU |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 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 | |
Christian Brauner | 3ad20fe | 2018-12-14 13:11:14 +0100 | [diff] [blame] | 23 | config ANDROID_BINDERFS |
| 24 | bool "Android Binderfs filesystem" |
| 25 | depends on ANDROID_BINDER_IPC |
| 26 | default n |
| 27 | ---help--- |
| 28 | Binderfs is a pseudo-filesystem for the Android Binder IPC driver |
| 29 | which can be mounted per-ipc namespace allowing to run multiple |
| 30 | instances of Android. |
| 31 | Each binderfs mount initially only contains a binder-control device. |
| 32 | It can be used to dynamically allocate new binder IPC devices via |
| 33 | ioctls. |
| 34 | |
Martijn Coenen | ac4812c | 2017-02-03 14:40:48 -0800 | [diff] [blame] | 35 | config ANDROID_BINDER_DEVICES |
| 36 | string "Android Binder devices" |
| 37 | depends on ANDROID_BINDER_IPC |
Martijn Coenen | 9e18d0c | 2017-07-28 13:56:07 +0200 | [diff] [blame] | 38 | default "binder,hwbinder,vndbinder" |
Martijn Coenen | ac4812c | 2017-02-03 14:40:48 -0800 | [diff] [blame] | 39 | ---help--- |
| 40 | Default value for the binder.devices parameter. |
| 41 | |
| 42 | The binder.devices parameter is a comma-separated list of strings |
| 43 | that specifies the names of the binder device nodes that will be |
| 44 | created. Each binder device has its own context manager, and is |
| 45 | therefore logically separated from the other devices. |
| 46 | |
Sherry Yang | 4175e2b | 2017-08-23 08:46:40 -0700 | [diff] [blame] | 47 | config ANDROID_BINDER_IPC_SELFTEST |
| 48 | bool "Android Binder IPC Driver Selftest" |
| 49 | depends on ANDROID_BINDER_IPC |
| 50 | ---help--- |
| 51 | This feature allows binder selftest to run. |
| 52 | |
| 53 | Binder selftest checks the allocation and free of binder buffers |
| 54 | exhaustively with combinations of various buffer sizes and |
| 55 | alignments. |
| 56 | |
Greg Kroah-Hartman | 777783e | 2014-10-16 14:40:38 +0200 | [diff] [blame] | 57 | endif # if ANDROID |
| 58 | |
| 59 | endmenu |