2011-08-30 19:46:09 +02:00
|
|
|
# Copyright 2011 The Android Open Source Project
|
|
|
|
|
2011-09-21 02:38:06 +02:00
|
|
|
ifneq ($(BUILD_TINY_ANDROID),true)
|
|
|
|
|
2011-08-30 19:46:09 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
charger.c
|
|
|
|
|
2012-10-13 00:13:52 +02:00
|
|
|
ifeq ($(strip $(BOARD_CHARGER_DISABLE_INIT_BLANK)),true)
|
|
|
|
LOCAL_CFLAGS := -DCHARGER_DISABLE_INIT_BLANK
|
|
|
|
endif
|
|
|
|
|
2012-11-16 02:03:03 +01:00
|
|
|
ifeq ($(strip $(BOARD_CHARGER_ENABLE_SUSPEND)),true)
|
|
|
|
LOCAL_CFLAGS += -DCHARGER_ENABLE_SUSPEND
|
|
|
|
endif
|
|
|
|
|
2011-08-30 19:46:09 +02:00
|
|
|
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
|
2012-11-16 02:03:03 +01:00
|
|
|
ifeq ($(strip $(BOARD_CHARGER_ENABLE_SUSPEND)),true)
|
|
|
|
LOCAL_STATIC_LIBRARIES += libsuspend
|
|
|
|
endif
|
2013-04-10 07:03:45 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES += libz libstdc++ libcutils liblog libm libc
|
2011-08-30 19:46:09 +02:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2011-09-21 02:38:06 +02:00
|
|
|
|
2011-09-23 00:49:04 +02:00
|
|
|
define _add-charger-image
|
|
|
|
include $$(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := system_core_charger_$(notdir $(1))
|
|
|
|
LOCAL_MODULE_STEM := $(notdir $(1))
|
|
|
|
_img_modules += $$(LOCAL_MODULE)
|
|
|
|
LOCAL_SRC_FILES := $1
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE_CLASS := ETC
|
|
|
|
LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger
|
|
|
|
include $$(BUILD_PREBUILT)
|
|
|
|
endef
|
|
|
|
|
|
|
|
_img_modules :=
|
|
|
|
_images :=
|
|
|
|
$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \
|
|
|
|
$(eval $(call _add-charger-image,$(_img))))
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := charger_res_images
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_REQUIRED_MODULES := $(_img_modules)
|
|
|
|
include $(BUILD_PHONY_PACKAGE)
|
|
|
|
|
|
|
|
_add-charger-image :=
|
|
|
|
_img_modules :=
|
2011-09-26 07:27:13 +02:00
|
|
|
|
2011-09-21 02:38:06 +02:00
|
|
|
endif
|