From 3f4a13c49709ab4bc6abb6b3159be77ce168a5e0 Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov Date: Tue, 28 Oct 2014 09:48:50 -0700 Subject: 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 Signed-off-by: Brian Behlendorf Closes zfsonlinux/zfs#2822 --- module/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/Makefile.in') diff --git a/module/Makefile.in b/module/Makefile.in index 49bdaa808..41c10101e 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -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 \ -- cgit v1.2.3