mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 14:14:24 +08:00
kbuild: remove CONFIG_MODULE_COMPRESS
CONFIG_MODULE_COMPRESS is only used to activate the choice for module compression algorithm. It will be simpler to make the choice always visible, and add CONFIG_MODULE_COMPRESS_NONE in the choice. This is more consistent with the "Kernel compression mode" and "Built-in initramfs compression mode" choices. CONFIG_KERNEL_UNCOMPRESSED and CONFIG_INITRAMFS_COMPRESSION_NONE are available to choose no compression. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
parent
961ab4a3cd
commit
d4bbe94209
57
init/Kconfig
57
init/Kconfig
@ -2225,40 +2225,47 @@ config MODULE_SIG_HASH
|
|||||||
default "sha384" if MODULE_SIG_SHA384
|
default "sha384" if MODULE_SIG_SHA384
|
||||||
default "sha512" if MODULE_SIG_SHA512
|
default "sha512" if MODULE_SIG_SHA512
|
||||||
|
|
||||||
config MODULE_COMPRESS
|
|
||||||
bool "Compress modules on installation"
|
|
||||||
help
|
|
||||||
|
|
||||||
Compresses kernel modules when 'make modules_install' is run; gzip or
|
|
||||||
xz depending on "Compression algorithm" below.
|
|
||||||
|
|
||||||
module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
|
|
||||||
|
|
||||||
Out-of-tree kernel modules installed using Kbuild will also be
|
|
||||||
compressed upon installation.
|
|
||||||
|
|
||||||
Note: for modules inside an initrd or initramfs, it's more efficient
|
|
||||||
to compress the whole initrd or initramfs instead.
|
|
||||||
|
|
||||||
Note: This is fully compatible with signed modules.
|
|
||||||
|
|
||||||
If in doubt, say N.
|
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Compression algorithm"
|
prompt "Module compression mode"
|
||||||
depends on MODULE_COMPRESS
|
|
||||||
default MODULE_COMPRESS_GZIP
|
|
||||||
help
|
help
|
||||||
This determines which sort of compression will be used during
|
This option allows you to choose the algorithm which will be used to
|
||||||
'make modules_install'.
|
compress modules when 'make modules_install' is run. (or, you can
|
||||||
|
choose to not compress modules at all.)
|
||||||
|
|
||||||
GZIP (default) and XZ are supported.
|
External modules will also be compressed in the same way during the
|
||||||
|
installation.
|
||||||
|
|
||||||
|
For modules inside an initrd or initramfs, it's more efficient to
|
||||||
|
compress the whole initrd or initramfs instead.
|
||||||
|
|
||||||
|
This is fully compatible with signed modules.
|
||||||
|
|
||||||
|
Please note that the tool used to load modules needs to support the
|
||||||
|
corresponding algorithm. module-init-tools MAY support gzip, and kmod
|
||||||
|
MAY support gzip and xz.
|
||||||
|
|
||||||
|
Your build system needs to provide the appropriate compression tool
|
||||||
|
to compress the modules.
|
||||||
|
|
||||||
|
If in doubt, select 'None'.
|
||||||
|
|
||||||
|
config MODULE_COMPRESS_NONE
|
||||||
|
bool "None"
|
||||||
|
help
|
||||||
|
Do not compress modules. The installed modules are suffixed
|
||||||
|
with .ko.
|
||||||
|
|
||||||
config MODULE_COMPRESS_GZIP
|
config MODULE_COMPRESS_GZIP
|
||||||
bool "GZIP"
|
bool "GZIP"
|
||||||
|
help
|
||||||
|
Compress modules with GZIP. The installed modules are suffixed
|
||||||
|
with .ko.gz.
|
||||||
|
|
||||||
config MODULE_COMPRESS_XZ
|
config MODULE_COMPRESS_XZ
|
||||||
bool "XZ"
|
bool "XZ"
|
||||||
|
help
|
||||||
|
Compress modules with XZ. The installed modules are suffixed
|
||||||
|
with .ko.xz.
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user