Commit 40297927575a50b1d0d308d735c445924d33fba6

Authored by H. Peter Anvin
1 parent 55d1d26f23

bzip2/lzma: don't ask for compression mode for the default initramfs

Impact: Kconfig noise reduction, documentation

The default initramfs is so small that it makes no sense to worry
about the additional memory taken by not double-compressing it.
Therefore, don't bug the user with it.

Also, improve the description of the option, which was downright
incorrect.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

Showing 1 changed file with 22 additions and 10 deletions Side-by-side Diff

... ... @@ -72,23 +72,24 @@
72 72 Support loading of a LZMA encoded initial ramdisk or cpio buffer
73 73 If unsure, say N.
74 74  
  75 +if INITRAMFS_SOURCE!=""
  76 +
75 77 choice
76 78 prompt "Built-in initramfs compression mode"
77 79 help
78   - This setting is only meaningful if the INITRAMFS_SOURCE is
79   - set. It decides by which algorithm the INITRAMFS_SOURCE will
80   - be compressed.
81   - Several compression algorithms are available, which differ
82   - in efficiency, compression and decompression speed.
83   - Compression speed is only relevant when building a kernel.
84   - Decompression speed is relevant at each boot.
  80 + This option decides by which algorithm the builtin initramfs
  81 + will be compressed. Several compression algorithms are
  82 + available, which differ in efficiency, compression and
  83 + decompression speed. Compression speed is only relevant
  84 + when building a kernel. Decompression speed is relevant at
  85 + each boot.
85 86  
86 87 If you have any problems with bzip2 or LZMA compressed
87 88 initramfs, mail me (Alain Knaff) <alain@knaff.lu>.
88 89  
89   - High compression options are mostly useful for users who
90   - are low on disk space (embedded systems), but for whom ram
91   - size matters less.
  90 + High compression options are mostly useful for users who are
  91 + low on RAM, since it reduces the memory consumption during
  92 + boot.
92 93  
93 94 If in doubt, select 'gzip'
94 95  
... ... @@ -133,4 +134,15 @@
133 134 smaller with LZMA in comparison to gzip.
134 135  
135 136 endchoice
  137 +
  138 +endif
  139 +
  140 +if INITRAMFS_SOURCE=""
  141 +# The builtin initramfs is so small so we don't want to bug the user...
  142 +
  143 +config INITRAMFS_COMPRESSION_NONE
  144 + bool
  145 + default y
  146 +
  147 +endif