aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-12-11 05:12:34 -0500
committerMichal Marek <mmarek@suse.cz>2015-01-08 09:05:28 -0500
commitd0d38cd9e853db11e0242b3df4c9c3c4a663fbb4 (patch)
treee59c6adeb9b4ecebc55ac7c2f3f234d8bb0140bf /Makefile
parent343d3e6cc861297fc837e5b5274084751307f790 (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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1c3254441f3..dd3ecc0fb8e7 100644
--- a/Makefile
+++ b/Makefile
@@ -501,7 +501,7 @@ endif
501ifeq ($(KBUILD_EXTMOD),) 501ifeq ($(KBUILD_EXTMOD),)
502 ifneq ($(filter config %config,$(MAKECMDGOALS)),) 502 ifneq ($(filter config %config,$(MAKECMDGOALS)),)
503 config-targets := 1 503 config-targets := 1
504 ifneq ($(filter-out config %config,$(MAKECMDGOALS)),) 504 ifneq ($(words $(MAKECMDGOALS)),1)
505 mixed-targets := 1 505 mixed-targets := 1
506 endif 506 endif
507 endif 507 endif