Commit df06ef94 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [debian] Add macro to selectively disable building perf

Fixes FTBS until libaudit-dev is promoted to main.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 6c987510
......@@ -441,8 +441,10 @@ endif
$(stampdir)/stamp-build-perarch: $(stampdir)/stamp-prepare-perarch
@echo Debug: $@
ifeq ($(do_tools),true)
ifeq ($(do_tools_perf),true)
cd $(builddirpa)/tools/perf && \
make HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE)
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); \
......@@ -459,8 +461,10 @@ install-perarch: $(stampdir)/stamp-build-perarch
# Add the tools.
ifeq ($(do_tools),true)
install -d $(toolspkgdir)/usr/bin
ifeq ($(do_tools_perf),true)
install -s -m755 $(builddirpa)/tools/perf/perf \
$(toolspkgdir)/usr/bin/perf_$(abi_release)
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
install -s -m755 $(builddirpa)/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy \
$(toolspkgdir)/usr/bin/x86_energy_perf_policy_$(abi_release); \
......
......@@ -92,7 +92,9 @@ ifeq ($(do_tools),true)
install -d $(toolsbin)
install -d $(toolsman)/man1
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; \
......@@ -108,9 +110,11 @@ ifeq ($(do_tools),true)
rm $(builddir)/tools/tools
rsync -a tools/ $(builddir)/tools/tools/
ifeq ($(do_tools_perf),true)
cd $(builddir)/tools/tools/perf && make man
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; \
......
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