aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/iscsi-target/iscsi-target/Makefile.patch
blob: 3340b07240439d6736fb974f93381726d4829c46 (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
Index: iscsitarget-1.4.20.2/Makefile
===================================================================
--- iscsitarget-1.4.20.2.orig/Makefile
+++ iscsitarget-1.4.20.2/Makefile
@@ -26,11 +26,9 @@ else
   endif
 endif
 
-KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | \
+KVER2 := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | \
 	grep UTS_RELEASE | awk '{ print $$3 }' | sed 's/\"//g')
 
-KMOD := /lib/modules/$(KVER)/extra
-
 KMAJ := $(shell echo $(KVER) | \
 	sed -e 's/^\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*.*/\1/')
 KMIN := $(shell echo $(KVER) | \
@@ -185,6 +183,8 @@ integ_check:
 $(PATCHES): .patched.$(KVER)
 
 .patched.$(KVER):
+	echo "KVER: " ${KVER}
+	echo "KREV: " ${KREV}
 	@set -e; \
 	if [ ! -e .patched.* ]; then \
 		for p in $(PATCHES); do \