]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kbuild: tar-pkg: enable communication with jobserver
authorTrevor Bourget <tgb.kernel@gmail.com>
Mon, 27 May 2019 23:54:23 +0000 (16:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:34:51 +0000 (11:34 +0800)
[ Upstream commit a6e0487709ded7cd1ba0c390d9771e5cb76a8453 ]

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>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/package/Makefile

index 2c6de21e5152932dbb463b0c508d18d0c1bac3ee..fd854439de0fd19160548d4cf5c5b924a2a4986b 100644 (file)
@@ -103,7 +103,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/