^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config XZ_DEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) tristate "XZ decompression support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) select CRC32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) LZMA2 compression algorithm and BCJ filters are supported using
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) the .xz file format as the container. For integrity checking,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) CRC32 is supported. See Documentation/staging/xz.rst for more information.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) if XZ_DEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) config XZ_DEC_X86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) bool "x86 BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) config XZ_DEC_POWERPC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) bool "PowerPC BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) config XZ_DEC_IA64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) bool "IA-64 BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) config XZ_DEC_ARM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) bool "ARM BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) config XZ_DEC_ARMTHUMB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) bool "ARM-Thumb BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) config XZ_DEC_SPARC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) bool "SPARC BCJ filter decoder" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) select XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) config XZ_DEC_BCJ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) config XZ_DEC_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) tristate "XZ decompressor tester"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) depends on XZ_DEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) This allows passing .xz files to the in-kernel XZ decoder via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) a character special file. It calculates CRC32 of the decompressed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) data and writes diagnostics to the system log.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) Unless you are developing the XZ decoder, you don't need this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) and should say N.