Staging: add android framework
authorGreg Kroah-Hartman <gregkh@suse.de>
Sat, 20 Dec 2008 01:21:40 +0000 (17:21 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:41 +0000 (13:52 -0800)
This prepares us to start adding the android drivers
to the build.

The dummy android.c file will go away in the next few patches, as it
will not be needed once drivers/staging/android/ has a driver in it.

Cc: Robert Love <rlove@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/android/Kconfig [new file with mode: 0644]
drivers/staging/android/Makefile [new file with mode: 0644]
drivers/staging/android/android.c [new file with mode: 0644]

index c063971..ce6badd 100644 (file)
@@ -93,5 +93,7 @@ source "drivers/staging/frontier/Kconfig"
 
 source "drivers/staging/epl/Kconfig"
 
+source "drivers/staging/android/Kconfig"
+
 endif # !STAGING_EXCLUDE_BUILD
 endif # STAGING
index 53478e8..9ddcc2b 100644 (file)
@@ -29,3 +29,4 @@ obj-$(CONFIG_USB_RSPI)                += rspiusb/
 obj-$(CONFIG_INPUT_MIMIO)      += mimio/
 obj-$(CONFIG_TRANZPORT)                += frontier/
 obj-$(CONFIG_EPL)              += epl/
+obj-$(CONFIG_ANDROID)          += android/
diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig
new file mode 100644 (file)
index 0000000..229f8d7
--- /dev/null
@@ -0,0 +1,9 @@
+menu "Android"
+
+config ANDROID
+       bool "Android Drivers"
+       default N
+       ---help---
+         Enable support for various drivers needed on the Android platform
+
+endmenu
diff --git a/drivers/staging/android/Makefile b/drivers/staging/android/Makefile
new file mode 100644 (file)
index 0000000..a551e53
--- /dev/null
@@ -0,0 +1 @@
+obj-$(CONFIG_ANDROID)                  += android.o
diff --git a/drivers/staging/android/android.c b/drivers/staging/android/android.c
new file mode 100644 (file)
index 0000000..b8ad5f3
--- /dev/null
@@ -0,0 +1,18 @@
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/module.h>
+
+static int __init android_init(void)
+{
+       return 0;
+}
+
+static void __exit android_exit(void)
+{
+}
+
+module_init(android_init);
+module_exit(android_exit);
+
+MODULE_AUTHOR("Greg Kroah-Hartman");
+MODULE_LICENSE("GPL");