auto import from //branches/cupcake/...@127101
This commit is contained in:
@@ -809,6 +809,11 @@ define package_files-copy-root
|
||||
fi
|
||||
endef
|
||||
|
||||
built_ota_tools := \
|
||||
$(hide) $(ACP) $(call intermediates-dir-for,EXECUTABLES,applypatch)/applypatch \
|
||||
$(hide) $(ACP) $(call intermediates-dir-for,EXECUTABLES,check_prereq)/check_prereq
|
||||
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_OTA_TOOLS := $(built_ota_tools)
|
||||
|
||||
# Depending on the various images guarantees that the underlying
|
||||
# directories are up-to-date.
|
||||
$(BUILT_TARGET_FILES_PACKAGE): \
|
||||
@@ -820,6 +825,7 @@ $(BUILT_TARGET_FILES_PACKAGE): \
|
||||
$(INSTALLED_USERDATAIMAGE_TARGET) \
|
||||
$(INSTALLED_ANDROID_INFO_TXT_TARGET) \
|
||||
$(INTERNAL_OTA_SCRIPT_TARGET) \
|
||||
$(built_ota_tools) \
|
||||
$(APKCERTS_FILE) \
|
||||
| $(ACP)
|
||||
@echo "Package target files: $@"
|
||||
@@ -865,10 +871,11 @@ endif
|
||||
$(hide) $(call package_files-copy-root, \
|
||||
$(TARGET_OUT_DATA),$(zip_root)/DATA)
|
||||
@# Extra contents of the OTA package
|
||||
$(hide) mkdir -p $(zip_root)/OTA
|
||||
$(hide) mkdir -p $(zip_root)/OTA/bin
|
||||
$(hide) $(call package_files-copy-root, \
|
||||
$(INTERNAL_OTA_INTERMEDIATES_DIR),$(zip_root)/OTA)
|
||||
$(hide) $(ACP) $(INSTALLED_ANDROID_INFO_TXT_TARGET) $(zip_root)/OTA/
|
||||
$(hide) $(ACP) $(PRIVATE_OTA_TOOLS) $(zip_root)/OTA/bin/
|
||||
@# Files that don't end up in any images, but are necessary to
|
||||
@# build them.
|
||||
$(hide) mkdir -p $(zip_root)/META
|
||||
|
@@ -243,15 +243,9 @@ endef
|
||||
###########################################################
|
||||
|
||||
define find-subdir-assets
|
||||
$(if $(1),\
|
||||
$(patsubst ./%,%, $(foreach dir,$(1),\
|
||||
$(shell if [ -d $(dir) ] ; then\
|
||||
cd $(dir) ; find ./ -type f -and -not -type l ;\
|
||||
fi \
|
||||
) \
|
||||
)) \
|
||||
, \
|
||||
$(warning Empty argument supplied to find-subdir-assets) \
|
||||
$(if $(1),$(patsubst ./%,%, \
|
||||
$(shell if [ -d $(1) ] ; then cd $(1) ; find ./ -type f -and -not -type l ; fi)), \
|
||||
$(warning Empty argument supplied to find-subdir-assets) \
|
||||
)
|
||||
endef
|
||||
|
||||
|
@@ -65,9 +65,11 @@ LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
|
||||
endif
|
||||
|
||||
ifeq (,$(LOCAL_RESOURCE_DIR))
|
||||
LOCAL_RESOURCE_DIR := $(wildcard $(addsuffix /$(LOCAL_PATH)/res, $(PRODUCT_PACKAGE_OVERLAYS))) \
|
||||
$(LOCAL_PATH)/res
|
||||
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
||||
endif
|
||||
LOCAL_RESOURCE_DIR := \
|
||||
$(wildcard $(addsuffix /$(LOCAL_RESOURCE_DIR), $(PRODUCT_PACKAGE_OVERLAYS))) \
|
||||
$(LOCAL_RESOURCE_DIR)
|
||||
|
||||
# this is an app, so add the system libraries to the search path
|
||||
LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
|
||||
@@ -77,8 +79,14 @@ LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
|
||||
all_assets := $(call find-subdir-assets,$(LOCAL_ASSET_DIR))
|
||||
all_assets := $(addprefix $(LOCAL_ASSET_DIR)/,$(patsubst assets/%,%,$(all_assets)))
|
||||
|
||||
all_resources := $(call find-subdir-assets,$(LOCAL_RESOURCE_DIR))
|
||||
all_resources := $(addprefix $(LOCAL_RESOURCE_DIR)/,$(patsubst res/%,%,$(all_resources)))
|
||||
all_resources := $(strip \
|
||||
$(foreach dir, $(LOCAL_RESOURCE_DIR), \
|
||||
$(addprefix $(dir)/, \
|
||||
$(patsubst res/%,%, \
|
||||
$(call find-subdir-assets,$(dir)) \
|
||||
) \
|
||||
) \
|
||||
))
|
||||
|
||||
all_res_assets := $(strip $(all_assets) $(all_resources))
|
||||
|
||||
|
Reference in New Issue
Block a user