]> granicus.if.org Git - spl/commitdiff
Fix modules installation directory
authorAlexander Pyhalov <apyhalov@gmail.com>
Tue, 28 Oct 2014 16:48:50 +0000 (09:48 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Oct 2014 16:49:24 +0000 (09:49 -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 zfsonlinux/zfs#2822

module/Makefile.in

index 49bdaa80874ee9ca2d19d08447da9c114f57672b..41c10101ed26f6104fcbf8649d2b25d6517c53af 100644 (file)
@@ -22,7 +22,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 \