xref: /linux/drivers/android/Kconfig (revision 0d5ec7919f3747193f051036b2301734a4b5e1d6)
1# SPDX-License-Identifier: GPL-2.0
2menu "Android"
3
4config ANDROID_BINDER_IPC
5	bool "Android Binder IPC Driver"
6	depends on MMU
7	default n
8	help
9	  Binder is used in Android for both communication between processes,
10	  and remote method invocation.
11
12	  This means one Android process can call a method/routine in another
13	  Android process, using Binder to identify, invoke and pass arguments
14	  between said processes.
15
16config ANDROID_BINDERFS
17	bool "Android Binderfs filesystem"
18	depends on ANDROID_BINDER_IPC
19	default n
20	help
21	  Binderfs is a pseudo-filesystem for the Android Binder IPC driver
22	  which can be mounted per-ipc namespace allowing to run multiple
23	  instances of Android.
24	  Each binderfs mount initially only contains a binder-control device.
25	  It can be used to dynamically allocate new binder IPC devices via
26	  ioctls.
27
28config ANDROID_BINDER_DEVICES
29	string "Android Binder devices"
30	depends on ANDROID_BINDER_IPC
31	default "binder,hwbinder,vndbinder"
32	help
33	  Default value for the binder.devices parameter.
34
35	  The binder.devices parameter is a comma-separated list of strings
36	  that specifies the names of the binder device nodes that will be
37	  created. Each binder device has its own context manager, and is
38	  therefore logically separated from the other devices.
39
40config ANDROID_BINDER_ALLOC_KUNIT_TEST
41	tristate "KUnit Tests for Android Binder Alloc" if !KUNIT_ALL_TESTS
42	depends on ANDROID_BINDER_IPC && KUNIT
43	default KUNIT_ALL_TESTS
44	help
45	  This feature builds the binder alloc KUnit tests.
46
47	  Each test case runs using a pared-down binder_alloc struct and
48	  test-specific freelist, which allows this KUnit module to be loaded
49	  for testing without interfering with a running system.
50
51endmenu
52