[Intel-gfx] [PATCH] Add jobserver flag (+) to deb-pkg build commands

Dave Gordon david.s.gordon at intel.com
Mon Jan 12 10:14:50 PST 2015


On 09/01/15 16:14, Gordon, David S wrote:
> This gets rid of some annoying warnings and allows GNU make to parallelise more
> parts of a deb-pkg build. The message is ...
> 
> make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
> 
> ... so I've added the '+' as suggested.
> 
> Signed-off-by: Dave Gordon <david.s.gordon at intel.com>
> ---
>  scripts/package/Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/package/Makefile b/scripts/package/Makefile
> index 99ca6e7..0dbfae7 100644
> --- a/scripts/package/Makefile
> +++ b/scripts/package/Makefile
> @@ -88,7 +88,7 @@ quiet_cmd_builddeb = BUILDDEB
>  
>  deb-pkg: FORCE
>  	$(MAKE) KBUILD_SRC=
> -	$(call cmd,builddeb)
> +	+$(call cmd,builddeb)
>  
>  clean-dirs += $(objtree)/debian/

FYI: this speeds up the deb-pkg part of the build by ~10% on my desktop
machine (8-core i7) when using my usual "-j16" option (rule-of-thumb: 2
jobs per core). YMMV; it should be an even bigger win on more parallel
machines, as without it all the targets within deb-pkg are run serially.

.Dave.



More information about the Intel-gfx mailing list