blob: 591a4e8cf13bd5290bb6583ebc73b9812dc1540e (
plain)
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
44
45
46
47
48
49
|
diff -Naur linux-5.5.11/init/Kconfig linux-5.5.11-p/init/Kconfig
--- linux-5.5.11/init/Kconfig 2020-03-21 08:15:56.000000000 +0100
+++ linux-5.5.11-p/init/Kconfig 2020-03-23 17:29:43.424355692 +0100
@@ -2103,10 +2103,10 @@
bool "Compress modules on installation"
help
- Compresses kernel modules when 'make modules_install' is run; gzip or
- xz depending on "Compression algorithm" below.
+ Compresses kernel modules when 'make modules_install' is run; gzip,
+ xz or zstd depending on "Compression algorithm" below.
- module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
+ module-init-tools MAY support gzip, and kmod MAY support gzip, xz and zstd.
Out-of-tree kernel modules installed using Kbuild will also be
compressed upon installation.
@@ -2126,7 +2126,7 @@
This determines which sort of compression will be used during
'make modules_install'.
- GZIP (default) and XZ are supported.
+ GZIP (default), XZ and ZSTD are supported.
config MODULE_COMPRESS_GZIP
bool "GZIP"
@@ -2134,6 +2134,9 @@
config MODULE_COMPRESS_XZ
bool "XZ"
+config MODULE_COMPRESS_ZSTD
+ bool "ZSTD"
+
endchoice
config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
diff -Naur linux-5.5.11/Makefile linux-5.5.11-p/Makefile
--- linux-5.5.11/Makefile 2020-03-23 17:32:31.848367600 +0100
+++ linux-5.5.11-p/Makefile 2020-03-23 17:31:57.173159400 +0100
@@ -983,6 +983,9 @@
ifdef CONFIG_MODULE_COMPRESS_XZ
mod_compress_cmd = xz -T0 -f
endif # CONFIG_MODULE_COMPRESS_XZ
+ ifdef CONFIG_MODULE_COMPRESS_ZSTD
+ mod_compress_cmd = zstd -T0 -19 -q --rm -f
+ endif # CONFIG_MODULE_COMPRESS_ZSTD
endif # CONFIG_MODULE_COMPRESS
export mod_compress_cmd
|