android: Enable building binder as module
authorBen Hutchings <ben@decadent.org.uk>
Tue, 8 Jul 2025 11:30:55 +0000 (13:30 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 20 Dec 2025 09:15:48 +0000 (10:15 +0100)
commited9879220f7215653f31526cb5e29a979205a28e
tree682a1f6934fb0fefc3b2d58d2134a806b7e46e76
parent975bfdb7b1ad6b3db01ffa0862602a95a0f26094
android: Enable building binder as module

Bug-Debian: https://bugs.debian.org/901492

We want to enable use of the Android binder driver to support
Waydroid, but it should not be built-in as that would waste resources
and increase security attack surface on systems that don't need it.

- Change the Makefiles to build the driver as an object with the
  "_linux" suffix (which is what Waydroid expects)
- Change config symbol types to tristate
- Add a module description, because modpost warns about missing
  descriptions

Gbp-Pq: Topic debian
Gbp-Pq: Name android-enable-building-binder-as-module.patch
drivers/android/Kconfig
drivers/android/Makefile
drivers/android/binder.c
drivers/android/binder_alloc.c