Merge "Use unzip -DD"
This commit is contained in:
commit
3227fc587c
5 changed files with 5 additions and 8 deletions
|
@ -265,7 +265,7 @@ $(3)/$(DEPMOD_STAGING_SUBDIR)/modules.dep: $(1) $(6)
|
||||||
rm -rf $$(PRIVATE_STAGING_DIR)
|
rm -rf $$(PRIVATE_STAGING_DIR)
|
||||||
mkdir -p $$(PRIVATE_MODULE_DIR)
|
mkdir -p $$(PRIVATE_MODULE_DIR)
|
||||||
$(if $(6),\
|
$(if $(6),\
|
||||||
unzip -qo -d $$(PRIVATE_MODULE_DIR) $$(PRIVATE_MODULE_ARCHIVE); \
|
unzip -qoDD -d $$(PRIVATE_MODULE_DIR) $$(PRIVATE_MODULE_ARCHIVE); \
|
||||||
mkdir -p $$(PRIVATE_OUTPUT_DIR)/lib; \
|
mkdir -p $$(PRIVATE_OUTPUT_DIR)/lib; \
|
||||||
cp -r $(3)/$(DEPMOD_STAGING_SUBDIR)/$(2)/lib/modules $$(PRIVATE_OUTPUT_DIR)/lib/; \
|
cp -r $(3)/$(DEPMOD_STAGING_SUBDIR)/$(2)/lib/modules $$(PRIVATE_OUTPUT_DIR)/lib/; \
|
||||||
find $$(PRIVATE_MODULE_DIR) -type f -name *.ko | xargs basename -a > $$(PRIVATE_LOAD_FILE); \
|
find $$(PRIVATE_MODULE_DIR) -type f -name *.ko | xargs basename -a > $$(PRIVATE_LOAD_FILE); \
|
||||||
|
|
|
@ -304,7 +304,7 @@ ifdef LOCAL_DEX_PREOPT
|
||||||
for i in $$(zipinfo -1 $(my_dexpreopt_zip)); \
|
for i in $$(zipinfo -1 $(my_dexpreopt_zip)); \
|
||||||
do mkdir -p $(PRODUCT_OUT)/$$(dirname $$i); \
|
do mkdir -p $(PRODUCT_OUT)/$$(dirname $$i); \
|
||||||
done && \
|
done && \
|
||||||
( unzip -qo -d $(PRODUCT_OUT) $(my_dexpreopt_zip) 2>&1 | grep -v "zipfile is empty"; exit $${PIPESTATUS[0]} ) || \
|
( unzip -qoDD -d $(PRODUCT_OUT) $(my_dexpreopt_zip) 2>&1 | grep -v "zipfile is empty"; exit $${PIPESTATUS[0]} ) || \
|
||||||
( code=$$?; if [ $$code -ne 0 -a $$code -ne 1 ]; then exit $$code; fi )
|
( code=$$?; if [ $$code -ne 0 -a $$code -ne 1 ]; then exit $$code; fi )
|
||||||
|
|
||||||
$(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD)
|
$(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD)
|
||||||
|
|
|
@ -47,7 +47,7 @@ $(my_unzipped_timestamp_path): PRIVATE_FULL_CLASSES_PRE_JACOCO_JAR := $(LOCAL_FU
|
||||||
$(my_unzipped_timestamp_path): $(LOCAL_FULL_CLASSES_PRE_JACOCO_JAR)
|
$(my_unzipped_timestamp_path): $(LOCAL_FULL_CLASSES_PRE_JACOCO_JAR)
|
||||||
rm -rf $(PRIVATE_UNZIPPED_PATH) $@
|
rm -rf $(PRIVATE_UNZIPPED_PATH) $@
|
||||||
mkdir -p $(PRIVATE_UNZIPPED_PATH)
|
mkdir -p $(PRIVATE_UNZIPPED_PATH)
|
||||||
unzip -q $(PRIVATE_FULL_CLASSES_PRE_JACOCO_JAR) \
|
unzip -qDD $(PRIVATE_FULL_CLASSES_PRE_JACOCO_JAR) \
|
||||||
-d $(PRIVATE_UNZIPPED_PATH) \
|
-d $(PRIVATE_UNZIPPED_PATH) \
|
||||||
$(PRIVATE_INCLUDE_ARGS)
|
$(PRIVATE_INCLUDE_ARGS)
|
||||||
(cd $(PRIVATE_UNZIPPED_PATH) && rm -rf $(PRIVATE_EXCLUDE_ARGS))
|
(cd $(PRIVATE_UNZIPPED_PATH) && rm -rf $(PRIVATE_EXCLUDE_ARGS))
|
||||||
|
|
|
@ -126,11 +126,8 @@ $(my_src_jar) : .KATI_IMPLICIT_OUTPUTS := $(my_src_proguard_options)
|
||||||
$(my_src_jar) : .KATI_IMPLICIT_OUTPUTS += $(my_src_android_manifest)
|
$(my_src_jar) : .KATI_IMPLICIT_OUTPUTS += $(my_src_android_manifest)
|
||||||
$(my_src_jar) : $(my_src_aar)
|
$(my_src_jar) : $(my_src_aar)
|
||||||
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@) $(dir $@)/res
|
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@) $(dir $@)/res
|
||||||
$(hide) unzip -qo -d $(dir $@) $<
|
$(hide) unzip -qoDD -d $(dir $@) $<
|
||||||
# Make sure the extracted classes.jar has a new timestamp.
|
|
||||||
$(hide) touch $@
|
|
||||||
# Make sure the proguard and AndroidManifest.xml files exist
|
# Make sure the proguard and AndroidManifest.xml files exist
|
||||||
# and have a new timestamp.
|
|
||||||
$(hide) touch $(dir $@)/proguard.txt
|
$(hide) touch $(dir $@)/proguard.txt
|
||||||
$(hide) touch $(dir $@)/AndroidManifest.xml
|
$(hide) touch $(dir $@)/AndroidManifest.xml
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ endef
|
||||||
$(eval $(call extract-master-from-apk-set,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_APK_SET_MASTER_FILE)))
|
$(eval $(call extract-master-from-apk-set,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_APK_SET_MASTER_FILE)))
|
||||||
# unzip returns 11 it there was nothing to extract, which is expected,
|
# unzip returns 11 it there was nothing to extract, which is expected,
|
||||||
# $(LOCAL_APK_SET_MASTER_FILE) has is already there.
|
# $(LOCAL_APK_SET_MASTER_FILE) has is already there.
|
||||||
LOCAL_POST_INSTALL_CMD := unzip -qo -j -d $(dir $(LOCAL_INSTALLED_MODULE)) \
|
LOCAL_POST_INSTALL_CMD := unzip -qoDD -j -d $(dir $(LOCAL_INSTALLED_MODULE)) \
|
||||||
$(LOCAL_PREBUILT_MODULE_FILE) -x $(LOCAL_APK_SET_MASTER_FILE) || [[ $$? -eq 11 ]]
|
$(LOCAL_PREBUILT_MODULE_FILE) -x $(LOCAL_APK_SET_MASTER_FILE) || [[ $$? -eq 11 ]]
|
||||||
$(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD)
|
$(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD)
|
||||||
PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_PACKAGES))
|
PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_PACKAGES))
|
||||||
|
|
Loading…
Reference in a new issue