aboutsummaryrefslogtreecommitdiffstats
path: root/module/Makefile.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-06-25 15:31:53 -0700
committerBrian Behlendorf <[email protected]>2009-06-25 15:31:53 -0700
commit31b2e0b070d99681d189951557d2344dc2b63dbf (patch)
treefdaadf5b6239bfc80de88e4b382c32f030f71ea5 /module/Makefile.in
parent762b96f6c6dd6feb2407bf484685b4ac70ab8fcd (diff)
Packaging Fixes
- Kernel modules should be built using the LINUX_OBJ Makefiles and not the LINUX Makefiles to ensure the proper install paths are used. - Install modules in to addon/spl/ - Ensure no additional kernel module build products are packaged. - Simplified spl.spec.in which supports RHEL, CHAOS, SLES, FEDORA.
Diffstat (limited to 'module/Makefile.in')
-rw-r--r--module/Makefile.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index b93a1d769..4368f7142 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -4,11 +4,13 @@ subdir-m += splat
INSTALL=/usr/bin/install
modules clean:
- $(MAKE) -C @LINUX@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+ $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
modules_install:
- $(MAKE) -C @LINUX@ SUBDIRS=`pwd` \
- INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=addon $@
+ $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
+ INSTALL_MOD_PATH=$(DESTDIR) \
+ INSTALL_MOD_DIR=addon/spl $@
+ find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}
distdir:
list='$(subdir-m)'; for subdir in $$list; do \