mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
DEV_HANDLERS_DIR = dev_handlers
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
ifneq ($(PATCHLEVEL),)
|
||||
SCST_INC_DIR := $(SUBDIRS)/../include
|
||||
|
||||
obj-m := scst.o
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -25,7 +25,7 @@ else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
ifneq ($(PATCHLEVEL),)
|
||||
obj-m := scst_local.o
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user