mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Sort modules for modpost and modinst
@ 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: 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)


^ 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] Sort modules for modpost and modinst 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®