xref: /linux/drivers/android/Kconfig (revision a7f7f6248d9740d710fd6bd190293fe5e16410ac)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2777783e0SGreg Kroah-Hartmanmenu "Android"
3777783e0SGreg Kroah-Hartman
4777783e0SGreg Kroah-Hartmanconfig ANDROID
5777783e0SGreg Kroah-Hartman	bool "Android Drivers"
6*a7f7f624SMasahiro Yamada	help
7777783e0SGreg Kroah-Hartman	  Enable support for various drivers needed on the Android platform
8777783e0SGreg Kroah-Hartman
9777783e0SGreg Kroah-Hartmanif ANDROID
10777783e0SGreg Kroah-Hartman
11777783e0SGreg Kroah-Hartmanconfig ANDROID_BINDER_IPC
12777783e0SGreg Kroah-Hartman	bool "Android Binder IPC Driver"
138ced0c62STodd Kjos	depends on MMU
14777783e0SGreg Kroah-Hartman	default n
15*a7f7f624SMasahiro Yamada	help
16777783e0SGreg Kroah-Hartman	  Binder is used in Android for both communication between processes,
17777783e0SGreg Kroah-Hartman	  and remote method invocation.
18777783e0SGreg Kroah-Hartman
19777783e0SGreg Kroah-Hartman	  This means one Android process can call a method/routine in another
20777783e0SGreg Kroah-Hartman	  Android process, using Binder to identify, invoke and pass arguments
21777783e0SGreg Kroah-Hartman	  between said processes.
22777783e0SGreg Kroah-Hartman
233ad20fe3SChristian Braunerconfig ANDROID_BINDERFS
243ad20fe3SChristian Brauner	bool "Android Binderfs filesystem"
253ad20fe3SChristian Brauner	depends on ANDROID_BINDER_IPC
263ad20fe3SChristian Brauner	default n
27*a7f7f624SMasahiro Yamada	help
283ad20fe3SChristian Brauner	  Binderfs is a pseudo-filesystem for the Android Binder IPC driver
293ad20fe3SChristian Brauner	  which can be mounted per-ipc namespace allowing to run multiple
303ad20fe3SChristian Brauner	  instances of Android.
313ad20fe3SChristian Brauner	  Each binderfs mount initially only contains a binder-control device.
323ad20fe3SChristian Brauner	  It can be used to dynamically allocate new binder IPC devices via
333ad20fe3SChristian Brauner	  ioctls.
343ad20fe3SChristian Brauner
35ac4812c5SMartijn Coenenconfig ANDROID_BINDER_DEVICES
36ac4812c5SMartijn Coenen	string "Android Binder devices"
37ac4812c5SMartijn Coenen	depends on ANDROID_BINDER_IPC
389e18d0c8SMartijn Coenen	default "binder,hwbinder,vndbinder"
39*a7f7f624SMasahiro Yamada	help
40ac4812c5SMartijn Coenen	  Default value for the binder.devices parameter.
41ac4812c5SMartijn Coenen
42ac4812c5SMartijn Coenen	  The binder.devices parameter is a comma-separated list of strings
43ac4812c5SMartijn Coenen	  that specifies the names of the binder device nodes that will be
44ac4812c5SMartijn Coenen	  created. Each binder device has its own context manager, and is
45ac4812c5SMartijn Coenen	  therefore logically separated from the other devices.
46ac4812c5SMartijn Coenen
474175e2b4SSherry Yangconfig ANDROID_BINDER_IPC_SELFTEST
484175e2b4SSherry Yang	bool "Android Binder IPC Driver Selftest"
494175e2b4SSherry Yang	depends on ANDROID_BINDER_IPC
50*a7f7f624SMasahiro Yamada	help
514175e2b4SSherry Yang	  This feature allows binder selftest to run.
524175e2b4SSherry Yang
534175e2b4SSherry Yang	  Binder selftest checks the allocation and free of binder buffers
544175e2b4SSherry Yang	  exhaustively with combinations of various buffer sizes and
554175e2b4SSherry Yang	  alignments.
564175e2b4SSherry Yang
57777783e0SGreg Kroah-Hartmanendif # if ANDROID
58777783e0SGreg Kroah-Hartman
59777783e0SGreg Kroah-Hartmanendmenu
60