Skip to content

Commit

Permalink
kbuild: fix single target builds for external modules
Browse files Browse the repository at this point in the history
Commit f566e1f ("kbuild: make multiple directory targets work")
broke single target builds for external modules. Fix this.

Fixes: f566e1f ("kbuild: make multiple directory targets work")
Reported-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Bjørn Mork <bjorn@mork.no>
  • Loading branch information
Masahiro Yamada committed Jul 11, 2020
1 parent 736bb11 commit 20b1be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ PHONY += descend $(build-dirs)
descend: $(build-dirs)
$(build-dirs): prepare
$(Q)$(MAKE) $(build)=$@ \
single-build=$(if $(filter-out $@/, $(filter $@/%, $(single-no-ko))),1) \
single-build=$(if $(filter-out $@/, $(filter $@/%, $(KBUILD_SINGLE_TARGETS))),1) \
need-builtin=1 need-modorder=1

clean-dirs := $(addprefix _clean_, $(clean-dirs))
Expand Down

0 comments on commit 20b1be5

Please sign in to comment.