summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-tools')
-rw-r--r--libre/linux-libre-tools/PKGBUILD38
1 files changed, 25 insertions, 13 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index 21742645e..fbfb2c5ad 100644
--- a/libre/linux-libre-tools/PKGBUILD
+++ b/libre/linux-libre-tools/PKGBUILD
@@ -11,10 +11,16 @@ _pkgname=(
'libtraceevent'
'perf'
'tmon'
- 'turbostat'
'usbip'
- 'x86_energy_perf_policy'
)
+case "$CARCH" in
+ x86_64|i686)
+ _pkgname+=(
+ 'turbostat'
+ 'x86_energy_perf_policy'
+ )
+ ;;
+esac
pkgname=("${pkgbase}-meta" "${_pkgname[@]/#/${pkgbase}-}")
_pkgbasever=4.9-gnu
@@ -25,14 +31,16 @@ _archpkgver=${_pkgver%-*}
pkgver=${_pkgver//-/_}
pkgrel=1
license=('GPL2')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
url='https://linux-libre.fsfla.org/'
options=('!strip')
makedepends=('asciidoc' 'xmlto')
# split packages need all package dependencies set manually in makedepends
declare -A _depends
-_depends[perf]='perl python2 libnewt elfutils libunwind numactl audit'
+_depends[perf]='perl python2 libnewt elfutils libunwind audit'
+makedepends_i686=('numactl') # also perf's
+makedepends_x86_64=('numactl')
_depends[cpupower]='pciutils'
_depends[usbip]='glib2 sysfsutils libsystemd'
makedepends+=(systemd) # libsystemd for runtime, systemd for make. IDK, it's what Arch does
@@ -93,11 +101,6 @@ build() {
make VERSION=$pkgver-$pkgrel
popd
- msg2 'x86_energy_perf_policy'
- pushd $_srcname/tools/power/x86/x86_energy_perf_policy
- make
- popd
-
msg2 'usbip'
pushd $_srcname/tools/usb/usbip
./autogen.sh
@@ -115,10 +118,19 @@ build() {
make
popd
- msg2 'turbostat'
- pushd $_srcname/tools/power/x86/turbostat
- make
- popd
+ case "$CARCH" in
+ x86_64|i686)
+ msg2 'x86_energy_perf_policy'
+ pushd $_srcname/tools/power/x86/x86_energy_perf_policy
+ make
+ popd
+
+ msg2 'turbostat'
+ pushd $_srcname/tools/power/x86/turbostat
+ make
+ popd
+ ;;
+ esac
}
_package_meta() {