From: Brian Gerst <bgerst@didntduck.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Sam Ravnborg <sam@ravnborg.org>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] Clean up module install rules
Date: Thu, 01 Jul 2004 08:47:04 -0400 [thread overview]
Message-ID: <40E407C8.3010209@quark.didntduck.org> (raw)
[-- 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))
reply other threads:[~2004-07-01 12:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40E407C8.3010209@quark.didntduck.org \
--to=bgerst@didntduck.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®