aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorAlexander Pyhalov <[email protected]>2014-10-22 22:02:45 +0400
committerBrian Behlendorf <[email protected]>2014-10-28 09:46:14 -0700
commitbb9d808c5a942111addef033bd50bff86d1a5cc7 (patch)
treea01cb6d7e0719c9add2761a0bd0fa810e78fe883 /module
parentb76707027ceca056f8630cbc6660b8e9aa0a8f37 (diff)
Fix modules installation directory
When building zfs modules with kernel, compiled from deb.src, the packaging process ends up installing the modules in the wrong place. Signed-off-by: Alexander Pyhalov <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2822
Diffstat (limited to 'module')
-rw-r--r--module/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index 4c6d38168..686402b1f 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -43,7 +43,8 @@ modules_install:
@# Install the kernel modules
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` $@ \
INSTALL_MOD_PATH=$(DESTDIR)$(INSTALL_MOD_PATH) \
- INSTALL_MOD_DIR=$(INSTALL_MOD_DIR)
+ INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
+ KERNELRELEASE=@LINUX_VERSION@
@# Remove extraneous build products when packaging
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \
if [ -n $$kmoddir ]; then \