diff options
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/comp_opt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c index 323fa4f..c279f1e 100644 --- a/lib/common/comp_opt.c +++ b/lib/common/comp_opt.c @@ -34,6 +34,10 @@ static const flag_t xz_flags[] = { { "extreme", SQFS_COMP_FLAG_XZ_EXTREME }, }; +static const flag_t lzma_flags[] = { + { "extreme", SQFS_COMP_FLAG_LZMA_EXTREME }, +}; + static const flag_t lz4_flags[] = { { "hc", SQFS_COMP_FLAG_LZ4_HC }, }; @@ -131,6 +135,10 @@ int compressor_cfg_init_options(sqfs_compressor_config_t *cfg, flags = xz_flags; num_flags = sizeof(xz_flags) / sizeof(xz_flags[0]); break; + case SQFS_COMP_LZMA: + flags = lzma_flags; + num_flags = sizeof(lzma_flags) / sizeof(lzma_flags[0]); + break; case SQFS_COMP_LZ4: flags = lz4_flags; num_flags = sizeof(lz4_flags) / sizeof(lz4_flags[0]); |