patch to nnpfs/linux/Makefile.in

Bjorn Torkelsson Bjorn.Torkelsson at hpc2n.umu.se
Wed Jul 21 18:36:11 CEST 2004


Hi,

A small patch to make it easier to install nnpfs.{ko,o} in a location
different from the currently running kernel, using make modules_install.

Diff against the 0.36-branch.

/torkel	


Index: nnpfs/linux/Makefile.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/nnpfs/linux/Makefile.in,v
retrieving revision 1.51
diff -u -r1.51 Makefile.in
--- nnpfs/linux/Makefile.in	13 May 2004 18:52:46 -0000	1.51
+++ nnpfs/linux/Makefile.in	21 Jul 2004 12:28:19 -0000
@@ -59,6 +59,8 @@
 
 MODULE_OBJS	= $(MODULE_SRCS:.c=.o)
 
+MODULE_DIR      = $(DESTDIR)/lib/modules/`uname -r`/kernel/fs
+
 LINUX_VERSION=$(shell grep '^VERSION = ' @SYS@/Makefile | sed 's,^VERSION = ,,')
 LINUX_PATCHLEVEL=$(shell grep '^PATCHLEVEL = ' @SYS@/Makefile | sed 's,^PATCHLEVEL = ,,')
 LINUX_VERSION_PATCHLEVEL=$(LINUX_VERSION).$(LINUX_PATCHLEVEL)
@@ -124,11 +126,11 @@
 	umount /afs
 
 modules_install:
-	$(MKINSTALLDIRS) $(DESTDIR)/lib/modules/`uname -r`/kernel/fs
+	$(MKINSTALLDIRS) $(MODULE_DIR)
 	for x in $(PROG_BIN); do \
 		f=`echo $$x | sed '$(transform)'`; \
 		$(INSTALL_PROGRAM) $(PROG_BINDIR)/$$x \
-			$(DESTDIR)/lib/modules/`uname -r`/kernel/fs/$$f; \
+			$(MODULE_DIR)/$$f; \
 	done
 
 install: all





More information about the Arla-drinkers mailing list