Skip to content

Commit

Permalink
kbuild: move 'PHONY += modules_prepare' to the common part
Browse files Browse the repository at this point in the history
Unify the code between in-tree builds and external module builds.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Masahiro Yamada committed Sep 28, 2022
1 parent f110e5a commit 7f37181
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,6 @@ modules.order: $(subdir-modorder) FORCE
targets += modules.order

# Target to prepare building external modules
PHONY += modules_prepare
modules_prepare: prepare
$(Q)$(MAKE) $(build)=scripts scripts/module.lds

Expand Down Expand Up @@ -1742,15 +1741,12 @@ help:
@echo ' clean - remove generated files in module directory only'
@echo ''

# no-op for external module builds
PHONY += modules_prepare

endif # KBUILD_EXTMOD

# ---------------------------------------------------------------------------
# Modules

PHONY += modules modules_install
PHONY += modules modules_install modules_prepare

ifdef CONFIG_MODULES

Expand Down

0 comments on commit 7f37181

Please sign in to comment.