xref: /linux/lib/xz/Kconfig (revision 4b62813f5e7d44a33ebd74f03da041712c702bf0)
1# SPDX-License-Identifier: GPL-2.0-only
2config XZ_DEC
3	tristate "XZ decompression support"
4	select CRC32
5	help
6	  LZMA2 compression algorithm and BCJ filters are supported using
7	  the .xz file format as the container. For integrity checking,
8	  CRC32 is supported. See Documentation/staging/xz.rst for more
9	  information.
10
11if XZ_DEC
12
13config XZ_DEC_X86
14	bool "x86 BCJ filter decoder" if EXPERT
15	default y
16	select XZ_DEC_BCJ
17
18config XZ_DEC_POWERPC
19	bool "PowerPC BCJ filter decoder" if EXPERT
20	default y
21	select XZ_DEC_BCJ
22
23config XZ_DEC_ARM
24	bool "ARM BCJ filter decoder" if EXPERT
25	default y
26	select XZ_DEC_BCJ
27
28config XZ_DEC_ARMTHUMB
29	bool "ARM-Thumb BCJ filter decoder" if EXPERT
30	default y
31	select XZ_DEC_BCJ
32
33config XZ_DEC_ARM64
34	bool "ARM64 BCJ filter decoder" if EXPERT
35	default y
36	select XZ_DEC_BCJ
37
38config XZ_DEC_SPARC
39	bool "SPARC BCJ filter decoder" if EXPERT
40	default y
41	select XZ_DEC_BCJ
42
43config XZ_DEC_MICROLZMA
44	bool "MicroLZMA decoder"
45	default n
46	help
47	  MicroLZMA is a header format variant where the first byte
48	  of a raw LZMA stream (without the end of stream marker) has
49	  been replaced with a bitwise-negation of the lc/lp/pb
50	  properties byte. MicroLZMA was created to be used in EROFS
51	  but can be used by other things too where wasting minimal
52	  amount of space for headers is important.
53
54	  Unless you know that you need this, say N.
55
56endif
57
58config XZ_DEC_BCJ
59	bool
60	default n
61
62config XZ_DEC_TEST
63	tristate "XZ decompressor tester"
64	default n
65	depends on XZ_DEC
66	help
67	  This allows passing .xz files to the in-kernel XZ decoder via
68	  a character special file. It calculates CRC32 of the decompressed
69	  data and writes diagnostics to the system log.
70
71	  Unless you are developing the XZ decoder, you don't need this
72	  and should say N.
73