]> git.ipfire.org Git - people/ms/linux.git/commitdiff
staging: android: binder: move to the "real" part of the kernel
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Oct 2014 12:40:38 +0000 (14:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:15 +0000 (10:30 +0800)
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>
12 files changed:
drivers/Kconfig
drivers/Makefile
drivers/android/Kconfig [new file with mode: 0644]
drivers/android/Makefile [new file with mode: 0644]
drivers/android/binder.c [moved from drivers/staging/android/binder.c with 100% similarity]
drivers/android/binder.h [moved from drivers/staging/android/binder.h with 95% similarity]
drivers/android/binder_trace.h [moved from drivers/staging/android/binder_trace.h with 100% similarity]
drivers/staging/android/Kconfig
drivers/staging/android/Makefile
include/uapi/linux/Kbuild
include/uapi/linux/android/Kbuild [new file with mode: 0644]
include/uapi/linux/android/binder.h [moved from drivers/staging/android/uapi/binder.h with 100% similarity]

index 1a693d3f9d51b52e116ee3ad76ad30023a2ea49c..569ff7886dc38e34b0cc86ca96d23baa45566e2b 100644 (file)
@@ -182,4 +182,6 @@ source "drivers/ras/Kconfig"
 
 source "drivers/thunderbolt/Kconfig"
 
+source "drivers/android/Kconfig"
+
 endmenu
index ebee55537a057adf3c39c9e7b19565becec80663..60d19820a4d42e79697c409e39d3dd1cc70634fc 100644 (file)
@@ -161,3 +161,4 @@ obj-$(CONFIG_POWERCAP)              += powercap/
 obj-$(CONFIG_MCB)              += mcb/
 obj-$(CONFIG_RAS)              += ras/
 obj-$(CONFIG_THUNDERBOLT)      += thunderbolt/
+obj-$(CONFIG_ANDROID)          += android/
diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig
new file mode 100644 (file)
index 0000000..bdfc6c6
--- /dev/null
@@ -0,0 +1,37 @@
+menu "Android"
+
+config ANDROID
+       bool "Android Drivers"
+       ---help---
+         Enable support for various drivers needed on the Android platform
+
+if ANDROID
+
+config ANDROID_BINDER_IPC
+       bool "Android Binder IPC Driver"
+       depends on MMU
+       default n
+       ---help---
+         Binder is used in Android for both communication between processes,
+         and remote method invocation.
+
+         This means one Android process can call a method/routine in another
+         Android process, using Binder to identify, invoke and pass arguments
+         between said processes.
+
+config ANDROID_BINDER_IPC_32BIT
+       bool
+       depends on !64BIT && ANDROID_BINDER_IPC
+       default y
+       ---help---
+         The Binder API has been changed to support both 32 and 64bit
+         applications in a mixed environment.
+
+         Enable this to support an old 32-bit Android user-space (v4.4 and
+         earlier).
+
+         Note that enabling this will break newer Android user-space.
+
+endif # if ANDROID
+
+endmenu
diff --git a/drivers/android/Makefile b/drivers/android/Makefile
new file mode 100644 (file)
index 0000000..3b7e4b0
--- /dev/null
@@ -0,0 +1,3 @@
+ccflags-y += -I$(src)                  # needed for trace events
+
+obj-$(CONFIG_ANDROID_BINDER_IPC)       += binder.o
similarity index 95%
rename from drivers/staging/android/binder.h
rename to drivers/android/binder.h
index eb0834656dfe2fa8810ef7db4444516030a27e11..5dc6a66b0665b03c25db5cac367e63f0b2737aab 100644 (file)
@@ -24,7 +24,7 @@
 #define BINDER_IPC_32BIT 1
 #endif
 
-#include "uapi/binder.h"
+#include <uapi/linux/android/binder.h>
 
 #endif /* _LINUX_BINDER_H */
 
index 7a0e28852965c0254922a361479b20dc9d087da7..7e012f37792bd0bdb95ed84ae8ba4b22ea0aa466 100644 (file)
@@ -1,37 +1,7 @@
 menu "Android"
 
-config ANDROID
-       bool "Android Drivers"
-       ---help---
-         Enable support for various drivers needed on the Android platform
-
 if ANDROID
 
-config ANDROID_BINDER_IPC
-       bool "Android Binder IPC Driver"
-       depends on MMU
-       default n
-       ---help---
-         Binder is used in Android for both communication between processes,
-         and remote method invocation.
-
-         This means one Android process can call a method/routine in another
-         Android process, using Binder to identify, invoke and pass arguments
-         between said processes.
-
-config ANDROID_BINDER_IPC_32BIT
-       bool
-       depends on !64BIT && ANDROID_BINDER_IPC
-       default y
-       ---help---
-         The Binder API has been changed to support both 32 and 64bit
-         applications in a mixed environment.
-
-         Enable this to support an old 32-bit Android user-space (v4.4 and
-         earlier).
-
-         Note that enabling this will break newer Android user-space.
-
 config ASHMEM
        bool "Enable the Anonymous Shared Memory Subsystem"
        default n
index 517ad5ffa4290fb92c1b78e09bb7982d0e529492..479b2b86f8c80436eeeb2f70510883472be81a30 100644 (file)
@@ -2,7 +2,6 @@ ccflags-y += -I$(src)                   # needed for trace events
 
 obj-y                                  += ion/
 
-obj-$(CONFIG_ANDROID_BINDER_IPC)       += binder.o
 obj-$(CONFIG_ASHMEM)                   += ashmem.o
 obj-$(CONFIG_ANDROID_LOGGER)           += logger.o
 obj-$(CONFIG_ANDROID_TIMED_OUTPUT)     += timed_output.o
index 6cad97485bad7fd5803f2f48aa1d8c1894208be1..5f17fa7bc153661543f7c41e41981690563da1e5 100644 (file)
@@ -1,4 +1,5 @@
 # UAPI Header export list
+header-y += android/
 header-y += byteorder/
 header-y += can/
 header-y += caif/
diff --git a/include/uapi/linux/android/Kbuild b/include/uapi/linux/android/Kbuild
new file mode 100644 (file)
index 0000000..ca011ee
--- /dev/null
@@ -0,0 +1,2 @@
+# UAPI Header export list
+header-y += binder.h