mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-01 12:15:42 +00:00
Makefile: Specify the installation directory for SCST modules explicitly
This patch fixes the installation process for Linux kernels where the default value of INSTALL_MOD_DIR differs from `extra`. For instance, it unbreaks `make rpm` against Fedora's kernels, where INSTALL_MOD_DIR is set to `updates`.
This commit is contained in:
+4
-1
@@ -55,7 +55,9 @@ ifeq ($(INSTALL_MOD_PATH),)
|
||||
export INSTALL_MOD_PATH := $(DESTDIR)
|
||||
endif
|
||||
|
||||
INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra
|
||||
INSTALL_MOD_DIR=extra
|
||||
|
||||
INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/$(INSTALL_MOD_DIR)
|
||||
|
||||
SCST_DIR := $(shell echo "$$PWD")/../scst/src
|
||||
|
||||
@@ -67,6 +69,7 @@ install: all
|
||||
KDIR=$(KDIR) ../scripts/sign-modules
|
||||
$(MAKE) -C $(KDIR) M=$(shell pwd) \
|
||||
$(shell [ -n "$(PASS_CC_TO_MAKE)" ] && echo CC="$(CC)") \
|
||||
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
|
||||
$$([ -n "$(DEPMOD)" ] && echo "DEPMOD=$(DEPMOD)") \
|
||||
CONFIG_MODULE_SIG_ALL= modules_install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user