diff options
| -rw-r--r-- | usr/Kconfig | 54 |
1 files changed, 33 insertions, 21 deletions
diff --git a/usr/Kconfig b/usr/Kconfig index 43a3a0fe8f29..588c588791e2 100644 --- a/usr/Kconfig +++ b/usr/Kconfig | |||
| @@ -46,49 +46,50 @@ config INITRAMFS_ROOT_GID | |||
| 46 | If you are not sure, leave it set to "0". | 46 | If you are not sure, leave it set to "0". |
| 47 | 47 | ||
| 48 | config RD_GZIP | 48 | config RD_GZIP |
| 49 | bool "Initial ramdisk compressed using gzip" | 49 | bool "Support initial ramdisks compressed using gzip" if EMBEDDED |
| 50 | default y | 50 | default y |
| 51 | depends on BLK_DEV_INITRD=y | 51 | depends on BLK_DEV_INITRD |
| 52 | select DECOMPRESS_GZIP | 52 | select DECOMPRESS_GZIP |
| 53 | help | 53 | help |
| 54 | Support loading of a gzip encoded initial ramdisk or cpio buffer. | 54 | Support loading of a gzip encoded initial ramdisk or cpio buffer. |
| 55 | If unsure, say Y. | 55 | If unsure, say Y. |
| 56 | 56 | ||
| 57 | config RD_BZIP2 | 57 | config RD_BZIP2 |
| 58 | bool "Initial ramdisk compressed using bzip2" | 58 | bool "Support initial ramdisks compressed using bzip2" if EMBEDDED |
| 59 | default n | 59 | default !EMBEDDED |
| 60 | depends on BLK_DEV_INITRD=y | 60 | depends on BLK_DEV_INITRD |
| 61 | select DECOMPRESS_BZIP2 | 61 | select DECOMPRESS_BZIP2 |
| 62 | help | 62 | help |
| 63 | Support loading of a bzip2 encoded initial ramdisk or cpio buffer | 63 | Support loading of a bzip2 encoded initial ramdisk or cpio buffer |
| 64 | If unsure, say N. | 64 | If unsure, say N. |
| 65 | 65 | ||
| 66 | config RD_LZMA | 66 | config RD_LZMA |
| 67 | bool "Initial ramdisk compressed using lzma" | 67 | bool "Support initial ramdisks compressed using LZMA" if EMBEDDED |
| 68 | default n | 68 | default !EMBEDDED |
| 69 | depends on BLK_DEV_INITRD=y | 69 | depends on BLK_DEV_INITRD |
| 70 | select DECOMPRESS_LZMA | 70 | select DECOMPRESS_LZMA |
| 71 | help | 71 | help |
| 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 | ||
| 75 | if INITRAMFS_SOURCE!="" | ||
| 76 | |||
| 75 | choice | 77 | choice |
| 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. | 86 | |
| 85 | 87 | If you have any problems with bzip2 or LZMA compressed | |
| 86 | 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 | ||
| 135 | endchoice | 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 | ||
