On Fri, Apr 02, 2004 at 11:56:50AM +0800, Ling, Xiaofeng
wrote:> It seems on 2.6 kernel, "make install" does not work.
> A simple patch to fix it
Committed a modifed version.
>
> 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
With makebo, use INSTALL_RULES to hook into the install rule, instead of
overriding it. Should've also done it for all, and now we do.
> +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
I've made this shared with 2.4 now.
-Manish