0001 # SPDX-License-Identifier: GPL-2.0-only
0002 config XZ_DEC
0003 tristate "XZ decompression support"
0004 select CRC32
0005 help
0006 LZMA2 compression algorithm and BCJ filters are supported using
0007 the .xz file format as the container. For integrity checking,
0008 CRC32 is supported. See Documentation/staging/xz.rst for more information.
0009
0010 if XZ_DEC
0011
0012 config XZ_DEC_X86
0013 bool "x86 BCJ filter decoder" if EXPERT
0014 default y
0015 select XZ_DEC_BCJ
0016
0017 config XZ_DEC_POWERPC
0018 bool "PowerPC BCJ filter decoder" if EXPERT
0019 default y
0020 select XZ_DEC_BCJ
0021
0022 config XZ_DEC_IA64
0023 bool "IA-64 BCJ filter decoder" if EXPERT
0024 default y
0025 select XZ_DEC_BCJ
0026
0027 config XZ_DEC_ARM
0028 bool "ARM BCJ filter decoder" if EXPERT
0029 default y
0030 select XZ_DEC_BCJ
0031
0032 config XZ_DEC_ARMTHUMB
0033 bool "ARM-Thumb BCJ filter decoder" if EXPERT
0034 default y
0035 select XZ_DEC_BCJ
0036
0037 config XZ_DEC_SPARC
0038 bool "SPARC BCJ filter decoder" if EXPERT
0039 default y
0040 select XZ_DEC_BCJ
0041
0042 config XZ_DEC_MICROLZMA
0043 bool "MicroLZMA decoder"
0044 default n
0045 help
0046 MicroLZMA is a header format variant where the first byte
0047 of a raw LZMA stream (without the end of stream marker) has
0048 been replaced with a bitwise-negation of the lc/lp/pb
0049 properties byte. MicroLZMA was created to be used in EROFS
0050 but can be used by other things too where wasting minimal
0051 amount of space for headers is important.
0052
0053 Unless you know that you need this, say N.
0054
0055 endif
0056
0057 config XZ_DEC_BCJ
0058 bool
0059 default n
0060
0061 config XZ_DEC_TEST
0062 tristate "XZ decompressor tester"
0063 default n
0064 depends on XZ_DEC
0065 help
0066 This allows passing .xz files to the in-kernel XZ decoder via
0067 a character special file. It calculates CRC32 of the decompressed
0068 data and writes diagnostics to the system log.
0069
0070 Unless you are developing the XZ decoder, you don't need this
0071 and should say N.