diff options
author | Isaac David <isacdaavid@isacdaavid.info> | 2017-01-05 16:35:13 -0600 |
---|---|---|
committer | Isaac David <isacdaavid@isacdaavid.info> | 2017-01-05 16:35:13 -0600 |
commit | d523fe379ade485a385b5404d3f447f095ad6e6f (patch) | |
tree | 4db7ed882a54815ff0e31efc3df44cbb1538b986 /libre/linux-libre-tools/PKGBUILD | |
parent | a17eebe31e294bf0d43b0338fe5227c0095a30af (diff) | |
download | abslibre-d523fe379ade485a385b5404d3f447f095ad6e6f.tar.gz abslibre-d523fe379ade485a385b5404d3f447f095ad6e6f.tar.bz2 abslibre-d523fe379ade485a385b5404d3f447f095ad6e6f.zip |
linux-libre-tools: port to armv7h
Diffstat (limited to 'libre/linux-libre-tools/PKGBUILD')
-rw-r--r-- | libre/linux-libre-tools/PKGBUILD | 38 |
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() { |