aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2014-08-25 10:55:52 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-09-17 16:08:08 -0400
commit6997af72e6c1e9d8c1cc511dc9485e9ee69a5e20 (patch)
treeb9edb27fe8a0f81cd17784986c6a1bf437a3c2f6
parent1f3e5b55035549311e42c3f84007e6c799ed991f (diff)
perf tools: Allow to specify lib compile variable for spec usage
We need a way to specify $(lib) part of the installation path for traceevent plugin libraries. Currently we use 'lib64' for x86_64 and 'lib' otherwise. Instead of listing all possible values, this change allows the rpm spec code to specify the correct $(lib) part based on processed architecture, like $ make ... lib=%{_lib} Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Kyle McMartin <kyle@mcmartin.ca> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1408978552-17131-1-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/config/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 98c9fd174e98..58f609198c6d 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -653,11 +653,13 @@ else
653sysconfdir = $(prefix)/etc 653sysconfdir = $(prefix)/etc
654ETC_PERFCONFIG = etc/perfconfig 654ETC_PERFCONFIG = etc/perfconfig
655endif 655endif
656ifndef lib
656ifeq ($(IS_X86_64),1) 657ifeq ($(IS_X86_64),1)
657lib = lib64 658lib = lib64
658else 659else
659lib = lib 660lib = lib
660endif 661endif
662endif # lib
661libdir = $(prefix)/$(lib) 663libdir = $(prefix)/$(lib)
662 664
663# Shell quote (do not use $(call) to accommodate ancient setups); 665# Shell quote (do not use $(call) to accommodate ancient setups);