[tip:perf/core] perf build: Add arch arm objects building

From: tip-bot for Jiri Olsa
Date: Wed Feb 18 2015 - 13:39:45 EST


Commit-ID: f6ff0e6d7bf41e8464b4a50ba48e0e1502ef8438
Gitweb: http://git.kernel.org/tip/f6ff0e6d7bf41e8464b4a50ba48e0e1502ef8438
Author: Jiri Olsa <jolsa@xxxxxxxxxx>
AuthorDate: Tue, 30 Dec 2014 14:07:04 +0100
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitDate: Thu, 12 Feb 2015 13:13:01 -0300

perf build: Add arch arm objects building

Move the arm arch objects building under build framework to be included
in the libperf build object.

Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Tested-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx>
Tested-by: Will Deacon <will.deacon@xxxxxxx>
Cc: Alexis Berlemont <alexis.berlemont@xxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxxxx>
Cc: Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx>
Cc: David Ahern <dsahern@xxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Stephane Eranian <eranian@xxxxxxxxxx>
Link: http://lkml.kernel.org/n/tip-7bxhmeh4bjabqsmxu4gl6p0b@xxxxxxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/arch/arm/Build | 2 ++
tools/perf/arch/arm/Makefile | 11 -----------
tools/perf/arch/{x86 => arm}/tests/Build | 0
tools/perf/arch/{x86 => arm}/util/Build | 4 ----
4 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/tools/perf/arch/arm/Build b/tools/perf/arch/arm/Build
index e69de29..41bf61d 100644
--- a/tools/perf/arch/arm/Build
+++ b/tools/perf/arch/arm/Build
@@ -0,0 +1,2 @@
+libperf-y += util/
+libperf-$(CONFIG_DWARF_UNWIND) += tests/
diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile
index 09d6215..7fbca17 100644
--- a/tools/perf/arch/arm/Makefile
+++ b/tools/perf/arch/arm/Makefile
@@ -1,14 +1,3 @@
ifndef NO_DWARF
PERF_HAVE_DWARF_REGS := 1
-LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o
-endif
-ifndef NO_LIBUNWIND
-LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind-libunwind.o
-endif
-ifndef NO_LIBDW_DWARF_UNWIND
-LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind-libdw.o
-endif
-ifndef NO_DWARF_UNWIND
-LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/regs_load.o
-LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/dwarf-unwind.o
endif
diff --git a/tools/perf/arch/x86/tests/Build b/tools/perf/arch/arm/tests/Build
similarity index 100%
copy from tools/perf/arch/x86/tests/Build
copy to tools/perf/arch/arm/tests/Build
diff --git a/tools/perf/arch/x86/util/Build b/tools/perf/arch/arm/util/Build
similarity index 70%
copy from tools/perf/arch/x86/util/Build
copy to tools/perf/arch/arm/util/Build
index cfbccc4..d22e3d0 100644
--- a/tools/perf/arch/x86/util/Build
+++ b/tools/perf/arch/arm/util/Build
@@ -1,7 +1,3 @@
-libperf-y += header.o
-libperf-y += tsc.o
-libperf-y += kvm-stat.o
-
libperf-$(CONFIG_DWARF) += dwarf-regs.o

libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/