I believe the correct thing to do is modify debian/rules.d/2-binary-arch.mk
Add DESTDIR=/usr to the make invocation.
This may have more consequences beyond fixing the use of HOME in the resulting binary, however.
$(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) 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 endif @touch $@
I believe the correct thing to do is modify debian/ rules.d/ 2-binary- arch.mk
Add DESTDIR=/usr to the make invocation.
This may have more consequences beyond fixing the use of HOME in the resulting binary, however.
$(stampdir) /stamp- build-perarch: $(stampdir) /stamp- prepare- perarch perf),true) /tools/ perf && \
make HAVE_CPLUS_ DEMANGLE= 1 CROSS_COMPILE= $(CROSS_ COMPILE) NO_LIBPYTHON=1 NO_LIBPERL=1 PYTHON=python2.7 /tools/ power/x86/ x86_energy_ perf_policy && make CROSS_COMPILE= $(CROSS_ COMPILE) ; \ /tools/ power/x86/ turbostat && make CROSS_COMPILE= $(CROSS_ COMPILE) ; \
cd $(builddirpa) /tools/ hv && make CROSS_COMPILE= $(CROSS_ COMPILE) ; \
@echo Debug: $@
ifeq ($(do_tools),true)
ifeq ($(do_tools_
cd $(builddirpa)
endif
if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
cd $(builddirpa)
cd $(builddirpa)
if [ "$(do_hyperv)" = "true" ]; then \
fi; \
fi
endif
@touch $@