summaryrefslogtreecommitdiffstats
path: root/healthd/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'healthd/Android.mk')
-rw-r--r--healthd/Android.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/healthd/Android.mk b/healthd/Android.mk
index fe092b7..ce83b63 100644
--- a/healthd/Android.mk
+++ b/healthd/Android.mk
@@ -13,10 +13,15 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
healthd.cpp \
healthd_mode_android.cpp \
- healthd_mode_charger.cpp \
BatteryMonitor.cpp \
BatteryPropertiesRegistrar.cpp
+ifeq ($(strip $(BOARD_HEALTHD_CUSTOM_CHARGER)),)
+ LOCAL_SRC_FILES += healthd_mode_charger.cpp
+else
+ LOCAL_SRC_FILES += ../../../$(BOARD_HEALTHD_CUSTOM_CHARGER)
+endif
+
LOCAL_MODULE := healthd
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
@@ -75,8 +80,13 @@ include $$(BUILD_PREBUILT)
endef
_img_modules :=
+ifeq ($(strip $(BOARD_HEALTHD_CUSTOM_CHARGER_RES)),)
+IMAGES_DIR := images
+else
+IMAGES_DIR := ../../../$(BOARD_HEALTHD_CUSTOM_CHARGER_RES)
+endif
_images :=
-$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \
+$(foreach _img, $(call find-subdir-subdir-files, "$(IMAGES_DIR)", "*.png"), \
$(eval $(call _add-charger-image,$(_img))))
include $(CLEAR_VARS)