X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e60c0328f00278865338525f5ad9abeb0785ca5f..93b9f41b61873dd2e47ddb1446863ac8ca906c94:/target/linux/generic/patches-2.6.36/006-squashfs_add_lzma.patch?ds=sidebyside diff --git a/target/linux/generic/patches-2.6.36/006-squashfs_add_lzma.patch b/target/linux/generic/patches-2.6.36/006-squashfs_add_lzma.patch index d1b62e549..ff715788e 100644 --- a/target/linux/generic/patches-2.6.36/006-squashfs_add_lzma.patch +++ b/target/linux/generic/patches-2.6.36/006-squashfs_add_lzma.patch @@ -32,26 +32,27 @@ Signed-off-by: Phillip Lougher bool "Additional option for memory-constrained systems" --- a/fs/squashfs/Makefile +++ b/fs/squashfs/Makefile -@@ -5,5 +5,4 @@ +@@ -5,5 +5,5 @@ obj-$(CONFIG_SQUASHFS) += squashfs.o squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o squashfs-y += namei.o super.o symlink.o zlib_wrapper.o decompressor.o --squashfs-$(CONFIG_SQUASHFS_XATTR) += xattr.o xattr_id.o --squashfs-$(CONFIG_SQUASHFS_LZO) += lzo_wrapper.o +-squashfs-$(CONFIG_SQUASHFS_XATTRS) += xattr.o xattr_id.o +squashfs-$(CONFIG_SQUASHFS_LZMA) += lzma_wrapper.o + --- a/fs/squashfs/decompressor.c +++ b/fs/squashfs/decompressor.c -@@ -53,8 +53,8 @@ static const struct squashfs_decompresso +@@ -50,7 +50,11 @@ static const struct squashfs_decompresso + static const struct squashfs_decompressor *decompressor[] = { &squashfs_zlib_comp_ops, - &squashfs_lzma_unsupported_comp_ops, --#ifdef CONFIG_SQUASHFS_LZO -- &squashfs_lzo_comp_ops, +#ifdef CONFIG_SQUASHFS_LZMA + &squashfs_lzma_comp_ops, - #else ++#else + &squashfs_lzma_unsupported_comp_ops, ++#endif &squashfs_lzo_unsupported_comp_ops, - #endif + &squashfs_unknown_comp_ops + }; --- /dev/null +++ b/fs/squashfs/lzma_wrapper.c @@ -0,0 +1,152 @@ @@ -209,11 +210,10 @@ Signed-off-by: Phillip Lougher + --- a/fs/squashfs/squashfs.h +++ b/fs/squashfs/squashfs.h -@@ -105,5 +105,5 @@ extern const struct xattr_handler *squas +@@ -104,3 +104,6 @@ extern const struct xattr_handler *squas + /* zlib_wrapper.c */ extern const struct squashfs_decompressor squashfs_zlib_comp_ops; - --/* lzo_wrapper.c */ --extern const struct squashfs_decompressor squashfs_lzo_comp_ops; -+/* lzma_wrapper.c */ ++ ++/* lzma wrapper.c */ +extern const struct squashfs_decompressor squashfs_lzma_comp_ops;