diff --git a/scripts/Makefile.modsign b/scripts/Makefile.modsign index da56aa78d245da2835d7714d6bb81e15cb1cf3f4..d7325cefe709d34960515b2ff1ad3a76e7f48e44 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)