summaryrefslogtreecommitdiffstats
path: root/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
diff options
context:
space:
mode:
authorKishore Bodke <kishore.k.bodke@intel.com>2012-10-18 17:46:09 (GMT)
committerTom Zanussi <tom.zanussi@intel.com>2012-10-22 13:07:08 (GMT)
commit60e70a60888f8f29066a4c92b69b66f16f38955e (patch)
tree9fd3d8031cc4da40b79bfc3cfa8e1dc4f07ef026 /common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
parentcc29b9947c37f668a5d57f0afdf0c05edc7cf363 (diff)
downloadmeta-intel-60e70a60888f8f29066a4c92b69b66f16f38955e.tar.gz
meta-intel/common: Add a new recipe for Zlib qat_mem Module.
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib. Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch')
-rw-r--r--common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644
index 0000000..a30f8b0
--- /dev/null
+++ b/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
@@ -0,0 +1,43 @@
1Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
2===================================================================
3--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:53:10.258938722 -0700
4+++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700
5@@ -59,13 +59,10 @@
6 #
7 #
8 #########################################################################
9-
10 MODULENAME := qat_mem
11-KDIR := /lib/modules/$(shell uname -r)/build
12+KDIR := $(KERNEL_SOURCE_ROOT)
13 PWD := $(shell pwd)
14-
15-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
16-
17+CC := $(KERNEL_CC) -Wall -imacros $(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
18 ifeq ($(KERNELRELEASE),)
19 all: $(MODULENAME)_test
20 all:
21@@ -73,20 +70,15 @@
22 else
23 obj-m := $(MODULENAME).o
24 endif
25-
26+modules_install:
27+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
28 $(MODULENAME)_test: $(MODULENAME)_test.c
29 $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c
30-
31-
32 load:
33 insmod ./$(MODULENAME).ko
34-
35 unload:
36 rmmod $(MODULENAME)
37-
38 test: all
39 ./$(MODULENAME)_test
40-
41 clean:
42 rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd $(MODULENAME)_test
43-