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/init/Kconfig (-1 / +14 lines)
Lines 173-185 config HAVE_KERNEL_LZO Link Here
173
config HAVE_KERNEL_LZ4
173
config HAVE_KERNEL_LZ4
174
	bool
174
	bool
175
175
176
config HAVE_KERNEL_ZSTD
177
	bool
178
176
config HAVE_KERNEL_UNCOMPRESSED
179
config HAVE_KERNEL_UNCOMPRESSED
177
	bool
180
	bool
178
181
179
choice
182
choice
180
	prompt "Kernel compression mode"
183
	prompt "Kernel compression mode"
181
	default KERNEL_GZIP
184
	default KERNEL_GZIP
182
	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
185
	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_ZSTD || HAVE_KERNEL_UNCOMPRESSED
183
	help
186
	help
184
	  The linux kernel is a kind of self-extracting executable.
187
	  The linux kernel is a kind of self-extracting executable.
185
	  Several compression algorithms are available, which differ
188
	  Several compression algorithms are available, which differ
Lines 258-263 config KERNEL_LZ4 Link Here
258
	  is about 8% bigger than LZO. But the decompression speed is
261
	  is about 8% bigger than LZO. But the decompression speed is
259
	  faster than LZO.
262
	  faster than LZO.
260
263
264
config KERNEL_ZSTD
265
	bool "ZSTD"
266
	depends on HAVE_KERNEL_ZSTD
267
	help
268
	  ZSTD is a compression algorithm targeting intermediate compression
269
	  with fast decompression speed. It will compress better than GZIP and
270
	  decompress around the same speed as LZO, but slower than LZ4. You
271
	  will need at least 192 KB RAM or more for booting. The zstd command
272
	  line tools is required for compression.
273
261
config KERNEL_UNCOMPRESSED
274
config KERNEL_UNCOMPRESSED
262
	bool "None"
275
	bool "None"
263
	depends on HAVE_KERNEL_UNCOMPRESSED
276
	depends on HAVE_KERNEL_UNCOMPRESSED
(-)a/scripts/Makefile.lib (+15 lines)
Lines 394-399 quiet_cmd_xzkern = XZKERN $@ Link Here
394
quiet_cmd_xzmisc = XZMISC  $@
394
quiet_cmd_xzmisc = XZMISC  $@
395
      cmd_xzmisc = cat $(real-prereqs) | xz --check=crc32 --lzma2=dict=1MiB > $@
395
      cmd_xzmisc = cat $(real-prereqs) | xz --check=crc32 --lzma2=dict=1MiB > $@
396
396
397
# ZSTD
398
# ---------------------------------------------------------------------------
399
# Appends the uncompressed size of the data using size_append. The .zst
400
# format has the size information available at the beginning of the file too,
401
# but it's in a more complex format and it's good to avoid changing the part
402
# of the boot code that reads the uncompressed size.
403
# Note that the bytes added by size_append will make the zstd tool think that
404
# the file is corrupt. This is expected.
405
406
quiet_cmd_zstd = ZSTD    $@
407
cmd_zstd = (cat $(filter-out FORCE,$^) | \
408
	zstd -19 && \
409
        $(call size_append, $(filter-out FORCE,$^))) > $@ || \
410
	(rm -f $@ ; false)
411
397
# ASM offsets
412
# ASM offsets
398
# ---------------------------------------------------------------------------
413
# ---------------------------------------------------------------------------
399
414

Return to bug 716520