xref: /linux/drivers/android/Kconfig (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2777783e0SGreg Kroah-Hartmanmenu "Android"
3777783e0SGreg Kroah-Hartman
4777783e0SGreg Kroah-Hartmanconfig ANDROID_BINDER_IPC
5777783e0SGreg Kroah-Hartman	bool "Android Binder IPC Driver"
68ced0c62STodd Kjos	depends on MMU
7777783e0SGreg Kroah-Hartman	default n
8*a7f7f624SMasahiro Yamada	help
9777783e0SGreg Kroah-Hartman	  Binder is used in Android for both communication between processes,
10777783e0SGreg Kroah-Hartman	  and remote method invocation.
11777783e0SGreg Kroah-Hartman
12777783e0SGreg Kroah-Hartman	  This means one Android process can call a method/routine in another
13777783e0SGreg Kroah-Hartman	  Android process, using Binder to identify, invoke and pass arguments
14777783e0SGreg Kroah-Hartman	  between said processes.
15777783e0SGreg Kroah-Hartman
163ad20fe3SChristian Braunerconfig ANDROID_BINDERFS
173ad20fe3SChristian Brauner	bool "Android Binderfs filesystem"
183ad20fe3SChristian Brauner	depends on ANDROID_BINDER_IPC
193ad20fe3SChristian Brauner	default n
20*a7f7f624SMasahiro Yamada	help
213ad20fe3SChristian Brauner	  Binderfs is a pseudo-filesystem for the Android Binder IPC driver
223ad20fe3SChristian Brauner	  which can be mounted per-ipc namespace allowing to run multiple
233ad20fe3SChristian Brauner	  instances of Android.
243ad20fe3SChristian Brauner	  Each binderfs mount initially only contains a binder-control device.
253ad20fe3SChristian Brauner	  It can be used to dynamically allocate new binder IPC devices via
263ad20fe3SChristian Brauner	  ioctls.
273ad20fe3SChristian Brauner
28ac4812c5SMartijn Coenenconfig ANDROID_BINDER_DEVICES
29ac4812c5SMartijn Coenen	string "Android Binder devices"
30ac4812c5SMartijn Coenen	depends on ANDROID_BINDER_IPC
319e18d0c8SMartijn Coenen	default "binder,hwbinder,vndbinder"
32*a7f7f624SMasahiro Yamada	help
33ac4812c5SMartijn Coenen	  Default value for the binder.devices parameter.
34ac4812c5SMartijn Coenen
35ac4812c5SMartijn Coenen	  The binder.devices parameter is a comma-separated list of strings
36ac4812c5SMartijn Coenen	  that specifies the names of the binder device nodes that will be
37ac4812c5SMartijn Coenen	  created. Each binder device has its own context manager, and is
38ac4812c5SMartijn Coenen	  therefore logically separated from the other devices.
39ac4812c5SMartijn Coenen
404175e2b4SSherry Yangconfig ANDROID_BINDER_IPC_SELFTEST
414175e2b4SSherry Yang	bool "Android Binder IPC Driver Selftest"
424175e2b4SSherry Yang	depends on ANDROID_BINDER_IPC
43*a7f7f624SMasahiro Yamada	help
444175e2b4SSherry Yang	  This feature allows binder selftest to run.
454175e2b4SSherry Yang
464175e2b4SSherry Yang	  Binder selftest checks the allocation and free of binder buffers
474175e2b4SSherry Yang	  exhaustively with combinations of various buffer sizes and
484175e2b4SSherry Yang	  alignments.
494175e2b4SSherry Yang
50777783e0SGreg Kroah-Hartmanendmenu
51