[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANLJ0sn8HzXRjNjSG+fLPxichO_D0nKxPH=MMuXGPD4K02yLow@mail.gmail.com>
Date: Tue, 26 Aug 2014 09:26:16 -0400
From: Kyle McMartin <kyle@...artin.ca>
To: Jiri Olsa <jolsa@...nel.org>
Cc: linux-kernel@...r.kernel.org, Kyle McMartin <kyle@...artin.ca>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [PATCH] perf tools: Allow to specify lib compile variable for
spec usage
On Mon, Aug 25, 2014 at 10:55 AM, Jiri Olsa <jolsa@...nel.org> wrote:
> 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}
>
> Cc: Kyle McMartin <kyle@...artin.ca>
I had made a similar change to Fedora, which I replaced with this, and
it worked fine.
LGTM :)
Tested-by: Kyle McMartin <kyle@...artin.ca>
> Cc: Arnaldo Carvalho de Melo <acme@...nel.org>
> Cc: Corey Ashford <cjashfor@...ux.vnet.ibm.com>
> Cc: David Ahern <dsahern@...il.com>
> Cc: Frederic Weisbecker <fweisbec@...il.com>
> Cc: Ingo Molnar <mingo@...nel.org>
> Cc: Namhyung Kim <namhyung@...nel.org>
> Cc: Paul Mackerras <paulus@...ba.org>
> Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
> Signed-off-by: Jiri Olsa <jolsa@...nel.org>
> ---
> tools/perf/config/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
> index 75d4c237b03d..eaf36dafb482 100644
> --- a/tools/perf/config/Makefile
> +++ b/tools/perf/config/Makefile
> @@ -651,11 +651,13 @@ else
> sysconfdir = $(prefix)/etc
> ETC_PERFCONFIG = etc/perfconfig
> endif
> +ifndef lib
> ifeq ($(IS_X86_64),1)
> lib = lib64
> else
> lib = lib
> endif
> +endif # lib
> libdir = $(prefix)/$(lib)
>
> # Shell quote (do not use $(call) to accommodate ancient setups);
> --
> 1.8.3.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists