-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0002-Use-zstd-with-no-options-for-faster-compression.patch
44 lines (37 loc) · 1.65 KB
/
0002-Use-zstd-with-no-options-for-faster-compression.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 11fc54751a599456f8ceabe0da43956d06fbbe6f Mon Sep 17 00:00:00 2001
From: Juhyung Park <[email protected]>
Date: Tue, 1 Mar 2022 20:51:23 +0900
Subject: [PATCH 02/10] Use zstd with no options for faster compression
This is taking a whole 30 seconds.
Signed-off-by: Juhyung Park <[email protected]>
---
arch/x86/boot/compressed/Makefile | 2 +-
scripts/Makefile.lib | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 71fc531b95b4e..260d38e772b02 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -147,7 +147,7 @@ $(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y) FORCE
$(obj)/vmlinux.bin.lz4: $(vmlinux.bin.all-y) FORCE
$(call if_changed,lz4_with_size)
$(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
- $(call if_changed,zstd22_with_size)
+ $(call if_changed,zstd_with_size)
suffix-$(CONFIG_KERNEL_GZIP) := gz
suffix-$(CONFIG_KERNEL_BZIP2) := bz2
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 68d0134bdbf9d..399af8fd4e1ec 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -545,8 +545,8 @@ quiet_cmd_zstd = ZSTD $@
quiet_cmd_zstd22 = ZSTD22 $@
cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -22 --ultra > $@
-quiet_cmd_zstd22_with_size = ZSTD22 $@
- cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@
+quiet_cmd_zstd_with_size = ZSTD $@
+ cmd_zstd_with_size = { cat $(real-prereqs) | $(ZSTD) -T0; $(size_append); } > $@
# ASM offsets
# ---------------------------------------------------------------------------
--
2.43.0