Patch from Ruben Laban <r.laban@ism.nl>:

While writing DKMS support for the SCST and iSCST-SCST kernel modules, I ran 
into a (common) problem with regard to out-of-tree build detection. A common 
method to detect out-of-tree building is by using the KERNELRELEASE variable. 
The usage of this variable poses a problem when using DKMS. DKMS itself uses 
the KERNELRELEASE variable to specify the kernel for which the driver to 
build. A suggested alternative would to use the PATCHLEVEL variable as part 
of the detection mechanism instead. I attached a patch reflecting this 
suggested change.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-03-25 19:42:03 +00:00
parent 643c7ab2d1
commit 00b094c7fa
6 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ endif
LSI_INC_DIR := $(KDIR)/drivers/message/fusion
EXTRA_CFLAGS += -I$(LSI_INC_DIR)
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
obj-m += mpt_scst.o
else

View File

@@ -1,4 +1,4 @@
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
qla2xxx-y := qla_os.o qla_init.o qla_mbx.o qla_iocb.o qla_isr.o qla_gs.o \
qla_dbg.o qla_sup.o qla_attr.o qla_mid.o qla_dfs.o

View File

@@ -54,7 +54,7 @@ endif
QLA2XXX_INC_DIR := $(KDIR)/drivers/scsi/qla2xxx
EXTRA_CFLAGS += -I$(QLA2XXX_INC_DIR)
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
obj-m := qla2x00tgt.o
qla2x00tgt-objs := qla2x00t.o

View File

@@ -29,7 +29,7 @@
DEV_HANDLERS_DIR = dev_handlers
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
SCST_INC_DIR := $(SUBDIRS)/../include
obj-m := scst.o

View File

@@ -27,7 +27,7 @@
# - install and uninstall must be made as root
#
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
SCST_INC_DIR := $(SUBDIRS)/../include
obj-m := scst_cdrom.o scst_changer.o scst_disk.o scst_modisk.o scst_tape.o \

View File

@@ -25,7 +25,7 @@ else
KDIR := /lib/modules/$(KVER)/build
endif
ifneq ($(KERNELRELEASE),)
ifneq ($(PATCHLEVEL),)
obj-m := scst_local.o
else