linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: tar-pkg: enable communication with jobserver
@ 2019-05-27 23:54 Trevor Bourget
  2019-05-28  0:33 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Bourget @ 2019-05-27 23:54 UTC (permalink / raw)
  To: yamada.masahiro; +Cc: linux-kbuild, linux-kernel

The buildtar script might want to invoke a make, so tell the parent
make to pass the jobserver token pipe to the subcommand by prefixing
the command with a +.

This addresses the issue seen here:

	/bin/sh ../scripts/package/buildtar tar-pkg
	make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

See https://www.gnu.org/software/make/manual/html_node/Job-Slots.html
for more information.

Signed-off-by: Trevor Bourget <tgb.kernel@gmail.com>
---
 scripts/package/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 27b42d5b6c4f..ca7f46b562a4 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -104,7 +104,7 @@ clean-dirs += $(objtree)/snap/
 # ---------------------------------------------------------------------------
 tar%pkg: FORCE
 	$(MAKE) -f $(srctree)/Makefile
-	$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
+	+$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
 
 clean-dirs += $(objtree)/tar-install/
 
-- 
2.22.0.rc1.257.g3120a18244-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: tar-pkg: enable communication with jobserver
  2019-05-27 23:54 [PATCH] kbuild: tar-pkg: enable communication with jobserver Trevor Bourget
@ 2019-05-28  0:33 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2019-05-28  0:33 UTC (permalink / raw)
  To: Trevor Bourget; +Cc: Linux Kbuild mailing list, Linux Kernel Mailing List

On Tue, May 28, 2019 at 8:55 AM Trevor Bourget <tgb.kernel@gmail.com> wrote:
>
> The buildtar script might want to invoke a make, so tell the parent
> make to pass the jobserver token pipe to the subcommand by prefixing
> the command with a +.
>
> This addresses the issue seen here:
>
>         /bin/sh ../scripts/package/buildtar tar-pkg
>         make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
>
> See https://www.gnu.org/software/make/manual/html_node/Job-Slots.html
> for more information.
>
> Signed-off-by: Trevor Bourget <tgb.kernel@gmail.com>
> ---

Applied to linux-kbuild/fixes. Thanks.

>  scripts/package/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/Makefile b/scripts/package/Makefile
> index 27b42d5b6c4f..ca7f46b562a4 100644
> --- a/scripts/package/Makefile
> +++ b/scripts/package/Makefile
> @@ -104,7 +104,7 @@ clean-dirs += $(objtree)/snap/
>  # ---------------------------------------------------------------------------
>  tar%pkg: FORCE
>         $(MAKE) -f $(srctree)/Makefile
> -       $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
> +       +$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
>
>  clean-dirs += $(objtree)/tar-install/
>
> --
> 2.22.0.rc1.257.g3120a18244-goog
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-28  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 23:54 [PATCH] kbuild: tar-pkg: enable communication with jobserver Trevor Bourget
2019-05-28  0:33 ` Masahiro Yamada

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).