aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-12-11 19:12:34 +0900
committerMoyster <oysterized@gmail.com>2018-11-29 16:57:57 +0100
commited7222dac7ce30475d682aceaee499a751740d9c (patch)
tree17a86ff49594e0a9374011395dfac0d587a2a5a2
parent6893f52f535bbe6af0c6c84a804a9850cc43ef26 (diff)
kbuild: use mixed-targets when two or more config targets are given
"make kvmconfig" expects that the .config has already been created, but some people might want to create the .config and run kvmconfig in one shot command, like this: $ make defconfig kvmconfig To make sure this command works correctly even if -j* option is set, we must handle them one by one. This commit turns on mixed-targets when $(MAKECMDGOALS) includes at least one config target and also includes another target. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5462bfa40..93bc9243e 100644
--- a/Makefile
+++ b/Makefile
@@ -487,7 +487,7 @@ endif
ifeq ($(KBUILD_EXTMOD),)
ifneq ($(filter config %config,$(MAKECMDGOALS)),)
config-targets := 1
- ifneq ($(filter-out config %config,$(MAKECMDGOALS)),)
+ ifneq ($(words $(MAKECMDGOALS)),1)
mixed-targets := 1
endif
endif