summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modsign
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.modsign')
-rw-r--r--scripts/Makefile.modsign3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.modsign b/scripts/Makefile.modsign
index da56aa78d245..d7325cefe709 100644
--- a/scripts/Makefile.modsign
+++ b/scripts/Makefile.modsign
@@ -8,8 +8,7 @@ __modsign:
include scripts/Kbuild.include
-__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
-modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
+modules := $(sort $(shell cat modules.order))
PHONY += $(modules)
__modsign: $(modules)