]> granicus.if.org Git - zfs/commitdiff
Fix modules installation directory
authorAlexander Pyhalov <apyhalov@gmail.com>
Wed, 22 Oct 2014 18:02:45 +0000 (22:02 +0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Oct 2014 16:46:14 +0000 (09:46 -0700)
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 <apyhalov@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2822

module/Makefile.in

index 4c6d381681494a41378ebd6782a2e0401d87e1d2..686402b1fc4c62d1273969ee8977447a33519fc1 100644 (file)
@@ -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 \