aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-01-22 23:33:39 +0800
committerJia Tan <jiat0218@gmail.com>2024-01-23 23:05:41 +0800
commit440a2eccb082dc13400c09e22308a58fef85146c (patch)
tree9fad0290823c312e34e85911cf4f8677325480db /src/xz
parentDocs: Update .xz file format specification to 1.2.0. (diff)
downloadxz-440a2eccb082dc13400c09e22308a58fef85146c.tar.xz
liblzma: Add RISC-V BCJ filter.
The new Filter ID is 0x0B. Thanks to Chien Wong <m@xv97.com> for the initial version of the Filter, the xz CLI updates, and the Autotools build system modifications. Thanks to Igor Pavlov for his many contributions to the design of the filter.
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/args.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xz/args.c b/src/xz/args.c
index 31c071ce..e8b07af3 100644
--- a/src/xz/args.c
+++ b/src/xz/args.c
@@ -190,6 +190,7 @@ parse_real(args_info *args, int argc, char **argv)
OPT_ARMTHUMB,
OPT_ARM64,
OPT_SPARC,
+ OPT_RISCV,
OPT_DELTA,
OPT_LZMA1,
OPT_LZMA2,
@@ -274,6 +275,7 @@ parse_real(args_info *args, int argc, char **argv)
{ "armthumb", optional_argument, NULL, OPT_ARMTHUMB },
{ "arm64", optional_argument, NULL, OPT_ARM64 },
{ "sparc", optional_argument, NULL, OPT_SPARC },
+ { "riscv", optional_argument, NULL, OPT_RISCV },
{ "delta", optional_argument, NULL, OPT_DELTA },
// Other options
@@ -491,6 +493,11 @@ parse_real(args_info *args, int argc, char **argv)
options_bcj(optarg));
break;
+ case OPT_RISCV:
+ coder_add_filter(LZMA_FILTER_RISCV,
+ options_bcj(optarg));
+ break;
+
case OPT_DELTA:
coder_add_filter(LZMA_FILTER_DELTA,
options_delta(optarg));