Skip to content

Commit 55f1f54

Browse files
jwboyerlenb
authored andcommitted
tools: Allow tools to be installed in a user specified location
When building x86_energy_perf_policy or turbostat within the confines of a packaging system such as RPM, we need to be able to have it install to the buildroot and not the root filesystem of the build machine. This adds a DESTDIR variable that when set will act as a prefix for the install location of these tools. Signed-off-by: Josh Boyer <jwboyer@redhat.com> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent ee0778a commit 55f1f54

File tree

1 file changed

+4
-2
lines changed
  • tools/power/x86/x86_energy_perf_policy

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
DESTDIR ?=
2+
13
x86_energy_perf_policy : x86_energy_perf_policy.c
24

35
clean :
46
rm -f x86_energy_perf_policy
57

68
install :
7-
install x86_energy_perf_policy /usr/bin/
8-
install x86_energy_perf_policy.8 /usr/share/man/man8/
9+
install x86_energy_perf_policy ${DESTDIR}/usr/bin/
10+
install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/

0 commit comments

Comments
 (0)