summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-08-23 20:50:41 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-19 12:27:58 +0200
commit46d3bc902b038d4e761d27a069afe5bc686b42eb (patch)
tree576e94caade81596983bd7006631c71ecb71779f /Makefile
parent390275d7a86314334d14851944b65608e5b42356 (diff)
downloadlinux-stable-46d3bc902b038d4e761d27a069afe5bc686b42eb.tar.gz
linux-stable-46d3bc902b038d4e761d27a069afe5bc686b42eb.tar.bz2
linux-stable-46d3bc902b038d4e761d27a069afe5bc686b42eb.zip
kbuild: do not run depmod for 'make modules_sign'
[ Upstream commit 2429742e506a2b5939a62c629c4a46d91df0ada8 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 35fc0d62898d..f23edaa0e813 100644
--- a/Makefile
+++ b/Makefile
@@ -1939,7 +1939,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