diff options
author | Kishore Bodke <kishore.k.bodke@intel.com> | 2012-10-18 10:46:09 -0700 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@intel.com> | 2012-10-22 08:07:08 -0500 |
commit | 60e70a60888f8f29066a4c92b69b66f16f38955e (patch) | |
tree | 9fd3d8031cc4da40b79bfc3cfa8e1dc4f07ef026 /common/recipes-core/zlib-qat-module/zlib-qat-module | |
parent | cc29b9947c37f668a5d57f0afdf0c05edc7cf363 (diff) | |
download | meta-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')
-rw-r--r-- | common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch | 43 |
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 00000000..a30f8b05 --- /dev/null +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Index: 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 | - | ||