mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 00:40:51 +07:00
kbuild: modinst: 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 installed. This is simpler than parsing *.mod files in $(MODVERDIR). For external modules, $(KBUILD_EXTMOD)/modules.order should be read. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
0e5d8b7fb2
commit
d56aec102c
@ -8,10 +8,7 @@ __modinst:
|
|||||||
|
|
||||||
include scripts/Kbuild.include
|
include scripts/Kbuild.include
|
||||||
|
|
||||||
#
|
modules := $(sort $(shell cat $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)modules.order))
|
||||||
|
|
||||||
__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
|
|
||||||
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
|
|
||||||
|
|
||||||
PHONY += $(modules)
|
PHONY += $(modules)
|
||||||
__modinst: $(modules)
|
__modinst: $(modules)
|
||||||
|
Loading…
Reference in New Issue
Block a user