From d6fd03107f84b07932f2654e26ce3f365b10b5cc Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 5 Jul 2020 02:13:40 +0000 Subject: [PATCH] Split Makefiles: move kernel build rules into Kbuild files This patch makes the Makefiles easier to read. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9039 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/Kbuild | 10 +++++ fcst/Makefile | 8 ---- qla2x00t-32gbit/Kbuild | 14 +++++++ qla2x00t-32gbit/Makefile | 18 --------- qla2x00t-32gbit/qla2x00-target/Kbuild | 13 ++++++ qla2x00t-32gbit/qla2x00-target/Makefile | 28 +------------ qla2x00t/Kbuild | 11 +++++ qla2x00t/Makefile | 15 ------- qla2x00t/qla2x00-target/Kbuild | 13 ++++++ qla2x00t/qla2x00-target/Makefile | 28 +------------ scripts/generate-kernel-patch | 2 +- scst/src/Kbuild | 38 ++++++++++++++++++ scst/src/Makefile | 53 ++----------------------- scst/src/dev_handlers/Kbuild | 8 ++++ scst/src/dev_handlers/Makefile | 16 -------- scst_local/Kbuild | 6 +++ scst_local/Makefile | 13 ------ 17 files changed, 119 insertions(+), 175 deletions(-) create mode 100644 fcst/Kbuild create mode 100644 qla2x00t-32gbit/Kbuild create mode 100644 qla2x00t-32gbit/qla2x00-target/Kbuild create mode 100644 qla2x00t/Kbuild create mode 100644 qla2x00t/qla2x00-target/Kbuild create mode 100644 scst/src/Kbuild create mode 100644 scst/src/dev_handlers/Kbuild create mode 100644 scst_local/Kbuild diff --git a/fcst/Kbuild b/fcst/Kbuild new file mode 100644 index 000000000..1954f60a5 --- /dev/null +++ b/fcst/Kbuild @@ -0,0 +1,10 @@ +KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers +ccflags-y += -I$(src)/../scst/include + +obj-$(CONFIG_FCST) += fcst.o + +fcst-objs := \ + ft_cmd.o \ + ft_io.o \ + ft_scst.o \ + ft_sess.o diff --git a/fcst/Makefile b/fcst/Makefile index a6df05d83..ac6e640d4 100644 --- a/fcst/Makefile +++ b/fcst/Makefile @@ -32,11 +32,6 @@ export CONFIG_FCST := m MODULE_NAME = fcst -ifneq ($(KERNELRELEASE),) -include $(src)/Makefile_in-tree -else -######### BEGIN OUT-OF-TREE RULES ######### - ifndef PREFIX PREFIX=/usr/local endif @@ -79,9 +74,6 @@ uninstall: rm -f $(INSTALL_DIR)/$(MODULE_NAME).ko -/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER) -########## END OUT-OF-TREE RULES ########## -endif - clean: $(MAKE) -C $(KDIR) M=$(shell pwd) $@ diff --git a/qla2x00t-32gbit/Kbuild b/qla2x00t-32gbit/Kbuild new file mode 100644 index 000000000..ec35194de --- /dev/null +++ b/qla2x00t-32gbit/Kbuild @@ -0,0 +1,14 @@ +ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \ + -Wno-missing-field-initializers \ + -I$(src)/../scst/include -I$(src)/include \ + -DDEFAULT_SYMBOL_NAMESPACE=QLA32GB + +ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),) +ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET) +endif + +obj-m := qla2xxx_scst.o +qla2xxx_scst-objs := \ + 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 qla_bsg.o \ + qla_nx.o qla_mr.o qla_nx2.o qla_target.o qla_tmpl.o qla_nvme.o diff --git a/qla2x00t-32gbit/Makefile b/qla2x00t-32gbit/Makefile index 19e92048c..2cc88c31f 100644 --- a/qla2x00t-32gbit/Makefile +++ b/qla2x00t-32gbit/Makefile @@ -44,23 +44,6 @@ endif INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra -ifneq ($(PATCHLEVEL),) -ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \ - -Wno-missing-field-initializers \ - -I$(src)/../scst/include -I$(src)/include \ - -DDEFAULT_SYMBOL_NAMESPACE=QLA32GB - -ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),) -ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET) -endif - -obj-m := qla2xxx_scst.o -qla2xxx_scst-objs := \ - 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 qla_bsg.o \ - qla_nx.o qla_mr.o qla_nx2.o qla_target.o qla_tmpl.o qla_nvme.o -else - all: $(MAKE) -C $(KDIR) M=$(shell pwd) \ $(CONFIG_SCSI_QLA2XXX_TARGET)=CONFIG_SCSI_QLA2XXX_TARGET @@ -76,7 +59,6 @@ uninstall: -/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER) ########## END OUT-OF-TREE RULES ########## -endif clean: $(MAKE) -C $(KDIR) M=$(shell pwd) $@ diff --git a/qla2x00t-32gbit/qla2x00-target/Kbuild b/qla2x00t-32gbit/qla2x00-target/Kbuild new file mode 100644 index 000000000..eb3b6be8f --- /dev/null +++ b/qla2x00t-32gbit/qla2x00-target/Kbuild @@ -0,0 +1,13 @@ +KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \ + $(src)/../Module.symvers +ccflags-y += -I$(src)/../../scst/include -I$(src)/.. +ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers +#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD +#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR + +ifneq ($(BUILD_2X_MODULE),) +ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=y +endif + +obj-m := qla2x00tgt.o +qla2x00tgt-objs := qla_tgt.o scst_qla2xxx.o diff --git a/qla2x00t-32gbit/qla2x00-target/Makefile b/qla2x00t-32gbit/qla2x00-target/Makefile index 793a75470..94598660a 100644 --- a/qla2x00t-32gbit/qla2x00-target/Makefile +++ b/qla2x00t-32gbit/qla2x00-target/Makefile @@ -51,34 +51,11 @@ ifeq ($(INSTALL_MOD_PATH),) export INSTALL_MOD_PATH := $(DESTDIR) endif -ifeq ($(BUILD_2X_MODULE),) -QLA2XXX_INC_DIR := $(KDIR)/drivers/scsi/qla2xxx -else -QLA2XXX_INC_DIR := $(src)/.. +ifneq ($(BUILD_2X_MODULE),) QLA2XXX_DIR := $(shell pwd)/.. QLA2XXX_SCST := qla2xxx_scst endif -ifneq ($(PATCHLEVEL),) - -KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \ - $(src)/../Module.symvers -ccflags-y += -I$(src)/../../scst/include -ccflags-y += -W -Wno-unused-parameter -Wno-missing-field-initializers -#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD -#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR - -ifneq ($(BUILD_2X_MODULE),) -ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=y -endif - -ccflags-y += -I$(QLA2XXX_INC_DIR) - -obj-m := qla2x00tgt.o -qla2x00tgt-objs := qla_tgt.o scst_qla2xxx.o -else -######### BEGIN OUT-OF-TREE RULES ######### - ifndef PREFIX PREFIX=/usr/local endif @@ -112,9 +89,6 @@ qla2xxx_scst: M=$(QLA2XXX_DIR) -C $(QLA2XXX_DIR) all endif -########## END OUT-OF-TREE RULES ########## -endif - clean: ifneq ($(BUILD_2X_MODULE),) $(MAKE) -C $(QLA2XXX_DIR) $@ diff --git a/qla2x00t/Kbuild b/qla2x00t/Kbuild new file mode 100644 index 000000000..d18d16379 --- /dev/null +++ b/qla2x00t/Kbuild @@ -0,0 +1,11 @@ +ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \ + -Wno-missing-field-initializers -I$(src)/../scst/include\ + -DDEFAULT_SYMBOL_NAMESPACE=QLA16GB + +ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),) +ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET) +endif + +obj-m := qla2xxx_scst.o +qla2xxx_scst-objs := 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 qla_bsg.o qla_nx.o diff --git a/qla2x00t/Makefile b/qla2x00t/Makefile index f69ec23ab..0dce532fa 100644 --- a/qla2x00t/Makefile +++ b/qla2x00t/Makefile @@ -43,20 +43,6 @@ endif INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra -ifneq ($(PATCHLEVEL),) -ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \ - -Wno-missing-field-initializers -I$(src)/../scst/include\ - -DDEFAULT_SYMBOL_NAMESPACE=QLA16GB - -ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),) -ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET) -endif - -obj-m := qla2xxx_scst.o -qla2xxx_scst-objs := 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 qla_bsg.o qla_nx.o -else - all: $(MAKE) -C $(KDIR) M=$(shell pwd) \ $(CONFIG_SCSI_QLA2XXX_TARGET)=CONFIG_SCSI_QLA2XXX_TARGET @@ -72,7 +58,6 @@ uninstall: -/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER) ########## END OUT-OF-TREE RULES ########## -endif clean: $(MAKE) -C $(KDIR) M=$(shell pwd) $@ diff --git a/qla2x00t/qla2x00-target/Kbuild b/qla2x00t/qla2x00-target/Kbuild new file mode 100644 index 000000000..e00c73e73 --- /dev/null +++ b/qla2x00t/qla2x00-target/Kbuild @@ -0,0 +1,13 @@ +KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \ + $(src)/../Module.symvers +ccflags-y += -I$(src)/../../scst/include -I$(src)/.. +ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers +#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD +#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR + +ifneq ($(BUILD_2X_MODULE),) +ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=y +endif + +obj-m := qla2x00tgt.o +qla2x00tgt-objs := qla2x00t.o diff --git a/qla2x00t/qla2x00-target/Makefile b/qla2x00t/qla2x00-target/Makefile index 92346d452..d6f3f0888 100644 --- a/qla2x00t/qla2x00-target/Makefile +++ b/qla2x00t/qla2x00-target/Makefile @@ -50,34 +50,11 @@ ifeq ($(INSTALL_MOD_PATH),) export INSTALL_MOD_PATH := $(DESTDIR) endif -ifeq ($(BUILD_2X_MODULE),) -QLA2XXX_INC_DIR := $(KDIR)/drivers/scsi/qla2xxx -else -QLA2XXX_INC_DIR := $(src)/.. +ifneq ($(BUILD_2X_MODULE),) QLA2XXX_DIR := $(shell pwd)/.. QLA2XXX_SCST := qla2xxx_scst endif -ifneq ($(PATCHLEVEL),) - -KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \ - $(src)/../Module.symvers -ccflags-y += -I$(src)/../../scst/include -ccflags-y += -W -Wno-unused-parameter -Wno-missing-field-initializers -#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD -#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR - -ifneq ($(BUILD_2X_MODULE),) -ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=y -endif - -ccflags-y += -I$(QLA2XXX_INC_DIR) - -obj-m := qla2x00tgt.o -qla2x00tgt-objs := qla2x00t.o -else -######### BEGIN OUT-OF-TREE RULES ######### - ifndef PREFIX PREFIX=/usr/local endif @@ -111,9 +88,6 @@ qla2xxx_scst: M=$(QLA2XXX_DIR) -C $(QLA2XXX_DIR) all endif -########## END OUT-OF-TREE RULES ########## -endif - clean: ifneq ($(BUILD_2X_MODULE),) $(MAKE) -C $(QLA2XXX_DIR) $@ diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 25e14b445..4a891db86 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -459,7 +459,7 @@ if [ "${include_fcst}" = true ]; then done fi - add_file "fcst/Makefile_in-tree" \ + add_file "fcst/Kbuild" \ "drivers/scst/fcst/Makefile" add_file "fcst/Kconfig" "drivers/scst/fcst/Kconfig" diff --git a/scst/src/Kbuild b/scst/src/Kbuild new file mode 100644 index 000000000..5f58b7dfe --- /dev/null +++ b/scst/src/Kbuild @@ -0,0 +1,38 @@ +# See also Documentation/core-api/symbol-namespaces.rst for more information +# about DEFAULT_SYMBOL_NAMESPACE. +ccflags-y += -I$(src)/../include $(call cc-option,-Wextra) \ + -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare\ + -DDEFAULT_SYMBOL_NAMESPACE=SCST\ + $(shell [ -n "${CONFIG_SCST_NO_DLM}" ] && echo -DCONFIG_SCST_NO_DLM) + +#ccflags-y += -DCONFIG_SCST_STRICT_SERIALIZING +#ccflags-y += -DCONFIG_SCST_USE_EXPECTED_VALUES +#ccflags-y += -DCONFIG_SCST_TEST_IO_IN_SIRQ +#ccflags-y += -DCONFIG_SCST_ABORT_CONSIDER_FINISHED_TASKS_AS_NOT_EXISTING +#ccflags-y += -DCONFIG_SCST_DEBUG_RETRY +#ccflags-y += -DCONFIG_SCST_DEBUG_OOM +#ccflags-y += -DCONFIG_SCST_DEBUG_SN +#ccflags-y += -DCONFIG_SCST_DEBUG_SYSFS_EAGAIN + +# If defined, makes SCST zero allocated data buffers. +# Undefining it considerably improves performance and eases CPU load, +# but could create a security hole (information leakage), so +# enable it if you have strict security requirements. +#ccflags-y += -DSCST_STRICT_SECURITY + +obj-m := scst.o + +scst-y += scst_copy_mgr.o +scst-y += scst_debug.o +scst-y += scst_dlm.o +scst-y += scst_event.o +scst-y += scst_lib.o +scst-y += scst_local_cmd.o +scst-y += scst_main.o +scst-y += scst_mem.o +scst-y += scst_no_dlm.o +scst-y += scst_pres.o +scst-y += scst_sysfs.o +scst-y += scst_targ.o +scst-y += scst_tg.o +obj-$(CONFIG_SCST) += scst.o dev_handlers/ diff --git a/scst/src/Makefile b/scst/src/Makefile index f5f618ae9..240a6061d 100644 --- a/scst/src/Makefile +++ b/scst/src/Makefile @@ -35,51 +35,6 @@ SHELL=/bin/bash DEV_HANDLERS_DIR = dev_handlers -ifneq ($(PATCHLEVEL),) -# See also Documentation/core-api/symbol-namespaces.rst for more information -# about DEFAULT_SYMBOL_NAMESPACE. -ccflags-y += -I$(src)/../include $(call cc-option,-Wextra) \ - -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare\ - -DDEFAULT_SYMBOL_NAMESPACE=SCST\ - $(shell [ -n "${CONFIG_SCST_NO_DLM}" ] && echo -DCONFIG_SCST_NO_DLM) - -#ccflags-y += -DCONFIG_SCST_STRICT_SERIALIZING -#ccflags-y += -DCONFIG_SCST_USE_EXPECTED_VALUES -#ccflags-y += -DCONFIG_SCST_TEST_IO_IN_SIRQ -#ccflags-y += -DCONFIG_SCST_ABORT_CONSIDER_FINISHED_TASKS_AS_NOT_EXISTING -#ccflags-y += -DCONFIG_SCST_DEBUG_RETRY -#ccflags-y += -DCONFIG_SCST_DEBUG_OOM -#ccflags-y += -DCONFIG_SCST_DEBUG_SN -#ccflags-y += -DCONFIG_SCST_DEBUG_SYSFS_EAGAIN - -# If defined, makes SCST zero allocated data buffers. -# Undefining it considerably improves performance and eases CPU load, -# but could create a security hole (information leakage), so -# enable it if you have strict security requirements. -#ccflags-y += -DSCST_STRICT_SECURITY - -obj-m := scst.o - -scst-y += scst_copy_mgr.o -scst-y += scst_debug.o -scst-y += scst_dlm.o -scst-y += scst_event.o -scst-y += scst_lib.o -scst-y += scst_local_cmd.o -scst-y += scst_main.o -scst-y += scst_mem.o -scst-y += scst_no_dlm.o -scst-y += scst_pres.o -scst-y += scst_sysfs.o -scst-y += scst_targ.o -scst-y += scst_tg.o -obj-$(CONFIG_SCST) += scst.o dev_handlers/ - -obj-$(BUILD_DEV) += $(DEV_HANDLERS_DIR)/ - -else -######### BEGIN OUT-OF-TREE RULES ######### - ifeq ($(KVER),) ifeq ($(KDIR),) KVER := $(shell uname -r) @@ -115,10 +70,11 @@ $(SCST_INTF_VER_FILE): $(SCST_INC_DIR)/scst.h $(SCST_INC_DIR)/scst_const.h $(SCS all: $(SCST_INTF_VER_FILE) $(MAKE) -C certs KDIR=$(KDIR) - $(MAKE) -C $(KDIR) M=$(shell pwd) BUILD_DEV=m + $(MAKE) -C $(KDIR) M=$(shell pwd) + $(MAKE) -C $(KDIR) M=$(shell pwd)/dev_handlers scst: - $(MAKE) -C $(KDIR) M=$(shell pwd) BUILD_DEV=n + $(MAKE) -C $(KDIR) M=$(shell pwd) install: all @if [ -z "$(DESTDIR)" ] && \ @@ -172,9 +128,6 @@ uninstall: -/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER) rm -rf $(INSTALL_DIR_H) -########## END OUT-OF-TREE RULES ########## -endif - INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra INSTALL_DIR_H := $(DESTDIR)$(PREFIX)/include/scst diff --git a/scst/src/dev_handlers/Kbuild b/scst/src/dev_handlers/Kbuild new file mode 100644 index 000000000..a7996af0e --- /dev/null +++ b/scst/src/dev_handlers/Kbuild @@ -0,0 +1,8 @@ +KBUILD_EXTRA_SYMBOLS=$(src)/../Module.symvers +ccflags-y += -I$(src)/../../include \ + $(call cc-option,-Wextra) \ + -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare +#ccflags-y += -DCONFIG_DEBUG_EXT_COPY_REMAP + +obj-m := scst_cdrom.o scst_changer.o scst_disk.o scst_modisk.o scst_tape.o \ + scst_vdisk.o scst_raid.o scst_processor.o scst_user.o diff --git a/scst/src/dev_handlers/Makefile b/scst/src/dev_handlers/Makefile index afd74d533..bddc1a87f 100644 --- a/scst/src/dev_handlers/Makefile +++ b/scst/src/dev_handlers/Makefile @@ -29,19 +29,6 @@ SHELL=/bin/bash -ifneq ($(PATCHLEVEL),) -KBUILD_EXTRA_SYMBOLS=$(src)/../../Module.symvers -ccflags-y += -I$(src)/../../include \ - $(call cc-option,-Wextra) \ - -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -#ccflags-y += -DCONFIG_DEBUG_EXT_COPY_REMAP - -obj-m := scst_cdrom.o scst_changer.o scst_disk.o scst_modisk.o scst_tape.o \ - scst_vdisk.o scst_raid.o scst_processor.o scst_user.o - -else -######### BEGIN OUT-OF-TREE RULES ######### - ifeq ($(KVER),) ifeq ($(KDIR),) KVER := $(shell uname -r) @@ -77,9 +64,6 @@ install: all uninstall: rm -f $(INSTALL_DIR)/dev_handlers/scst_*.ko -########## END OUT-OF-TREE RULES ########## -endif - clean: $(MAKE) -C $(KDIR) M=$(shell pwd) $@ diff --git a/scst_local/Kbuild b/scst_local/Kbuild new file mode 100644 index 000000000..e96859041 --- /dev/null +++ b/scst_local/Kbuild @@ -0,0 +1,6 @@ +KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers +ccflags-y += -I$(src)/../scst/include +ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter\ + -Wno-missing-field-initializers + +obj-m := scst_local.o diff --git a/scst_local/Makefile b/scst_local/Makefile index 982a1becf..5dba991dc 100644 --- a/scst_local/Makefile +++ b/scst_local/Makefile @@ -6,16 +6,6 @@ SHELL=/bin/bash KMOD := $(shell pwd)/kernel -ifneq ($(PATCHLEVEL),) -KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers -ccflags-y += -I$(src)/../scst/include -ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter\ - -Wno-missing-field-initializers - -obj-m := scst_local.o -else -######### BEGIN OUT-OF-TREE RULES ######### - ifndef PREFIX PREFIX=/usr/local endif @@ -54,9 +44,6 @@ uninstall: rm -f $(INSTALL_DIR)/scst_local.ko -/sbin/depmod -b $(INSTALL_MOD_PATH)/ -a $(KVER) -########## END OUT-OF-TREE RULES ########## -endif - clean: $(MAKE) -C $(KDIR) M=$(shell pwd) $@