kbuild: move depmod rule to scripts/Makefile.modinst
depmod is a part of the module installation. scripts/Makefile.modinst is a better place to run it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
This commit is contained in:
@@ -86,6 +86,15 @@ $(dst)/%.ko: $(extmod_prefix)%.ko FORCE
|
||||
$(call cmd,strip)
|
||||
$(call cmd,sign)
|
||||
|
||||
__modinst: depmod
|
||||
|
||||
PHONY += depmod
|
||||
depmod: $(modules)
|
||||
$(call cmd,depmod)
|
||||
|
||||
quiet_cmd_depmod = DEPMOD $(MODLIB)
|
||||
cmd_depmod = $(srctree)/scripts/depmod.sh $(KERNELRELEASE)
|
||||
|
||||
else
|
||||
|
||||
$(dst)/%.ko: FORCE
|
||||
|
||||
Reference in New Issue
Block a user