Kconfig 2.2 KB

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