Skip to content

Commit 7f37181

Browse files
committed
kbuild: move 'PHONY += modules_prepare' to the common part
Unify the code between in-tree builds and external module builds. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent f110e5a commit 7f37181

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,6 @@ modules.order: $(subdir-modorder) FORCE
14411441
targets += modules.order
14421442

14431443
# Target to prepare building external modules
1444-
PHONY += modules_prepare
14451444
modules_prepare: prepare
14461445
$(Q)$(MAKE) $(build)=scripts scripts/module.lds
14471446

@@ -1742,15 +1741,12 @@ help:
17421741
@echo ' clean - remove generated files in module directory only'
17431742
@echo ''
17441743

1745-
# no-op for external module builds
1746-
PHONY += modules_prepare
1747-
17481744
endif # KBUILD_EXTMOD
17491745

17501746
# ---------------------------------------------------------------------------
17511747
# Modules
17521748

1753-
PHONY += modules modules_install
1749+
PHONY += modules modules_install modules_prepare
17541750

17551751
ifdef CONFIG_MODULES
17561752

0 commit comments

Comments
 (0)