diff options
author | Brian Gerst <bgerst@didntduck.org> | 2004-07-10 19:29:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-10 19:29:59 -0700 |
commit | 694effe72032db1384b5a084977b8bbb2c3cdaa6 (patch) | |
tree | 4ba04115444f04e993f078d1799f66c70dd6805b /scripts | |
parent | 5cfce8960087fb21821356b81972d580baea3a36 (diff) | |
download | history-694effe72032db1384b5a084977b8bbb2c3cdaa6.tar.gz |
[PATCH] kbuild: sort modules for modpost and modinst
Process modules in sorted order during modpost and modules install.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.modinst | 2 | ||||
-rw-r--r-- | scripts/Makefile.modpost | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index cef0b1142f2e01..2f997b9b18b568 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -9,7 +9,7 @@ include scripts/Makefile.lib # -__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 --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index f7efc18ff7f874..95663091bda557 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -41,7 +41,7 @@ include scripts/Makefile.lib 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) |