summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-29 03:19:21 +0000
committerroot <root@rshg054.dnsready.net>2012-06-29 03:19:21 +0000
commita9811800fb65ca331655a1bbe22e67e7564099f8 (patch)
treea5504c1d4f8cfbdd5849e602110adbabef234393 /libre/linux-libre-tools
parenteb4c1f17fe6790f814a67378ed66bddbb93def96 (diff)
Fri Jun 29 03:19:21 UTC 2012
Diffstat (limited to 'libre/linux-libre-tools')
-rw-r--r--libre/linux-libre-tools/PKGBUILD28
1 files changed, 22 insertions, 6 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index b7dc50f94..083cce961 100644
--- a/libre/linux-libre-tools/PKGBUILD
+++ b/libre/linux-libre-tools/PKGBUILD
@@ -1,15 +1,15 @@
# $Id$
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
-# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
pkgbase=linux-libre-tools
-_pkgname=('perf' 'cpupower')
-pkgname=('perf-libre' 'cpupower-libre')
+_pkgname=('perf' 'cpupower' 'x86_energy_perf_policy')
+pkgname=('perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre')
_basekernel=3.4
#_sublevel=1
#pkgver=${_basekernel}.${_sublevel}
pkgver=${_basekernel}
-pkgrel=2
+pkgrel=3
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
url='http://linux-libre.fsfla.org/'
@@ -34,7 +34,6 @@ build() {
patch -Np1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu"
fi
- cd ${srcdir}
msg2 'Build perf'
pushd linux-$pkgver/tools/perf
make \
@@ -47,10 +46,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-libre() {
@@ -91,4 +96,15 @@ package_cpupower-libre() {
install -D -m 644 cpupower.service "$pkgdir/usr/lib/systemd/system/cpupower.service"
}
+package_x86_energy_perf_policy-libre() {
+ pkgdesc='Read or write MSR_IA32_ENERGY_PERF_BIAS'
+ replaces=('x86_energy_perf_policy')
+ conflicts=('x86_energy_perf_policy')
+ provides=("x86_energy_perf_policy=$pkgver")
+
+ 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: