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.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compr.h') diff --git a/compr.h b/compr.h index 3a0d3a1..597e3c8 100644 --- a/compr.h +++ b/compr.h @@ -21,11 +21,13 @@ #define CONFIG_JFFS2_ZLIB #define CONFIG_JFFS2_RTIME +#define CONFIG_JFFS2_LZO #define JFFS2_RUBINMIPS_PRIORITY 10 #define JFFS2_DYNRUBIN_PRIORITY 20 #define JFFS2_RTIME_PRIORITY 50 #define JFFS2_ZLIB_PRIORITY 60 +#define JFFS2_LZO_PRIORITY 80 #define JFFS2_COMPR_MODE_NONE 0 #define JFFS2_COMPR_MODE_PRIORITY 1 @@ -111,5 +113,9 @@ void jffs2_zlib_exit(void); int jffs2_rtime_init(void); void jffs2_rtime_exit(void); #endif +#ifdef CONFIG_JFFS2_LZO +int jffs2_lzo_init(void); +void jffs2_lzo_exit(void); +#endif #endif /* __JFFS2_COMPR_H__ */ -- cgit v1.2.3