summaryrefslogtreecommitdiff
path: root/community/linux-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-30 00:01:49 +0000
committerroot <root@rshg054.dnsready.net>2012-06-30 00:01:49 +0000
commitff31f6558b911e924318b059516075f6413c5d8b (patch)
treec60e837c5e5c8e10b9f367152621091c714e4ea7 /community/linux-tools
parenta9811800fb65ca331655a1bbe22e67e7564099f8 (diff)
Sat Jun 30 00:01:49 UTC 2012
Diffstat (limited to 'community/linux-tools')
-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: