From: Masahiro Yamada Date: Wed, 17 Jul 2019 06:17:54 +0000 (+0900) Subject: kbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod X-Git-Tag: v5.4-rc1~492^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c35c87d6f258ad943d0fb350ed45fa9302c36b52;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/scripts/Makefile.modsign b/scripts/Makefile.modsign index da56aa7..d7325ce 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)