From a9811800fb65ca331655a1bbe22e67e7564099f8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 Jun 2012 03:19:21 +0000 Subject: Fri Jun 29 03:19:21 UTC 2012 --- libre/linux-libre-tools/PKGBUILD | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'libre/linux-libre-tools') 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 -# Maintainer (Parabola): André Silva +# Maintainer (Parabola): André Silva 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: -- cgit v1.2.3-54-g00ecf