mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
93d09773d1
A later commit updates lib/decompress_unxz.c to enable this filter for kernel decompression. lib/decompress_unxz.c is already used if CONFIG_EFI_ZBOOT=y && CONFIG_KERNEL_XZ=y. This filter can be used by Squashfs without modifications to the Squashfs kernel code (only needs support in userspace Squashfs-tools). Link: https://lkml.kernel.org/r/20240721133633.47721-13-lasse.collin@tukaani.org Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Reviewed-by: Sam James <sam@gentoo.org> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Emil Renner Berthing <emil.renner.berthing@canonical.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Jubin Zhong <zhongjubin@huawei.com> Cc: Jules Maselbas <jmaselbas@zdiv.net> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Rui Li <me@lirui.org> Cc: Simon Glass <sjg@chromium.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config XZ_DEC
|
|
tristate "XZ decompression support"
|
|
select CRC32
|
|
help
|
|
LZMA2 compression algorithm and BCJ filters are supported using
|
|
the .xz file format as the container. For integrity checking,
|
|
CRC32 is supported. See Documentation/staging/xz.rst for more
|
|
information.
|
|
|
|
if XZ_DEC
|
|
|
|
config XZ_DEC_X86
|
|
bool "x86 BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_POWERPC
|
|
bool "PowerPC BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_ARM
|
|
bool "ARM BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_ARMTHUMB
|
|
bool "ARM-Thumb BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_ARM64
|
|
bool "ARM64 BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_SPARC
|
|
bool "SPARC BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_RISCV
|
|
bool "RISC-V BCJ filter decoder" if EXPERT
|
|
default y
|
|
select XZ_DEC_BCJ
|
|
|
|
config XZ_DEC_MICROLZMA
|
|
bool "MicroLZMA decoder"
|
|
default n
|
|
help
|
|
MicroLZMA is a header format variant where the first byte
|
|
of a raw LZMA stream (without the end of stream marker) has
|
|
been replaced with a bitwise-negation of the lc/lp/pb
|
|
properties byte. MicroLZMA was created to be used in EROFS
|
|
but can be used by other things too where wasting minimal
|
|
amount of space for headers is important.
|
|
|
|
Unless you know that you need this, say N.
|
|
|
|
endif
|
|
|
|
config XZ_DEC_BCJ
|
|
bool
|
|
default n
|
|
|
|
config XZ_DEC_TEST
|
|
tristate "XZ decompressor tester"
|
|
default n
|
|
depends on XZ_DEC
|
|
help
|
|
This allows passing .xz files to the in-kernel XZ decoder via
|
|
a character special file. It calculates CRC32 of the decompressed
|
|
data and writes diagnostics to the system log.
|
|
|
|
Unless you are developing the XZ decoder, you don't need this
|
|
and should say N.
|