diff --git a/mpt/Makefile b/mpt/Makefile index e9a36e576..f2cbd0b97 100644 --- a/mpt/Makefile +++ b/mpt/Makefile @@ -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 diff --git a/qla2x00t/Makefile b/qla2x00t/Makefile index a8b968f0a..9d13c6a61 100644 --- a/qla2x00t/Makefile +++ b/qla2x00t/Makefile @@ -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 diff --git a/qla2x00t/qla2x00-target/Makefile b/qla2x00t/qla2x00-target/Makefile index 5e2995469..06c6bde8b 100644 --- a/qla2x00t/qla2x00-target/Makefile +++ b/qla2x00t/qla2x00-target/Makefile @@ -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 diff --git a/scst/src/Makefile b/scst/src/Makefile index 87d843c9c..5ed35824f 100644 --- a/scst/src/Makefile +++ b/scst/src/Makefile @@ -29,7 +29,7 @@ DEV_HANDLERS_DIR = dev_handlers -ifneq ($(KERNELRELEASE),) +ifneq ($(PATCHLEVEL),) SCST_INC_DIR := $(SUBDIRS)/../include obj-m := scst.o diff --git a/scst/src/dev_handlers/Makefile b/scst/src/dev_handlers/Makefile index af9f6db1c..2447a5879 100644 --- a/scst/src/dev_handlers/Makefile +++ b/scst/src/dev_handlers/Makefile @@ -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 \ diff --git a/scst_local/Makefile b/scst_local/Makefile index 6966d16ec..727a86740 100644 --- a/scst_local/Makefile +++ b/scst_local/Makefile @@ -25,7 +25,7 @@ else KDIR := /lib/modules/$(KVER)/build endif -ifneq ($(KERNELRELEASE),) +ifneq ($(PATCHLEVEL),) obj-m := scst_local.o else