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] Sort modules for modpost and modinst
Date: Thu, 01 Jul 2004 08:47:14 -0400 [thread overview]
Message-ID: <40E407D2.9030706@quark.didntduck.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 89 bytes --]
Process modules in sorted order during modpost and modules install.
--
Brian Gerst
[-- Attachment #2: modsort-1 --]
[-- Type: text/plain, Size: 1069 bytes --]
diff -urN linux/scripts/Makefile.modinst linux2/scripts/Makefile.modinst
--- linux/scripts/Makefile.modinst 2004-06-29 13:45:26.232647680 -0400
+++ linux2/scripts/Makefile.modinst 2004-06-29 11:36:33.191248664 -0400
@@ -9,7 +9,7 @@
#
-__modules := $(shell head -q -n1 /dev/null $(wildcard $(MODVERDIR)/*.mod))
+__modules := $(sort $(shell head -q -n1 /dev/null $(wildcard $(MODVERDIR)/*.mod)))
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
.PHONY: $(modules)
diff -urN linux/scripts/Makefile.modpost linux2/scripts/Makefile.modpost
--- linux/scripts/Makefile.modpost 2004-06-29 13:45:32.643673056 -0400
+++ linux2/scripts/Makefile.modpost 2004-06-29 10:49:20.145937016 -0400
@@ -41,7 +41,7 @@
symverfile := $(objtree)/Module.symvers
# Step 1), find all modules listed in $(MODVERDIR)/
-__modules := $(shell head -q -n1 /dev/null $(wildcard $(MODVERDIR)/*.mod))
+__modules := $(sort $(shell head -q -n1 /dev/null $(wildcard $(MODVERDIR)/*.mod)))
modules := $(patsubst %.o,%.ko, $(wildcard $(__modules:.ko=.o)))
_modpost: $(modules)
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=40E407D2.9030706@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®