summaryrefslogtreecommitdiff
path: root/community/linux-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/linux-tools/PKGBUILD')
-rw-r--r--community/linux-tools/PKGBUILD22
1 files changed, 18 insertions, 4 deletions
diff --git a/community/linux-tools/PKGBUILD b/community/linux-tools/PKGBUILD
index b44f8cf38..a8e7f2941 100644
--- a/community/linux-tools/PKGBUILD
+++ b/community/linux-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 71747 2012-06-02 10:29:22Z bluewind $
+# $Id: PKGBUILD 73035 2012-06-28 19:07:34Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
pkgbase=linux-tools
-pkgname=('perf' 'cpupower')
+pkgname=('perf' 'cpupower' 'x86_energy_perf_policy')
pkgver=3.4
-pkgrel=2
+pkgrel=3
license=('GPL2')
arch=('i686' 'x86_64')
url='http://www.kernel.org'
@@ -41,10 +41,16 @@ build() {
popd
msg2 'Build cpupower'
- cd linux-$pkgver/tools/power/cpupower
+ pushd linux-$pkgver/tools/power/cpupower
# we cannot use --as-needed
LDFLAGS=${LDFLAGS:+"$LDFLAGS,--no-as-needed"}
make VERSION=$pkgver-$pkgrel
+ popd
+
+ msg2 'Build x86_energy_perf_policy'
+ pushd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
+ make
+ popd
}
package_perf() {
@@ -80,4 +86,12 @@ package_cpupower() {
install -D -m 644 cpupower.service "$pkgdir/usr/lib/systemd/system/cpupower.service"
}
+package_x86_energy_perf_policy() {
+ pkgdesc='Read or write MSR_IA32_ENERGY_PERF_BIAS'
+
+ cd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
+ install -D -m 755 x86_energy_perf_policy "$pkgdir/usr/bin/x86_energy_perf_policy"
+ install -D -m 644 x86_energy_perf_policy.8 "$pkgdir/usr/share/man/man8/x86_energy_perf_policy.8"
+}
+
# vim:set ts=2 sw=2 ft=sh et: