From 82f09a8b4e214e51c394ed9ff8882d1e736e205b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Jul 2007 16:03:31 +0100 Subject: Add lzo support to mtd-utils Add LZO support to mtd-utils to generate LZO compressed jffs2 images Unlike the kernel version, the standard lzo userspace library is used along with lzo1x_999_compress rather than the lzo1x_1_compress version since better compression ratios can be obtained (at no significant cost to decompression time). Signed-off-by: Richard Purdie Signed-off-by: Josh Boyer --- compr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compr.c') diff --git a/compr.c b/compr.c index 239abf7..5b5d145 100644 --- a/compr.c +++ b/compr.c @@ -473,6 +473,9 @@ int jffs2_compressors_init(void) #endif #ifdef CONFIG_JFFS2_RTIME jffs2_rtime_init(); +#endif +#ifdef CONFIG_JFFS2_LZO + jffs2_lzo_init(); #endif return 0; } @@ -484,6 +487,9 @@ int jffs2_compressors_exit(void) #endif #ifdef CONFIG_JFFS2_ZLIB jffs2_zlib_exit(); +#endif +#ifdef CONFIG_JFFS2_LZO + jffs2_lzo_exit(); #endif return 0; } -- cgit v1.2.3