lkml.org 
[lkml]   [1999]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectKernel makefile bugfix
Hi there.

Just a small bugfix relating to the top level makefile in Linux
kernels: If one wishes for some reason to redirect the results of
`make modules_install` to a non-standard root, the current setup
requires one to always specify the full path to the target directory,
as relative paths get implemented relative to the wrong directory. The
enclosed patch fixes this.

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html
--- linux-2.2.10/Makefile~ Sat May 29 02:10:19 1999
+++ linux-2.2.10/Makefile Sun Jul 18 19:15:38 1999
@@ -299,10 +299,13 @@
$(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules

modules_install:
@( \
MODLIB=$(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE); \
+ if [ "`echo $MODLIB | cut -b 1`" != "/" ]; then \
+ MODLIB=$$TOPDIR/$$MODLIB ; \
+ fi; \
cd modules; \
MODULES=""; \
inst_mod() { These="`cat $$1`"; MODULES="$$MODULES $$These"; \
mkdir -p $$MODLIB/$$2; cp $$These $$MODLIB/$$2; \
echo Installing modules under $$MODLIB/$$2; \
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.036 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site