summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-tools/PKGBUILD')
-rw-r--r--libre/linux-libre-tools/PKGBUILD32
1 files changed, 24 insertions, 8 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index b7dc50f94..def346093 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/'
@@ -28,13 +28,12 @@ md5sums=('a5e128ca059cceb8b69148b41ff4ac6f'
'20870541e88109d2f153be3c58a277f1')
build() {
- cd "${srcdir}/linux-${_basekernel}"
-
+ # apply stable patching set
if [ "${_basekernel}" != "${pkgver}" ]; then
+ msg2 'Applying stable patch set'
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: