mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Clean up module install rules
@ 2004-07-01 12:47 Brian Gerst
  0 siblings, 0 replies; only message in thread
From: Brian Gerst @ 2004-07-01 12:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Sam Ravnborg, lkml

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

Consolidate rules for installing internal and external modules.

--
				Brian Gerst


[-- Attachment #2: modinst-1 --]
[-- Type: text/plain, Size: 994 bytes --]

diff -urN linux-2.6.7-bk/scripts/Makefile.modinst linux/scripts/Makefile.modinst
--- linux-2.6.7-bk/scripts/Makefile.modinst	2004-06-23 18:06:06.000000000 -0400
+++ linux/scripts/Makefile.modinst	2004-06-29 13:45:26.232647680 -0400
@@ -16,20 +16,10 @@
 __modinst: $(modules)
 	@:
 
-# Modules built within the kernel tree
-
 quiet_cmd_modules_install = INSTALL $@
-      cmd_modules_install = mkdir -p $(MODLIB)/kernel/$(@D); \
-			    cp $@ $(MODLIB)/kernel/$(@D)
-
-$(filter-out ../% /%,$(modules)):
-	$(call cmd,modules_install)
-
-# Modules built outside just go into extra
+      cmd_modules_install = mkdir -p $(2); cp $@ $(2)
 
-quiet_cmd_modules_install_extra = INSTALL $(obj-m:.o=.ko)
-      cmd_modules_install_extra = mkdir -p $(MODLIB)/extra; \
-			    	  cp $@ $(MODLIB)/extra
+modinst_dir = $(MODLIB)/$(if $(filter ../% /%,$@),extra/,kernel/$(@D))
 
-$(filter     ../% /%,$(modules)):
-	$(call cmd,modules_install_extra)
+$(modules):
+	$(call cmd,modules_install,$(modinst_dir))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-01 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 12:47 [PATCH] Clean up module install rules Brian Gerst

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

all inboxes | Powered by JetHome®