public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] modules_install must not remove existing modules
@ 2006-04-05 21:33 Andreas Gruenbacher
  2006-04-05 21:52 ` Valdis.Kletnieks
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andreas Gruenbacher @ 2006-04-05 21:33 UTC (permalink / raw)
  To: Sam Ravnborg, linux-kernel

When installing external modules with `make modules_install', the
first thing that happens is a rm -rf of the target directory. This
works only once, and breaks when installing more than one (set of)
external module(s). Bug introduced in:
  http://www.kernel.org/hg/linux-2.6/?cs=bbb3915836f5

Sam, is this fix okay with you?

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>

Index: linux-2.6.16/Makefile
===================================================================
--- linux-2.6.16.orig/Makefile
+++ linux-2.6.16/Makefile
@@ -1131,7 +1131,6 @@ modules_install: _emodinst_ _emodinst_po
 install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)	
 .PHONY: _emodinst_
 _emodinst_:
-	$(Q)rm -rf $(MODLIB)/$(install-dir)
 	$(Q)mkdir -p $(MODLIB)/$(install-dir)
 	$(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modinst

-- 
Andreas Gruenbacher <agruen@suse.de>
Novell / SUSE Labs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-04-06 20:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 21:33 [PATCH] modules_install must not remove existing modules Andreas Gruenbacher
2006-04-05 21:52 ` Valdis.Kletnieks
2006-04-05 22:06   ` Andreas Gruenbacher
2006-04-05 22:33   ` Gene Heskett
2006-04-05 22:12 ` Sam Ravnborg
2006-04-05 22:21   ` Andreas Gruenbacher
2006-04-06  4:04   ` Valdis.Kletnieks
2006-04-06  6:43 ` Sam Ravnborg
2006-04-06 20:28   ` Randy.Dunlap
2006-04-06 20:29     ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox