aboutsummaryrefslogtreecommitdiffstats
path: root/charger/Android.mk
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-30 10:46:09 -0700
committerDima Zavin <dima@android.com>2011-09-04 15:41:36 -0700
commitf48b23688c1303212c65e470af9f9f3892e98f8e (patch)
tree99c5dd020b9be61e79f2d3e78936e24f5bc0986b /charger/Android.mk
parentca47cef7491caf6072984d9d64c768717baad09a (diff)
downloadsystem_core-f48b23688c1303212c65e470af9f9f3892e98f8e.tar.gz
system_core-f48b23688c1303212c65e470af9f9f3892e98f8e.tar.bz2
system_core-f48b23688c1303212c65e470af9f9f3892e98f8e.zip
core: Add a standalone charger UI binary
This can be launched from an 'on charger' section in init, which is processed if androidboot.mode=charger is supplied on kernel command line. This is a standalone binary that has a simple "user interface" and allows the standard production kernel to run while charging. This removes the burden from the bootloader to get low-power mode working. Currently, the device will "power-on" (i.e. reboot) into normal mode if the power key is pressed for X seconds, and will also power down the device if the usb/ac cable is removed for Y seconds. Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'charger/Android.mk')
-rw-r--r--charger/Android.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/charger/Android.mk b/charger/Android.mk
new file mode 100644
index 00000000..75e78d54
--- /dev/null
+++ b/charger/Android.mk
@@ -0,0 +1,20 @@
+# Copyright 2011 The Android Open Source Project
+
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ charger.c
+
+LOCAL_MODULE := charger
+LOCAL_MODULE_TAGS := optional
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
+
+LOCAL_C_INCLUDES := bootable/recovery
+
+LOCAL_STATIC_LIBRARIES := libminui libpixelflinger_static libpng
+LOCAL_STATIC_LIBRARIES += libz libstdc++ libcutils libc
+
+include $(BUILD_EXECUTABLE)