aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMichael Trimarchi <trimarchi@gandalf.sssup.it>2009-01-29 14:28:06 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-29 14:28:06 +0000
commitc5af24f35227fe4072c5a6f7a6802b12cb9801d7 (patch)
tree85b73964dcb44a56a6a93c796bec0a5014cec857 /drivers/staging
parentb0b262c9a3e14f4459c36eb4bf242a57ee45c27c (diff)
Change Android Makefile
Change android makefile to compile all the platform Signed-off-by: Michael Trimarchi <michael@panicking.kicks-ass.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/Kconfig76
-rw-r--r--drivers/staging/android/Makefile6
2 files changed, 82 insertions, 0 deletions
diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig
index 6b996db0dd6..dedfd1f32d1 100644
--- a/drivers/staging/android/Kconfig
+++ b/drivers/staging/android/Kconfig
@@ -83,4 +83,80 @@ config ANDROID_LOW_MEMORY_KILLER
---help---
Register processes to be killed when memory is low
+config ANDROID_HAS_WAKELOCK
+ bool
+
+config ANDROID_HAS_EARLYSUSPEND
+ bool
+
+config ANDROID_WAKELOCK
+ bool "Wake lock"
+ depends on PM && RTC_CLASS
+ default n
+ select ANDROID_HAS_WAKELOCK
+ ---help---
+ Enable wakelocks. When user space request a sleep state the
+ sleep request will be delayed until no wake locks are held.
+
+config ANDROID_WAKELOCK_STAT
+ bool "Wake lock stats"
+ depends on WAKELOCK
+ default y
+ ---help---
+ Report wake lock stats in /proc/wakelocks
+
+config ANDROID_USER_WAKELOCK
+ bool "Userspace wake locks"
+ depends on ANDROID_WAKELOCK
+ default y
+ ---help---
+ User-space wake lock api. Write "lockname" or "lockname timeout"
+ to /sys/power/wake_lock lock and if needed create a wake lock.
+ Write "lockname" to /sys/power/wake_unlock to unlock a user wake
+ lock.
+
+config ANDROID_EARLYSUSPEND
+ bool "Early suspend"
+ depends on ANDROID_WAKELOCK
+ default y
+ select ANDROID_HAS_EARLYSUSPEND
+ ---help---
+ Call early suspend handlers when the user requested sleep state
+ changes.
+
+choice
+ prompt "User-space screen access"
+ default ANDROID_FB_EARLYSUSPEND if !FRAMEBUFFER_CONSOLE
+ default ANDROID_CONSOLE_EARLYSUSPEND
+ depends on ANDROID_HAS_EARLYSUSPEND
+
+ config NO_USER_SPACE_SCREEN_ACCESS_CONTROL
+ bool "None"
+
+ config ANDROID_CONSOLE_EARLYSUSPEND
+ bool "Console switch on early-suspend"
+ depends on ANDROID_HAS_EARLYSUSPEND && VT
+ ---help---
+ Register early suspend handler to perform a console switch to
+ when user-space should stop drawing to the screen and a switch
+ back when it should resume.
+
+ config ANDROID_FB_EARLYSUSPEND
+ bool "Sysfs interface"
+ depends on ANDROID_HAS_EARLYSUSPEND
+ ---help---
+ Register early suspend handler that notifies and waits for
+ user-space through sysfs when user-space should stop drawing
+ to the screen and notifies user-space when it should resume.
+endchoice
+
+config ANDROID_POWER_ALARM
+ bool "Android alarm driver"
+ depends on ANDROID_WAKELOCK
+ default y
+
+config ANDROID_PARANOID_NETWORK
+ bool "Only allow certain groups to create sockets"
+ default y
+
endmenu
diff --git a/drivers/staging/android/Makefile b/drivers/staging/android/Makefile
index 95209d6273a..30e23e7d69a 100644
--- a/drivers/staging/android/Makefile
+++ b/drivers/staging/android/Makefile
@@ -3,3 +3,9 @@ obj-$(CONFIG_ANDROID_LOGGER) += logger.o
obj-$(CONFIG_ANDROID_RAM_CONSOLE) += ram_console.o
obj-$(CONFIG_ANDROID_TIMED_GPIO) += timed_gpio.o
obj-$(CONFIG_ANDROID_LOW_MEMORY_KILLER) += lowmemorykiller.o
+obj-$(CONFIG_ANDROID_POWER_ALARM) += alarm.o
+obj-$(CONFIG_ANDROID_WAKELOCK) += wakelock.o
+obj-$(CONFIG_ANDROID_USER_WAKELOCK) += userwakelock.o
+obj-$(CONFIG_ANDROID_EARLYSUSPEND) += earlysuspend.o
+obj-$(CONFIG_ANDROID_CONSOLE_EARLYSUSPEND) += consoleearlysuspend.o
+obj-$(CONFIG_ANDROID_FB_EARLYSUSPEND) += fbearlysuspend.o