aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-28 20:24:03 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-03-28 20:27:15 -0400
commit40297927575a50b1d0d308d735c445924d33fba6 (patch)
tree30e85426767ea2caea16d3e66db0ff98066e2c6a
parent55d1d26f23383163a256d0de2aaf2b8fca83e611 (diff)
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>
-rw-r--r--usr/Kconfig32
1 files changed, 22 insertions, 10 deletions
diff --git a/usr/Kconfig b/usr/Kconfig
index a529b4d0530b..588c588791e2 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -72,23 +72,24 @@ config RD_LZMA
72 Support loading of a LZMA encoded initial ramdisk or cpio buffer 72 Support loading of a LZMA encoded initial ramdisk or cpio buffer
73 If unsure, say N. 73 If unsure, say N.
74 74
75if INITRAMFS_SOURCE!=""
76
75choice 77choice
76 prompt "Built-in initramfs compression mode" 78 prompt "Built-in initramfs compression mode"
77 help 79 help
78 This setting is only meaningful if the INITRAMFS_SOURCE is 80 This option decides by which algorithm the builtin initramfs
79 set. It decides by which algorithm the INITRAMFS_SOURCE will 81 will be compressed. Several compression algorithms are
80 be compressed. 82 available, which differ in efficiency, compression and
81 Several compression algorithms are available, which differ 83 decompression speed. Compression speed is only relevant
82 in efficiency, compression and decompression speed. 84 when building a kernel. Decompression speed is relevant at
83 Compression speed is only relevant when building a kernel. 85 each boot.
84 Decompression speed is relevant at each boot.
85 86
86 If you have any problems with bzip2 or LZMA compressed 87 If you have any problems with bzip2 or LZMA compressed
87 initramfs, mail me (Alain Knaff) <alain@knaff.lu>. 88 initramfs, mail me (Alain Knaff) <alain@knaff.lu>.
88 89
89 High compression options are mostly useful for users who 90 High compression options are mostly useful for users who are
90 are low on disk space (embedded systems), but for whom ram 91 low on RAM, since it reduces the memory consumption during
91 size matters less. 92 boot.
92 93
93 If in doubt, select 'gzip' 94 If in doubt, select 'gzip'
94 95
@@ -133,3 +134,14 @@ config INITRAMFS_COMPRESSION_LZMA
133 smaller with LZMA in comparison to gzip. 134 smaller with LZMA in comparison to gzip.
134 135
135endchoice 136endchoice
137
138endif
139
140if INITRAMFS_SOURCE=""
141# The builtin initramfs is so small so we don't want to bug the user...
142
143config INITRAMFS_COMPRESSION_NONE
144 bool
145 default y
146
147endif