Skip to content

Commit

Permalink
kbuild: do not run depmod for 'make modules_sign'
Browse files Browse the repository at this point in the history
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 <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
  • Loading branch information
masahir0y committed Aug 29, 2023
1 parent ed79c34 commit 2429742
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2429742

Please sign in to comment.