OSDN Git Service

initramfs: make compression options not depend on INITRAMFS_SOURCE
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 4 Jan 2020 15:02:31 +0000 (00:02 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 14 Jan 2020 01:42:44 +0000 (10:42 +0900)
Even if INITRAMFS_SOURCE is empty, usr/gen_initramfs.sh generates a
tiny default initramfs, which is embedded in vmlinux.

So, defining INITRAMFS_COMPRESSION* options should be valid irrespective
of INITRAMFS_SOURCE.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
usr/Kconfig

index 72f50a2..43934c1 100644 (file)
@@ -102,7 +102,6 @@ config RD_LZ4
 
 choice
        prompt "Built-in initramfs compression mode"
-       depends on INITRAMFS_SOURCE!=""
        optional
        help
          This option allows you to decide by which algorithm the builtin
@@ -211,7 +210,6 @@ config INITRAMFS_COMPRESSION_LZ4
 endchoice
 
 config INITRAMFS_COMPRESSION
-       depends on INITRAMFS_SOURCE!=""
        string
        default ""      if INITRAMFS_COMPRESSION_NONE
        default ".gz"   if INITRAMFS_COMPRESSION_GZIP