aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2013-11-01 09:51:31 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-11-04 10:20:45 -0500
commit28e962b9d79f496f214d7fc8ffd1a3f2a67e9090 (patch)
tree8a60fa9a7f8897ff2750692b3b6b09450e9b9f8b /tools/perf
parent7ea95727af571d592c9d6aa7627690d44b114a2d (diff)
perf tools: Fix 32-bit cross build
Setting EXTRA_CFLAGS=-m32 did not work because it was not passed around. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1383313899-15987-4-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Makefile.perf2
-rw-r--r--tools/perf/config/Makefile4
-rw-r--r--tools/perf/config/feature-checks/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index cb52bdb755c7..5b8639025aae 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -711,7 +711,7 @@ $(LIB_FILE): $(LIB_OBJS)
711TE_SOURCES = $(wildcard $(TRACE_EVENT_DIR)*.[ch]) 711TE_SOURCES = $(wildcard $(TRACE_EVENT_DIR)*.[ch])
712 712
713$(LIBTRACEEVENT): $(TE_SOURCES) 713$(LIBTRACEEVENT): $(TE_SOURCES)
714 $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a 714 $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) CFLAGS="-g -Wall $(EXTRA_CFLAGS)" libtraceevent.a
715 715
716$(LIBTRACEEVENT)-clean: 716$(LIBTRACEEVENT)-clean:
717 $(call QUIET_CLEAN, libtraceevent) 717 $(call QUIET_CLEAN, libtraceevent)
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 543aa953bab1..2f1d7d78f744 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -96,7 +96,7 @@ endif
96 96
97feature_check = $(eval $(feature_check_code)) 97feature_check = $(eval $(feature_check_code))
98define feature_check_code 98define feature_check_code
99 feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) LDFLAGS=$(LDFLAGS) -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0) 99 feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0)
100endef 100endef
101 101
102feature_set = $(eval $(feature_set_code)) 102feature_set = $(eval $(feature_set_code))
@@ -173,7 +173,7 @@ ifeq ($(feature-all), 1)
173 # 173 #
174 $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_set,$(feat))) 174 $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_set,$(feat)))
175else 175else
176 $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(CORE_FEATURE_TESTS) >/dev/null 2>&1) 176 $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(CORE_FEATURE_TESTS) >/dev/null 2>&1)
177 $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_check,$(feat))) 177 $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_check,$(feat)))
178endif 178endif
179 179
diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile
index 452b67cc4d7b..353c00cde4d6 100644
--- a/tools/perf/config/feature-checks/Makefile
+++ b/tools/perf/config/feature-checks/Makefile
@@ -31,7 +31,7 @@ CC := $(CC) -MD
31 31
32all: $(FILES) 32all: $(FILES)
33 33
34BUILD = $(CC) $(LDFLAGS) -o $(OUTPUT)$@ $@.c 34BUILD = $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTPUT)$@ $@.c
35 35
36############################### 36###############################
37 37