kbuild: do not run depmod for 'make modules_sign'
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 23 Aug 2023 11:50:41 +0000 (20:50 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 29 Aug 2023 13:38:23 +0000 (22:38 +0900)
Commit 961ab4a3cd66 ("kbuild: merge scripts/Makefile.modsign to
scripts/Makefile.modinst") started to run depmod at the end of
'make modules_sign'.

Move the depmod rule to scripts/Makefile.modinst and run it only when
$(modules_sign_only) is empty.

Fixes: 961ab4a3cd66 ("kbuild: merge scripts/Makefile.modsign to scripts/Makefile.modinst")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Makefile

index 64c114e..9075ad8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1877,7 +1877,9 @@ quiet_cmd_depmod = DEPMOD  $(MODLIB)
 
 modules_install:
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
+ifndef modules_sign_only
        $(call cmd,depmod)
+endif
 
 else # CONFIG_MODULES