summaryrefslogtreecommitdiffstats
path: root/power-x86-destdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'power-x86-destdir.patch')
-rw-r--r--power-x86-destdir.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/power-x86-destdir.patch b/power-x86-destdir.patch
new file mode 100644
index 000000000..5fb48ac13
--- /dev/null
+++ b/power-x86-destdir.patch
@@ -0,0 +1,34 @@
+diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
+index fd8e1f1..7af5e8c 100644
+--- a/tools/power/x86/turbostat/Makefile
++++ b/tools/power/x86/turbostat/Makefile
+@@ -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
+diff --git a/tools/power/x86/x86_energy_perf_policy/Makefile b/tools/power/x86/x86_energy_perf_policy/Makefile
+index f458237..f9824f0 100644
+--- a/tools/power/x86/x86_energy_perf_policy/Makefile
++++ b/tools/power/x86/x86_energy_perf_policy/Makefile
+@@ -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/