]> Git Repo - linux.git/commitdiff
perf tools: Honor parallel jobs
authorBorislav Petkov <[email protected]>
Wed, 20 Feb 2013 15:32:28 +0000 (16:32 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 15 Mar 2013 16:05:59 +0000 (13:05 -0300)
We need to hand down parallel build options like the internal make
--jobserver-fds one so that parallel builds can also happen when
building perf from the toplevel directory.

Make it so #1!

Signed-off-by: Borislav Petkov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Makefile
tools/scripts/Makefile.include

index 6fccf653177055cb4e250096d33df5eeb21a8671..bbb15dff13bad1c82a3d211948e8004987832b54 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1331,11 +1331,11 @@ kernelversion:
 # Clear a bunch of variables before executing the submake
 tools/: FORCE
        $(Q)mkdir -p $(objtree)/tools
-       $(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/
+       $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/
 
 tools/%: FORCE
        $(Q)mkdir -p $(objtree)/tools
-       $(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/ $*
+       $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/ $*
 
 # Single targets
 # ---------------------------------------------------------------------------
index 2964b96aa55fd350896cd45efc5a9e13538551ad..00a05f45b39aea606c3568d214ef6aa49d86214f 100644 (file)
@@ -70,7 +70,7 @@ ifndef V
        QUIET_BISON    = @echo '   ' BISON $@;
 
        descend = \
-               @echo '   ' DESCEND $(1); \
+               +@echo '   ' DESCEND $(1); \
                mkdir -p $(OUTPUT)$(1) && \
                $(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
 endif
This page took 0.057968 seconds and 4 git commands to generate.