summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2016-10-24 13:35:47 -0700
committerNick Vaccaro <nvaccaro@google.com>2016-10-24 13:58:49 -0700
commite3083dec0fc14c125eadf0bdd94bb9c65d2f6d68 (patch)
treed1bd22631189d01b6714a81dba1f0396a3075aaa /healthd
parenta1be7d1bb51e843784f17e4ab0185989d724dae3 (diff)
downloadsystem_core-e3083dec0fc14c125eadf0bdd94bb9c65d2f6d68.tar.gz
system_core-e3083dec0fc14c125eadf0bdd94bb9c65d2f6d68.tar.bz2
system_core-e3083dec0fc14c125eadf0bdd94bb9c65d2f6d68.zip
Enable CHARGER_ENABLE_SUSPEND to allow suspend
Fixed a bug in makefile that was keeping CHARGER_ENABLE_SUSPEND from getting properly set, so healthd was not trying to put kernel into suspend. Bug: 32162033 Change-Id: If054d7996fa5734285cbcd7d497492570076c141
Diffstat (limited to 'healthd')
-rw-r--r--healthd/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/healthd/Android.mk b/healthd/Android.mk
index 9bff767a1..139096206 100644
--- a/healthd/Android.mk
+++ b/healthd/Android.mk
@@ -19,6 +19,10 @@ LOCAL_STATIC_LIBRARIES := libutils
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
+ifeq ($(strip $(BOARD_CHARGER_ENABLE_SUSPEND)),true)
+LOCAL_CFLAGS += -DCHARGER_ENABLE_SUSPEND
+LOCAL_SHARED_LIBRARIES += libsuspend
+endif
LOCAL_SRC_FILES := \
healthd_mode_android.cpp \
healthd_mode_charger.cpp \
@@ -76,7 +80,6 @@ endif
ifneq ($(BOARD_PERIODIC_CHORES_INTERVAL_SLOW),)
LOCAL_CFLAGS += -DBOARD_PERIODIC_CHORES_INTERVAL_SLOW=$(BOARD_PERIODIC_CHORES_INTERVAL_SLOW)
endif
-
LOCAL_C_INCLUDES := bootable/recovery
LOCAL_STATIC_LIBRARIES := \