[Ocfs2-devel] [Patch] install module on 2.6

Ling, Xiaofeng xiaofeng.ling at intel.com
Fri Apr 2 11:56:50 CST 2004


It seems on 2.6 kernel, "make install" does not work.
A simple patch to fix it


Index: src/Makefile
===================================================================
--- src/Makefile	(revision 833)
+++ src/Makefile	(working copy)
@@ -239,7 +239,13 @@
 
 all:
 	$(MAKE) -C $(KDIR) SUBDIRS=$(CURDIR) modules
+install:install-ocfs
 
+install-ocfs: ocfs2.ko
+	$(TOPDIR)/mkinstalldirs $(DESTDIR)$(MODULEDIR)/ocfs
+	$(INSTALL_DATA) ocfs2.ko $(DESTDIR)$(MODULEDIR)/ocfs/ocfs2.ko
+	depmod -a
+
 endif # OCFS_KERNEL_2_6
 
 include $(TOPDIR)/Postamble.make


-------------------
Xiaofeng
xfling at users.sourceforge.net


More information about the Ocfs2-devel mailing list