* [PATCH] kbuild: use mixed-targets when two or more config targets are given
@ 2014-12-11 10:12 Masahiro Yamada
2015-01-08 14:06 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2014-12-11 10:12 UTC (permalink / raw)
To: linux-kbuild; +Cc: Masahiro Yamada, Michal Marek, linux-kernel
"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>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d9af2be..3272609 100644
--- a/Makefile
+++ b/Makefile
@@ -500,7 +500,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
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kbuild: use mixed-targets when two or more config targets are given
2014-12-11 10:12 [PATCH] kbuild: use mixed-targets when two or more config targets are given Masahiro Yamada
@ 2015-01-08 14:06 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2015-01-08 14:06 UTC (permalink / raw)
To: Masahiro Yamada, linux-kbuild; +Cc: linux-kernel
On 2014-12-11 11:12, Masahiro Yamada wrote:
> "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>
Applied to kbuild.git#kbuild, thanks.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-08 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-11 10:12 [PATCH] kbuild: use mixed-targets when two or more config targets are given Masahiro Yamada
2015-01-08 14:06 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).