Skip to content

Commit a50e433

Browse files
suryasaimadhuacmel
authored andcommitted
perf tools: Honor parallel jobs
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]>
1 parent fed1208 commit a50e433

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,11 +1331,11 @@ kernelversion:
13311331
# Clear a bunch of variables before executing the submake
13321332
tools/: FORCE
13331333
$(Q)mkdir -p $(objtree)/tools
1334-
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/
1334+
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/
13351335

13361336
tools/%: FORCE
13371337
$(Q)mkdir -p $(objtree)/tools
1338-
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/ $*
1338+
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/ $*
13391339

13401340
# Single targets
13411341
# ---------------------------------------------------------------------------

tools/scripts/Makefile.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ifndef V
7070
QUIET_BISON = @echo ' ' BISON $@;
7171

7272
descend = \
73-
@echo ' ' DESCEND $(1); \
73+
+@echo ' ' DESCEND $(1); \
7474
mkdir -p $(OUTPUT)$(1) && \
7575
$(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
7676
endif

0 commit comments

Comments
 (0)