Skip to content

Commit 777783e

Browse files
committed
staging: android: binder: move to the "real" part of the kernel
The Android binder code has been "stable" for many years now. No matter what comes in the future, we are going to have to support this API, so might as well move it to the "real" part of the kernel as there's no real work that needs to be done to the existing code. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d09e9b1 commit 777783e

12 files changed

Lines changed: 47 additions & 32 deletions

File tree

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,6 @@ source "drivers/ras/Kconfig"
182182

183183
source "drivers/thunderbolt/Kconfig"
184184

185+
source "drivers/android/Kconfig"
186+
185187
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,4 @@ obj-$(CONFIG_POWERCAP) += powercap/
161161
obj-$(CONFIG_MCB) += mcb/
162162
obj-$(CONFIG_RAS) += ras/
163163
obj-$(CONFIG_THUNDERBOLT) += thunderbolt/
164+
obj-$(CONFIG_ANDROID) += android/

‎drivers/android/Kconfig‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
menu "Android"
2+
3+
config ANDROID
4+
bool "Android Drivers"
5+
---help---
6+
Enable support for various drivers needed on the Android platform
7+
8+
if ANDROID
9+
10+
config ANDROID_BINDER_IPC
11+
bool "Android Binder IPC Driver"
12+
depends on MMU
13+
default n
14+
---help---
15+
Binder is used in Android for both communication between processes,
16+
and remote method invocation.
17+
18+
This means one Android process can call a method/routine in another
19+
Android process, using Binder to identify, invoke and pass arguments
20+
between said processes.
21+
22+
config ANDROID_BINDER_IPC_32BIT
23+
bool
24+
depends on !64BIT && ANDROID_BINDER_IPC
25+
default y
26+
---help---
27+
The Binder API has been changed to support both 32 and 64bit
28+
applications in a mixed environment.
29+
30+
Enable this to support an old 32-bit Android user-space (v4.4 and
31+
earlier).
32+
33+
Note that enabling this will break newer Android user-space.
34+
35+
endif # if ANDROID
36+
37+
endmenu

‎drivers/android/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ccflags-y += -I$(src) # needed for trace events
2+
3+
obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define BINDER_IPC_32BIT 1
2525
#endif
2626

27-
#include "uapi/binder.h"
27+
#include <uapi/linux/android/binder.h>
2828

2929
#endif /* _LINUX_BINDER_H */
3030

‎drivers/staging/android/Kconfig‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
11
menu "Android"
22

3-
config ANDROID
4-
bool "Android Drivers"
5-
---help---
6-
Enable support for various drivers needed on the Android platform
7-
83
if ANDROID
94

10-
config ANDROID_BINDER_IPC
11-
bool "Android Binder IPC Driver"
12-
depends on MMU
13-
default n
14-
---help---
15-
Binder is used in Android for both communication between processes,
16-
and remote method invocation.
17-
18-
This means one Android process can call a method/routine in another
19-
Android process, using Binder to identify, invoke and pass arguments
20-
between said processes.
21-
22-
config ANDROID_BINDER_IPC_32BIT
23-
bool
24-
depends on !64BIT && ANDROID_BINDER_IPC
25-
default y
26-
---help---
27-
The Binder API has been changed to support both 32 and 64bit
28-
applications in a mixed environment.
29-
30-
Enable this to support an old 32-bit Android user-space (v4.4 and
31-
earlier).
32-
33-
Note that enabling this will break newer Android user-space.
34-
355
config ASHMEM
366
bool "Enable the Anonymous Shared Memory Subsystem"
377
default n

‎drivers/staging/android/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ ccflags-y += -I$(src) # needed for trace events
22

33
obj-y += ion/
44

5-
obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o
65
obj-$(CONFIG_ASHMEM) += ashmem.o
76
obj-$(CONFIG_ANDROID_LOGGER) += logger.o
87
obj-$(CONFIG_ANDROID_TIMED_OUTPUT) += timed_output.o

‎include/uapi/linux/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# UAPI Header export list
2+
header-y += android/
23
header-y += byteorder/
34
header-y += can/
45
header-y += caif/

0 commit comments

Comments
 (0)