summaryrefslogtreecommitdiff
path: root/package/compcache/patches/002-compact_lzo-codec.patch
blob: 4b560f317fa07f0f43ae973e43f5680c7f660398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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");