18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_cimenu "Android"
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciconfig ANDROID
58c2ecf20Sopenharmony_ci	bool "Android Drivers"
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	  Enable support for various drivers needed on the Android platform
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciif ANDROID
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciconfig ANDROID_BINDER_IPC
128c2ecf20Sopenharmony_ci	bool "Android Binder IPC Driver"
138c2ecf20Sopenharmony_ci	depends on MMU
148c2ecf20Sopenharmony_ci	default n
158c2ecf20Sopenharmony_ci	help
168c2ecf20Sopenharmony_ci	  Binder is used in Android for both communication between processes,
178c2ecf20Sopenharmony_ci	  and remote method invocation.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci	  This means one Android process can call a method/routine in another
208c2ecf20Sopenharmony_ci	  Android process, using Binder to identify, invoke and pass arguments
218c2ecf20Sopenharmony_ci	  between said processes.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciconfig ANDROID_BINDERFS
248c2ecf20Sopenharmony_ci	bool "Android Binderfs filesystem"
258c2ecf20Sopenharmony_ci	depends on ANDROID_BINDER_IPC
268c2ecf20Sopenharmony_ci	default n
278c2ecf20Sopenharmony_ci	help
288c2ecf20Sopenharmony_ci	  Binderfs is a pseudo-filesystem for the Android Binder IPC driver
298c2ecf20Sopenharmony_ci	  which can be mounted per-ipc namespace allowing to run multiple
308c2ecf20Sopenharmony_ci	  instances of Android.
318c2ecf20Sopenharmony_ci	  Each binderfs mount initially only contains a binder-control device.
328c2ecf20Sopenharmony_ci	  It can be used to dynamically allocate new binder IPC devices via
338c2ecf20Sopenharmony_ci	  ioctls.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconfig ANDROID_BINDER_DEVICES
368c2ecf20Sopenharmony_ci	string "Android Binder devices"
378c2ecf20Sopenharmony_ci	depends on ANDROID_BINDER_IPC
388c2ecf20Sopenharmony_ci	default "binder,hwbinder,vndbinder"
398c2ecf20Sopenharmony_ci	help
408c2ecf20Sopenharmony_ci	  Default value for the binder.devices parameter.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci	  The binder.devices parameter is a comma-separated list of strings
438c2ecf20Sopenharmony_ci	  that specifies the names of the binder device nodes that will be
448c2ecf20Sopenharmony_ci	  created. Each binder device has its own context manager, and is
458c2ecf20Sopenharmony_ci	  therefore logically separated from the other devices.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciconfig ANDROID_BINDER_IPC_SELFTEST
488c2ecf20Sopenharmony_ci	bool "Android Binder IPC Driver Selftest"
498c2ecf20Sopenharmony_ci	depends on ANDROID_BINDER_IPC
508c2ecf20Sopenharmony_ci	help
518c2ecf20Sopenharmony_ci	  This feature allows binder selftest to run.
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	  Binder selftest checks the allocation and free of binder buffers
548c2ecf20Sopenharmony_ci	  exhaustively with combinations of various buffer sizes and
558c2ecf20Sopenharmony_ci	  alignments.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciconfig BINDER_TRANSACTION_PROC_BRIEF
588c2ecf20Sopenharmony_ci	bool "Brief debug info for binder transaction and proc"
598c2ecf20Sopenharmony_ci	depends on ANDROID_BINDER_IPC
608c2ecf20Sopenharmony_ci	default n
618c2ecf20Sopenharmony_ci	help
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci	  Enable binder optimization
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciconfig BINDER_SENDER_INFO
668c2ecf20Sopenharmony_ci	bool "Get binder sender info"
678c2ecf20Sopenharmony_ci	default y
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciendif # if ANDROID
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciendmenu
72