Skip to content

Commit c35c87d

Browse files
committed
kbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod
Towards the goal of removing MODVERDIR, read out modules.order to get the list of modules to be signed. This is simpler than parsing *.mod files in $(MODVERDIR). The modules_sign target is only supported for in-kernel modules. So, this commit does not take care of external modules. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent d56aec1 commit c35c87d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/Makefile.modsign

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ __modsign:
88

99
include scripts/Kbuild.include
1010

11-
__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
12-
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
11+
modules := $(sort $(shell cat modules.order))
1312

1413
PHONY += $(modules)
1514
__modsign: $(modules)

0 commit comments

Comments
 (0)