| .. | .. |
|---|
| 18 | 18 | When multiple directories and files are specified then the |
|---|
| 19 | 19 | initramfs image will be the aggregate of all of them. |
|---|
| 20 | 20 | |
|---|
| 21 | | - See <file:Documentation/early-userspace/README> for more details. |
|---|
| 21 | + See <file:Documentation/driver-api/early-userspace/early_userspace_support.rst> for more details. |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | If you are not sure, leave it blank. |
|---|
| 24 | 24 | |
|---|
| .. | .. |
|---|
| 54 | 54 | |
|---|
| 55 | 55 | config RD_GZIP |
|---|
| 56 | 56 | bool "Support initial ramdisk/ramfs compressed using gzip" |
|---|
| 57 | | - depends on BLK_DEV_INITRD |
|---|
| 58 | 57 | default y |
|---|
| 59 | 58 | select DECOMPRESS_GZIP |
|---|
| 60 | 59 | help |
|---|
| .. | .. |
|---|
| 64 | 63 | config RD_BZIP2 |
|---|
| 65 | 64 | bool "Support initial ramdisk/ramfs compressed using bzip2" |
|---|
| 66 | 65 | default y |
|---|
| 67 | | - depends on BLK_DEV_INITRD |
|---|
| 68 | 66 | select DECOMPRESS_BZIP2 |
|---|
| 69 | 67 | help |
|---|
| 70 | 68 | Support loading of a bzip2 encoded initial ramdisk or cpio buffer |
|---|
| .. | .. |
|---|
| 73 | 71 | config RD_LZMA |
|---|
| 74 | 72 | bool "Support initial ramdisk/ramfs compressed using LZMA" |
|---|
| 75 | 73 | default y |
|---|
| 76 | | - depends on BLK_DEV_INITRD |
|---|
| 77 | 74 | select DECOMPRESS_LZMA |
|---|
| 78 | 75 | help |
|---|
| 79 | 76 | Support loading of a LZMA encoded initial ramdisk or cpio buffer |
|---|
| .. | .. |
|---|
| 81 | 78 | |
|---|
| 82 | 79 | config RD_XZ |
|---|
| 83 | 80 | bool "Support initial ramdisk/ramfs compressed using XZ" |
|---|
| 84 | | - depends on BLK_DEV_INITRD |
|---|
| 85 | 81 | default y |
|---|
| 86 | 82 | select DECOMPRESS_XZ |
|---|
| 87 | 83 | help |
|---|
| .. | .. |
|---|
| 91 | 87 | config RD_LZO |
|---|
| 92 | 88 | bool "Support initial ramdisk/ramfs compressed using LZO" |
|---|
| 93 | 89 | default y |
|---|
| 94 | | - depends on BLK_DEV_INITRD |
|---|
| 95 | 90 | select DECOMPRESS_LZO |
|---|
| 96 | 91 | help |
|---|
| 97 | 92 | Support loading of a LZO encoded initial ramdisk or cpio buffer |
|---|
| .. | .. |
|---|
| 100 | 95 | config RD_LZ4 |
|---|
| 101 | 96 | bool "Support initial ramdisk/ramfs compressed using LZ4" |
|---|
| 102 | 97 | default y |
|---|
| 103 | | - depends on BLK_DEV_INITRD |
|---|
| 104 | 98 | select DECOMPRESS_LZ4 |
|---|
| 105 | 99 | help |
|---|
| 106 | 100 | Support loading of a LZ4 encoded initial ramdisk or cpio buffer |
|---|
| 107 | 101 | If unsure, say N. |
|---|
| 108 | 102 | |
|---|
| 103 | +config RD_ZSTD |
|---|
| 104 | + bool "Support initial ramdisk/ramfs compressed using ZSTD" |
|---|
| 105 | + default y |
|---|
| 106 | + depends on BLK_DEV_INITRD |
|---|
| 107 | + select DECOMPRESS_ZSTD |
|---|
| 108 | + help |
|---|
| 109 | + Support loading of a ZSTD encoded initial ramdisk or cpio buffer. |
|---|
| 110 | + If unsure, say N. |
|---|
| 111 | + |
|---|
| 109 | 112 | choice |
|---|
| 110 | 113 | prompt "Built-in initramfs compression mode" |
|---|
| 111 | | - depends on INITRAMFS_SOURCE!="" |
|---|
| 112 | | - optional |
|---|
| 114 | + depends on INITRAMFS_SOURCE != "" |
|---|
| 113 | 115 | help |
|---|
| 114 | 116 | This option allows you to decide by which algorithm the builtin |
|---|
| 115 | 117 | initramfs will be compressed. Several compression algorithms are |
|---|
| .. | .. |
|---|
| 203 | 205 | If you choose this, keep in mind that most distros don't provide lz4 |
|---|
| 204 | 206 | by default which could cause a build failure. |
|---|
| 205 | 207 | |
|---|
| 208 | +config INITRAMFS_COMPRESSION_ZSTD |
|---|
| 209 | + bool "ZSTD" |
|---|
| 210 | + depends on RD_ZSTD |
|---|
| 211 | + help |
|---|
| 212 | + ZSTD is a compression algorithm targeting intermediate compression |
|---|
| 213 | + with fast decompression speed. It will compress better than GZIP and |
|---|
| 214 | + decompress around the same speed as LZO, but slower than LZ4. |
|---|
| 215 | + |
|---|
| 216 | + If you choose this, keep in mind that you may need to install the zstd |
|---|
| 217 | + tool to be able to compress the initram. |
|---|
| 218 | + |
|---|
| 206 | 219 | config INITRAMFS_COMPRESSION_NONE |
|---|
| 207 | 220 | bool "None" |
|---|
| 208 | 221 | help |
|---|
| .. | .. |
|---|
| 215 | 228 | filesystem image will be present in memory simultaneously |
|---|
| 216 | 229 | |
|---|
| 217 | 230 | endchoice |
|---|
| 218 | | - |
|---|
| 219 | | -config INITRAMFS_COMPRESSION |
|---|
| 220 | | - depends on INITRAMFS_SOURCE!="" |
|---|
| 221 | | - string |
|---|
| 222 | | - default "" if INITRAMFS_COMPRESSION_NONE |
|---|
| 223 | | - default ".gz" if INITRAMFS_COMPRESSION_GZIP |
|---|
| 224 | | - default ".bz2" if INITRAMFS_COMPRESSION_BZIP2 |
|---|
| 225 | | - default ".lzma" if INITRAMFS_COMPRESSION_LZMA |
|---|
| 226 | | - default ".xz" if INITRAMFS_COMPRESSION_XZ |
|---|
| 227 | | - default ".lzo" if INITRAMFS_COMPRESSION_LZO |
|---|
| 228 | | - default ".lz4" if INITRAMFS_COMPRESSION_LZ4 |
|---|
| 229 | | - default ".gz" if RD_GZIP |
|---|
| 230 | | - default ".lz4" if RD_LZ4 |
|---|
| 231 | | - default ".lzo" if RD_LZO |
|---|
| 232 | | - default ".xz" if RD_XZ |
|---|
| 233 | | - default ".lzma" if RD_LZMA |
|---|
| 234 | | - default ".bz2" if RD_BZIP2 |
|---|
| 235 | | - default "" |
|---|