tools/power/x86: Configurable installs for turbostat and x86_energy_perf_policy
PATCH 1/1 tools/power/x86: Configurable installs for turbostat and x86_energy_perf_policy
Allow turbostat and x86_energy_perf_policy to be installed to a user configurable directory. This allows non-root installation as well as makes it easier to include these tools from a packaging perspective.
Signed-off-by Josh Boyer <[email protected]>
--- tools/power/x86/turbostat/Makefile | 6 ++++-- tools/power/x86/x86_energy_perf_policy/Makefile | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-)
tools/power/x86/turbostat/Makefile +4 -2
@@ -1,8 +1,10 @@ +DESTDIR ?= + turbostat : turbostat.c clean : rm -f turbostat install : - install turbostat /usr/bin/turbostat - install turbostat.8 /usr/share/man/man8 + install turbostat ${DESTDIR}/usr/bin/turbostat + install turbostat.8 ${DESTDIR}/usr/share/man/man8
tools/power/x86/x86_energy_perf_policy/Makefile +4 -2
@@ -1,8 +1,10 @@ +DESTDIR ?= + x86_energy_perf_policy : x86_energy_perf_policy.c clean : rm -f x86_energy_perf_policy install : - install x86_energy_perf_policy /usr/bin/ - install x86_energy_perf_policy.8 /usr/share/man/man8/ + install x86_energy_perf_policy ${DESTDIR}/usr/bin/ + install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/
Signature · 1 line
1.7.7.6