Skip to content

Commit

Permalink
kernel module installation: Skip "depmod" when building an RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
bvassche committed Jun 19, 2014
1 parent 61c807b commit c7155f7
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions fcst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ tgt: Modules.symvers Module.symvers

install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
SCST_INC_DIR=$(SCST_INC_DIR) modules_install

ins:
Expand Down
4 changes: 3 additions & 1 deletion ibmvstgt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ all: src/$(MODULE_SYMVERS)
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/src modules

install: all src/ibmvstgt.ko
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/src modules_install
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/src \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

uninstall:
rm -f $(INSTALL_DIR)/libsrp.ko $(INSTALL_DIR)/ibmvstgt.ko
Expand Down
1 change: 1 addition & 0 deletions iscsi-scst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ install: all
@install -vD -m 755 usr/iscsi-scst-adm $(DESTDIR)$(SBINDIR)/iscsi-scst-adm
@install -vD -m 644 doc/manpages/iscsi-scst-adm.8 $(DESTDIR)$(MANDIR)/man8/iscsi-scst-adm.8
$(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(KMOD) \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

uninstall:
Expand Down
1 change: 1 addition & 0 deletions mpt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ tgt: Modules.symvers Module.symvers

install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

SCST_MOD_VERS := $(shell ls $(SCST_DIR)/Modules.symvers 2>/dev/null)
Expand Down
1 change: 1 addition & 0 deletions mvsas_tgt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ tgt: Modules.symvers Module.symvers

install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

ins:
Expand Down
1 change: 1 addition & 0 deletions qla2x00t/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ all:

install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

uninstall:
Expand Down
1 change: 1 addition & 0 deletions qla2x00t/qla2x00-target/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ ifneq ($(BUILD_2X_MODULE),)
SCST_INC_DIR=$(SCST_INC_DIR)
endif
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
SCST_INC_DIR=$(SCST_INC_DIR) modules_install

uninstall:
Expand Down
4 changes: 3 additions & 1 deletion qla_isp/linux-2.6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ extraclean: clean
rm -f *.orig *.rej

install:
@$(MAKE) -C ${LINUX} M=${CURDIR}/build modules_install
@$(MAKE) -C ${LINUX} M=${CURDIR}/build \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

install_host_progs:
@$(MAKE) -C build $@
Expand Down
1 change: 1 addition & 0 deletions scst/src/dev_handlers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ all:
install: all
mkdir -p $(DESTDIR)/var/lib/scst/vdev_mode_pages
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

uninstall:
Expand Down
1 change: 1 addition & 0 deletions scst_local/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ all: Modules.symvers Module.symvers

install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
SCST_INC_DIR=$(SCST_INC_DIR) modules_install

SCST_MOD_VERS := $(shell ls $(SCST_DIR)/Modules.symvers 2>/dev/null)
Expand Down
1 change: 1 addition & 0 deletions srpt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ all: src/$(MODULE_SYMVERS)
install: all src/ib_srpt.ko
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/src \
PRE_CFLAGS="$(OFED_CFLAGS)" SCST_INC_DIR=$(SCST_INC_DIR) \
$$([ -n "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && echo DEPMOD=true) \
modules_install

uninstall:
Expand Down

0 comments on commit c7155f7

Please sign in to comment.