summaryrefslogtreecommitdiff
path: root/package/compcache/patches/002-compact_lzo-codec.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/compcache/patches/002-compact_lzo-codec.patch')
-rw-r--r--package/compcache/patches/002-compact_lzo-codec.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/compcache/patches/002-compact_lzo-codec.patch b/package/compcache/patches/002-compact_lzo-codec.patch
new file mode 100644
index 0000000..4b560f3
--- /dev/null
+++ b/package/compcache/patches/002-compact_lzo-codec.patch
@@ -0,0 +1,30 @@
+--- compcache-0.5/Makefile.bak 2008-12-10 07:25:44.000000000 +0100
++++ compcache-0.5/Makefile 2009-01-21 08:25:38.000000000 +0100
+@@ -4,15 +4,13 @@
+ -DCONFIG_XV_STATS \
+ -g -Wall
+
+-obj-m += sub-projects/compression/lzo-kmod/lzo1x_decompress.o \
+- sub-projects/compression/lzo-kmod/lzo1x_compress.o \
++obj-m += sub-projects/compression/lzo-kmod/lzo1x.o \
+ sub-projects/allocators/xvmalloc-kmod/xvmalloc.o \
+ compcache.o
+
+ all:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+- @ln -sf sub-projects/compression/lzo-kmod/lzo1x_decompress.ko
+- @ln -sf sub-projects/compression/lzo-kmod/lzo1x_compress.ko
++ @ln -sf sub-projects/compression/lzo-kmod/lzo1x.ko
+ @ln -sf sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko
+
+ clean:
+--- compcache-0.5/sub-projects/compression/lzo-kmod/lzo1x.c~ 1970-01-01 01:00:00.000000000 +0100
++++ compcache-0.5/sub-projects/compression/lzo-kmod/lzo1x.c 2008-05-06 09:38:12.000000000 +0200
+@@ -0,0 +1,7 @@
++#include <linux/module.h>
++
++#include "lzo1x_compress.c"
++#include "lzo1x_decompress.c"
++
++MODULE_LICENSE("GPL");
++MODULE_DESCRIPTION("LZO1X Lib");