From 21908030c30d5cfc239898b459a1bf4ff683a844 Mon Sep 17 00:00:00 2001 From: John Rigby Date: Sun, 25 Sep 2011 21:47:58 -0600 Subject: LINARO: fix cross compiling of tools Signed-off-by: John Rigby --- debian/rules.d/2-binary-arch.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 56bf93773aa..6b179d71161 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -349,7 +349,12 @@ endif $(stampdir)/stamp-build-perarch: prepare-perarch ifeq ($(do_tools),true) - cd $(builddir)/tools-$*/tools/perf && make + cd $(builddir)/tools/tools/perf && \ + make HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE) $(conc_level) + if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \ + cd $(builddir)/tools/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE); \ + cd $(builddir)/tools/tools/power/x86/turbostat && make CROSS_COMPILE=$(CROSS_COMPILE); \ + fi endif @touch $@ -- cgit v1.2.3