diff options
author | John Rigby <john.rigby@linaro.org> | 2011-09-25 21:47:58 -0600 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2011-12-14 10:21:38 +0000 |
commit | 21908030c30d5cfc239898b459a1bf4ff683a844 (patch) | |
tree | 82c1ca55e1d21f1432ef8a6459d7e6366b59b81d | |
parent | 00d0853950602f86e75e04943b10fa5251c58415 (diff) |
LINARO: fix cross compiling of tools
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r-- | debian/rules.d/2-binary-arch.mk | 7 |
1 files changed, 6 insertions, 1 deletions
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 $@ |