~ubuntu-branches/ubuntu/oneiric/open-iscsi/oneiric

« back to all changes in this revision

Viewing changes to kernel/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Zobel-Helas
  • Date: 2006-12-03 16:54:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20061203165421-udgd6i05ugt1byrh
Tags: upstream-2.0.730
ImportĀ upstreamĀ versionĀ 2.0.730

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# actually uses itself.
11
11
EXTRA_CFLAGS += -I$(obj) -I$(obj)/../include 
12
12
 
 
13
ifeq ($(DEBUG_SCSI), 1)
 
14
EXTRA_CFLAGS += -DDEBUG_SCSI=1
 
15
endif
 
16
 
 
17
ifeq ($(DEBUG_TCP), 1)
 
18
EXTRA_CFLAGS += -DDEBUG_TCP=1
 
19
endif
 
20
 
13
21
obj-m                           += scsi_transport_iscsi.o
14
 
obj-m                           += iscsi_tcp.o 
 
22
obj-m                           += libiscsi.o
 
23
obj-m                           += iscsi_tcp.o
15
24
 
16
25
# Everything beyond this point is used to call KBuild or handle support
17
26
# for multiple kernel versions.
23
32
# eg to compile for a kernel that you aren't currently running
24
33
KERNELRELEASE ?= $(shell uname -r)
25
34
KSRC ?= /lib/modules/$(KERNELRELEASE)/build
26
 
 
 
35
KBUILD_OUTPUT ?= 
27
36
# this is the basic Kbuild invocation, just append your make target
28
 
KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` $(KARCH) V=$(V)
 
37
KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) $(KARCH) V=$(V)
29
38
 
30
39
# fun stuff for maintaining multiple versions
31
40
KSUBLEVEL = $(shell cat $(KSRC)/Makefile | awk -F= '/^SUBLEVEL =/ {print $$2}' | \
65
74
# since Make doesn't support a switch construct
66
75
.NOTPARALLEL: kernel_check
67
76
kernel_check:
68
 
ifeq ($(KSUBLEVEL),11)
69
 
        @$(call check_iscsi_compat, 2.6.11-compat.patch)
70
 
else
71
 
ifeq ($(KSUBLEVEL),12)
72
 
        @$(call check_iscsi_compat, 2.6.12-compat.patch)
73
 
else
74
 
ifeq ($(KSUBLEVEL),13)
75
 
        @$(call check_iscsi_compat, 2.6.13-compat.patch)
76
 
else
77
 
ifeq ($(KSUBLEVEL),14)
78
 
        @$(call check_iscsi_compat, 2.6.14-and-2.6.15-compat.patch)
79
 
else
80
 
ifeq ($(KSUBLEVEL),15)
81
 
        @$(call check_iscsi_compat, 2.6.14-and-2.6.15-compat.patch)
82
 
else
83
 
        @echo "kernel check... OTHER KERNEL DETECTED"
84
 
endif
 
77
ifeq ($(KSUBLEVEL),16)
 
78
        echo "kernel check... OK"
 
79
else
 
80
ifeq ($(KSUBLEVEL),17)
 
81
        echo "kernel check... OK"
 
82
else
 
83
ifeq ($(KSUBLEVEL),18)
 
84
        echo "kernel check... OK"
 
85
else
 
86
ifeq ($(KSUBLEVEL),19)
 
87
        echo "kernel check... OK"
 
88
else
 
89
        @echo "kernel check... UNSUPPORTED KERNEL DETECTED"
 
90
        exit 1;
85
91
endif
86
92
endif
87
93
endif