blob: 5cb50245a878cde27e9f972cb6c89110a0c109ef [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Lasse Collin24fa0402011-01-12 17:01:22 -08002config 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,
Mauro Carvalho Chehab8e2a46a2020-06-15 08:50:25 +02008 CRC32 is supported. See Documentation/staging/xz.rst for more information.
Lasse Collin24fa0402011-01-12 17:01:22 -08009
Florian Fainelli9d749622013-02-21 16:44:10 -080010if XZ_DEC
11
Lasse Collin24fa0402011-01-12 17:01:22 -080012config XZ_DEC_X86
Lasse Collinbf4d0642014-06-04 16:11:50 -070013 bool "x86 BCJ filter decoder" if EXPERT
14 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080015 select XZ_DEC_BCJ
16
17config XZ_DEC_POWERPC
Lasse Collinbf4d0642014-06-04 16:11:50 -070018 bool "PowerPC BCJ filter decoder" if EXPERT
19 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080020 select XZ_DEC_BCJ
21
22config XZ_DEC_IA64
Lasse Collinbf4d0642014-06-04 16:11:50 -070023 bool "IA-64 BCJ filter decoder" if EXPERT
24 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080025 select XZ_DEC_BCJ
26
27config XZ_DEC_ARM
Lasse Collinbf4d0642014-06-04 16:11:50 -070028 bool "ARM BCJ filter decoder" if EXPERT
29 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080030 select XZ_DEC_BCJ
31
32config XZ_DEC_ARMTHUMB
Lasse Collinbf4d0642014-06-04 16:11:50 -070033 bool "ARM-Thumb BCJ filter decoder" if EXPERT
34 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080035 select XZ_DEC_BCJ
36
37config XZ_DEC_SPARC
Lasse Collinbf4d0642014-06-04 16:11:50 -070038 bool "SPARC BCJ filter decoder" if EXPERT
39 default y
Lasse Collin24fa0402011-01-12 17:01:22 -080040 select XZ_DEC_BCJ
41
Florian Fainelli9d749622013-02-21 16:44:10 -080042endif
43
Lasse Collin24fa0402011-01-12 17:01:22 -080044config XZ_DEC_BCJ
45 bool
46 default n
47
48config XZ_DEC_TEST
49 tristate "XZ decompressor tester"
50 default n
51 depends on XZ_DEC
52 help
53 This allows passing .xz files to the in-kernel XZ decoder via
54 a character special file. It calculates CRC32 of the decompressed
55 data and writes diagnostics to the system log.
56
57 Unless you are developing the XZ decoder, you don't need this
58 and should say N.