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)
commit2429742e506a2b5939a62c629c4a46d91df0ada8
treeaeaf1a01239e5846b6f3ac84de3e0dffc19dbfb2
parented79c34d3cf8539589257189bf4a08418d7f2abf
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>
Makefile