Commit 0266466f authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] tools: enable x86 and hyper-v

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent be07eac4
......@@ -462,13 +462,13 @@ ifeq ($(do_tools_perf),true)
cd $(builddirpa)/tools/perf && \
make prefix=/usr HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE) NO_LIBPYTHON=1 NO_LIBPERL=1 PYTHON=python2.7
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
cd $(builddirpa)/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE); \
cd $(builddirpa)/tools/power/x86/turbostat && make CROSS_COMPILE=$(CROSS_COMPILE); \
if [ "$(do_hyperv)" = "true" ]; then \
cd $(builddirpa)/tools/hv && make CROSS_COMPILE=$(CROSS_COMPILE); \
fi; \
fi
ifeq ($(do_tools_x86),true)
cd $(builddirpa)/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE)
cd $(builddirpa)/tools/power/x86/turbostat && make CROSS_COMPILE=$(CROSS_COMPILE)
endif
ifeq ($(do_tools_hyperv),true)
cd $(builddirpa)/tools/hv && make CROSS_COMPILE=$(CROSS_COMPILE)
endif
endif
@touch $@
......@@ -482,17 +482,17 @@ ifeq ($(do_tools_perf),true)
install -m755 $(builddirpa)/tools/perf/perf \
$(toolspkgdir)/usr/bin/perf_$(abi_release)
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
ifeq ($(do_tools_x86),true)
install -m755 $(builddirpa)/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy \
$(toolspkgdir)/usr/bin/x86_energy_perf_policy_$(abi_release); \
$(toolspkgdir)/usr/bin/x86_energy_perf_policy_$(abi_release)
install -m755 $(builddirpa)/tools/power/x86/turbostat/turbostat \
$(toolspkgdir)/usr/bin/turbostat_$(abi_release); \
if [ "$(do_hyperv)" = "true" ]; then \
install -d $(toolspkgdir)/usr/sbin; \
$(toolspkgdir)/usr/bin/turbostat_$(abi_release)
endif
ifeq ($(do_tools_hyperv),true)
install -d $(toolspkgdir)/usr/sbin
install -m755 $(builddirpa)/tools/hv/hv_kvp_daemon \
$(toolspkgdir)/usr/sbin/hv_kvp_daemon_$(abi_release); \
fi; \
fi
$(toolspkgdir)/usr/sbin/hv_kvp_daemon_$(abi_release)
endif
endif
binary-perarch: toolspkg = $(tools_pkg_name)
......
......@@ -95,14 +95,14 @@ ifeq ($(do_tools),true)
ifeq ($(do_tools_perf),true)
install -m755 debian/tools/perf $(toolsbin)/perf
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
install -m755 debian/tools/x86_energy_perf_policy $(toolsbin)/x86_energy_perf_policy; \
install -m755 debian/tools/turbostat $(toolsbin)/turbostat; \
if [ "$(do_hyperv)" = "true" ]; then \
install -d $(toolssbin) ; \
install -m755 debian/tools/generic $(toolssbin)/hv_kvp_daemon; \
fi; \
fi
ifeq ($(do_tools_x86),true)
install -m755 debian/tools/x86_energy_perf_policy $(toolsbin)/x86_energy_perf_policy
install -m755 debian/tools/turbostat $(toolsbin)/turbostat
endif
ifeq ($(do_tools_hyperv),true)
install -d $(toolssbin)
install -m755 debian/tools/generic $(toolssbin)/hv_kvp_daemon
endif
rm -rf $(builddir)/tools
install -d $(builddir)/tools
......@@ -115,14 +115,14 @@ ifeq ($(do_tools_perf),true)
install -m644 $(builddir)/tools/tools/perf/Documentation/*.1 \
$(toolsman)/man1
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
install -d $(toolsman)/man8; \
install -m644 $(CURDIR)/tools/power/x86/x86_energy_perf_policy/*.8 $(toolsman)/man8; \
install -m644 $(CURDIR)/tools/power/x86/turbostat/*.8 $(toolsman)/man8; \
if [ "$(do_hyperv)" = "true" ]; then \
install -m644 $(CURDIR)/tools/hv/*.8 $(toolsman)/man8; \
fi; \
fi
ifeq ($(do_tools_x86),true)
install -d $(toolsman)/man8
install -m644 $(CURDIR)/tools/power/x86/x86_energy_perf_policy/*.8 $(toolsman)/man8
install -m644 $(CURDIR)/tools/power/x86/turbostat/*.8 $(toolsman)/man8
endif
ifeq ($(do_tools_hyperv),true)
install -m644 $(CURDIR)/tools/hv/*.8 $(toolsman)/man8
endif
endif
install-indep: install-tools
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment