summaryrefslogtreecommitdiffstats
path: root/common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
blob: dfed3c08499f04afd31160b0e91128264f635c0e (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
31
32
33
34
35
36
37
38
39
40
41
42
43
Index: openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/Makefile
===================================================================
--- openssl-qat-module-1.0.1-r0.orig/openssl-1.0.1/engines/qat_engine/qat_mem/Makefile	2012-10-17 13:31:27.932376960 -0700
+++ openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/Makefile	2012-10-17 13:35:40.396389410 -0700
@@ -9,13 +9,9 @@
 MODULENAME 	:= qat_mem
 ### should not need to change stuff below ######################
 
-
-KDIR		:= /lib/modules/$(shell uname -r)/build
-#KDIR		:= /exports/linux-2.6.12.2/
+KDIR		:= $(KERNEL_SOURCE_ROOT)
 PWD		:= $(shell pwd)
-
-CC		:= gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
-
+CC		:= $(KERNEL_CC) -Wall -imacros $(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
 ifeq ($(KERNELRELEASE),)
 all:	$(MODULENAME)_test
 all:
@@ -23,20 +19,15 @@
 else
   obj-m	:= $(MODULENAME).o
 endif
-
 $(MODULENAME)_test: $(MODULENAME)_test.c
 	$(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c
-
-
+modules_install:
+	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
 load:
 	insmod ./$(MODULENAME).ko
-
 unload:
 	rmmod $(MODULENAME)
-
 test: all
 	./$(MODULENAME)_test.sh
-
 clean:
 	rm -f *.o *.ko Modules.symvers *.mod.c .*.cmd $(MODULENAME)_test
-