forked from Quarx2k/android_device_lg_w7ds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Iaffc5cebc3261a2909bfa4a300d4bcc17bf4a019
- Loading branch information
1 parent
59b894e
commit fbc816a
Showing
13 changed files
with
1,352 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 2011 The Android Open Source Project | ||
|
||
ifneq ($(BUILD_TINY_ANDROID),true) | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
define _add-w7-charger-image | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := device_w7_w7_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-w7-charger-image,$(_img)))) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := charger_res_images_w7 | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_REQUIRED_MODULES := $(_img_modules) | ||
include $(BUILD_PHONY_PACKAGE) | ||
|
||
_add-charger-image := | ||
_img_modules := | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_SRC_FILES := \ | ||
charger.c | ||
|
||
LOCAL_CFLAGS += -DCHARGER_ENABLE_SUSPEND | ||
|
||
LOCAL_MODULE := charger_w7 | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_FORCE_STATIC_EXECUTABLE := true | ||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) | ||
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED) | ||
LOCAL_ADDITIONAL_DEPENDENCIES := charger_res_images_w7 | ||
LOCAL_C_INCLUDES := $(call project-path-for,recovery) | ||
|
||
LOCAL_STATIC_LIBRARIES := libminui libpixelflinger_static libpng | ||
LOCAL_STATIC_LIBRARIES += libsuspend | ||
LOCAL_STATIC_LIBRARIES += libz libstdc++ libcutils liblog libm libc | ||
|
||
include $(BUILD_EXECUTABLE) | ||
|
||
endif |
Oops, something went wrong.