summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-08-23 13:50:41 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-08-29 15:38:23 +0200
commit2429742e506a2b5939a62c629c4a46d91df0ada8 (patch)
treeaeaf1a01239e5846b6f3ac84de3e0dffc19dbfb2 /Makefile
parentkbuild: deb-pkg: support DEB_BUILD_OPTIONS=parallel=N in debian/rules (diff)
downloadlinux-2429742e506a2b5939a62c629c4a46d91df0ada8.tar.xz
linux-2429742e506a2b5939a62c629c4a46d91df0ada8.zip
kbuild: do not run depmod for 'make modules_sign'
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 64c114e9ce5f..9075ad851b46 100644
--- 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