forked from mdmower/twrp-htc-m7univ
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update makefiles for new build methods
Move prebuilt files to recovery/root so they are automatically copied by recovery_root_private (no need for PRODUCT_COPY_FILES or prebuilt modules). Add chargeled under TARGET_RECOVERY_DEVICE_MODULES so that it becomes a dependency of recovery. Change-Id: I6f6022c6027f22f74dd0810f7701281e69a4b129
- Loading branch information
Showing
58 changed files
with
2 additions
and
62 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
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 |
---|---|---|
@@ -1,49 +1,2 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
define _add-offmode_charging-image | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := offmode_charging_$(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_RECOVERY_ROOT_OUT)/res/offmode_charging_images | ||
include $$(BUILD_PREBUILT) | ||
endef | ||
|
||
_img_modules := | ||
$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_images", "*.png"), \ | ||
$(eval $(call _add-offmode_charging-image,$(_img)))) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := offmode_charging_res_images | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_REQUIRED_MODULES := $(_img_modules) | ||
include $(BUILD_PHONY_PACKAGE) | ||
|
||
define _add-offmode_charging_warn-image | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := offmode_charging_warn_$(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_RECOVERY_ROOT_OUT)/res/offmode_charging_warn_images | ||
include $$(BUILD_PREBUILT) | ||
endef | ||
|
||
_img_modules := | ||
$(foreach _img, $(call find-subdir-subdir-files, "res/offmode_charging_warn_images", "*.png"), \ | ||
$(eval $(call _add-offmode_charging_warn-image,$(_img)))) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := offmode_charging_warn_res_images | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_REQUIRED_MODULES := $(_img_modules) | ||
include $(BUILD_PHONY_PACKAGE) | ||
|
||
_add-offmode_charging-image := | ||
_add-offmode_charging_warn-image := | ||
_img_modules := | ||
include $(call first-makefiles-under, $(LOCAL_PATH)) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.