Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 716520 | Differences between
and this patch

Collapse All | Expand All

(-)a/usr/Kconfig (+20 lines)
Lines 100-105 config RD_LZ4 Link Here
100
	  Support loading of a LZ4 encoded initial ramdisk or cpio buffer
100
	  Support loading of a LZ4 encoded initial ramdisk or cpio buffer
101
	  If unsure, say N.
101
	  If unsure, say N.
102
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
103
choice
112
choice
104
	prompt "Built-in initramfs compression mode"
113
	prompt "Built-in initramfs compression mode"
105
	depends on INITRAMFS_SOURCE != ""
114
	depends on INITRAMFS_SOURCE != ""
Lines 207-210 config INITRAMFS_COMPRESSION_LZ4 Link Here
207
	  If you choose this, keep in mind that most distros don't provide lz4
216
	  If you choose this, keep in mind that most distros don't provide lz4
208
	  by default which could cause a build failure.
217
	  by default which could cause a build failure.
209
218
219
config INITRAMFS_COMPRESSION_ZSTD
220
	bool "ZSTD"
221
	depends on RD_ZSTD
222
	help
223
	  ZSTD is a compression algorithm targeting intermediate compression
224
	  with fast decompression speed. It will compress better than GZIP and
225
	  decompress around the same speed as LZO, but slower than LZ4.
226
227
	  If you choose this, keep in mind that you may need to install the zstd
228
	  tool to be able to compress the initram.
229
210
endchoice
230
endchoice
(-)a/usr/Makefile (+1 lines)
Lines 15-20 compress-$(CONFIG_INITRAMFS_COMPRESSION_LZMA) := lzma Link Here
15
compress-$(CONFIG_INITRAMFS_COMPRESSION_XZ)	:= xzmisc
15
compress-$(CONFIG_INITRAMFS_COMPRESSION_XZ)	:= xzmisc
16
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO)	:= lzo
16
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO)	:= lzo
17
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4)	:= lz4
17
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4)	:= lz4
18
compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD)	:= zstd
18
19
19
obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o
20
obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o
20
21

Return to bug 716520