Skip to content

Commit

Permalink
initramfs: make compression options not depend on INITRAMFS_SOURCE
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y committed Jan 14, 2020
1 parent be1859b commit ddd09bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions usr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ddd09bc

Please sign in to comment.