Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 2940dbb

Browse files
committed
Enable multithreaded xz compression
1 parent 488aab7 commit 2940dbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-rom.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ buildVariant() {
8686
make WITHOUT_CHECK_API=true BUILD_NUMBER=$rom_fp installclean
8787
make WITHOUT_CHECK_API=true BUILD_NUMBER=$rom_fp -j$jobs systemimage
8888
make WITHOUT_CHECK_API=true BUILD_NUMBER=$rom_fp vndk-test-sepolicy
89-
xz -c $OUT/system.img > release/$rom_fp/system-${2}.img.xz
89+
xz -c $OUT/system.img -T$jobs > release/$rom_fp/system-${2}.img.xz
9090
}
9191

9292
repo manifest -r > release/$rom_fp/manifest.xml

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ buildVariant() {
4141
make BUILD_NUMBER=$rom_fp installclean
4242
make BUILD_NUMBER=$rom_fp -j8 systemimage
4343
make BUILD_NUMBER=$rom_fp vndk-test-sepolicy
44-
xz -c $OUT/system.img > release/$rom_fp/system-${2}.img.xz
44+
xz -c $OUT/system.img -T0 > release/$rom_fp/system-${2}.img.xz
4545
}
4646

4747
repo manifest -r > release/$rom_fp/manifest.xml

0 commit comments

Comments
 (0)