]> git.baikalelectronics.ru Git - kernel.git/commit
initramfs: do not show compression mode choice if INITRAMFS_SOURCE is empty
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 3 Feb 2020 16:47:08 +0000 (01:47 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 3 Feb 2020 17:31:43 +0000 (17:31 +0000)
commit4bf3a96749c4db089c0beab2dc8a26285fdccd79
treef1231c630ab175d67f0c7ef10a995812f7638614
parent2b52ec2cd6f59866d1d57a21f481d9c2df94adbc
initramfs: do not show compression mode choice if INITRAMFS_SOURCE is empty

Since commit c3e393369559 ("initramfs: make compression options not
depend on INITRAMFS_SOURCE"), Kconfig asks the compression mode for
the built-in initramfs regardless of INITRAMFS_SOURCE.

It is technically simpler, but pointless from a UI perspective,
Linus says [1].

When INITRAMFS_SOURCE is empty, usr/Makefile creates a tiny default
cpio, which is so small that nobody cares about the compression.

This commit hides the Kconfig choice in that case. The default cpio
is embedded without compression, which was the original behavior.

[1]: https://lkml.org/lkml/2020/2/1/160

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
usr/Kconfig
usr/Makefile