mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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>
This commit is contained in:
parent
d56aec102c
commit
c35c87d6f2
@ -8,8 +8,7 @@ __modsign:
|
|||||||
|
|
||||||
include scripts/Kbuild.include
|
include scripts/Kbuild.include
|
||||||
|
|
||||||
__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
|
modules := $(sort $(shell cat modules.order))
|
||||||
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
|
|
||||||
|
|
||||||
PHONY += $(modules)
|
PHONY += $(modules)
|
||||||
__modsign: $(modules)
|
__modsign: $(modules)
|
||||||
|
Loading…
Reference in New Issue
Block a user