Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
Use 0 compression when creating the target_files package
Browse files Browse the repository at this point in the history
The zip file under $OUT/obj/PACKAGING/target_files_intermediate
is used for final package creation,
and it's being unzipped multiple times by releasetools.

(Not to mention that it also takes an awful lot of time
just to zip it initially.)

Using 0 compression on it reduces the build time by several minutes.

The final zip package is untouched by this change(remains compressed).

Change-Id: Ic38b470f97f1e0ebb80da9d4f7750e4ccf53e05c
Signed-off-by: Park Ju Hyung <[email protected]>
  • Loading branch information
arter97 authored and jhenrique09 committed Jun 21, 2023
1 parent abf5fb6 commit 65dad92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6177,7 +6177,7 @@ endif
@# help early validation of the .zip file while uploading it.
$(hide) find $(zip_root)/META | sort >[email protected]
$(hide) find $(zip_root) -path $(zip_root)/META -prune -o -print | sort >>[email protected]
$(hide) $(SOONG_ZIP) -d -o $@ -C $(zip_root) -r [email protected]
$(hide) $(SOONG_ZIP) -L 0 -d -o $@ -C $(zip_root) -r [email protected]

.PHONY: target-files-package
target-files-package: $(BUILT_TARGET_FILES_PACKAGE)
Expand Down

0 comments on commit 65dad92

Please sign in to comment.