Skip to content

Commit b589c8a

Browse files
Andi Kleenmichal42
authored andcommitted
Kbuild: use normal compression settings for tar*-pkg
For large kernel configurations (like a distribution kernel) targz-pkg takes a quite long time to just do the compression. I clocked it at 15+mins for a SUSE kernel like config on a fast system. And tarxz and bzip2 are even slower. The main reason is that the script that is doing the taring sets the highest compression level (-9). When I change it to just use the defaults the gzip time for the same kernel goes down to ~3 mins. I haven't tested xz and bzip, but I expect those to be much faster too. I'm not willing to wait that long for a small compression gain. So just change the script to use the defaults. Signed-off-by: Andi Kleen <ak@linux.intel.com> Reviewed-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent ef591a5 commit b589c8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/package/buildtar‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ case "${1}" in
2828
file_ext=""
2929
;;
3030
targz-pkg)
31-
compress="gzip -c9"
31+
compress="gzip"
3232
file_ext=".gz"
3333
;;
3434
tarbz2-pkg)
35-
compress="bzip2 -c9"
35+
compress="bzip2"
3636
file_ext=".bz2"
3737
;;
3838
tarxz-pkg)
39-
compress="xz -c9"
39+
compress="xz"
4040
file_ext=".xz"
4141
;;
4242
*)

0 commit comments

Comments
 (0)