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