Skip to content

Commit 2429742

Browse files
committed
kbuild: do not run depmod for 'make modules_sign'
Commit 961ab4a ("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: 961ab4a ("kbuild: merge scripts/Makefile.modsign to scripts/Makefile.modinst") Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent ed79c34 commit 2429742

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,9 @@ quiet_cmd_depmod = DEPMOD $(MODLIB)
18771877

18781878
modules_install:
18791879
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1880+
ifndef modules_sign_only
18801881
$(call cmd,depmod)
1882+
endif
18811883

18821884
else # CONFIG_MODULES
18831885

0 commit comments

Comments
 (0)