mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/linux-tools to 4.13-1
This commit is contained in:
parent
0cfbbf489e
commit
11d87028d5
1 changed files with 28 additions and 13 deletions
|
@ -11,6 +11,7 @@ pkgbase=linux-tools
|
|||
pkgname=(
|
||||
'cgroup_event_listener'
|
||||
'cpupower'
|
||||
'hyperv'
|
||||
'libtraceevent'
|
||||
'linux-tools-meta'
|
||||
'perf'
|
||||
|
@ -19,8 +20,8 @@ pkgname=(
|
|||
'gpio-utils'
|
||||
'iio-utils'
|
||||
)
|
||||
pkgver=4.12
|
||||
pkgrel=3
|
||||
pkgver=4.13
|
||||
pkgrel=1
|
||||
license=('GPL2')
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://www.kernel.org'
|
||||
|
@ -39,14 +40,12 @@ makedepends+=('glib2' 'sysfsutils' 'udev')
|
|||
makedepends+=('ncurses')
|
||||
groups=("$pkgbase")
|
||||
source=("https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver}.tar.xz"
|
||||
'https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-4.12.2.xz'
|
||||
'571299d099dcce0ff32c76e70e32e0ba01e55adc.diff::https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/tools/iio?id=571299d099dcce0ff32c76e70e32e0ba01e55adc'
|
||||
# 'https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-4.12.2.xz'
|
||||
'cpupower.default'
|
||||
'cpupower.systemd'
|
||||
'cpupower.service'
|
||||
'usbipd.service')
|
||||
md5sums=('fc454157e2d024d401a60905d6481c6b'
|
||||
'df72b6950492a79610d443d8992b3293'
|
||||
md5sums=('ab1a2abc6f37b752dd2595338bec4e78'
|
||||
'6c0bdf6ebe33ca5b3ba4ea1a5668051b'
|
||||
'56883c159381ba89e50ab8ea65efec77'
|
||||
'34f5ecc19770a1abbcd0fd65bfd1f065'
|
||||
|
@ -60,19 +59,18 @@ prepare() {
|
|||
# Not sure why this wasn't an issue until now...
|
||||
sed -i '1i #include <errno.h>' tools/perf/arch/x86/util/unwind-libunwind.c
|
||||
|
||||
# apply stable kernel patch
|
||||
#patch -p1 -N -i "$srcdir"/patch-4.7.5
|
||||
|
||||
# apply patch from the source array (should be a pacman feature)
|
||||
local filename
|
||||
for filename in "${source[@]}"; do
|
||||
filename="${filename##*/}"
|
||||
if [[ "$filename" =~ \.patch$ ]]; then
|
||||
msg2 "Applying patch ${filename##*/}"
|
||||
patch -p1 -N -i "$srcdir/${filename##*/}"
|
||||
msg2 "Applying patch $filename"
|
||||
patch -p1 -N -i "$srcdir/$filename"
|
||||
elif [[ "$filename" =~ ^patch- ]]; then
|
||||
msg2 "Applying linux $filename"
|
||||
patch -p1 -N -i "$srcdir/${filename%.*}"
|
||||
fi
|
||||
done
|
||||
# revert breaking commit for IIO utils
|
||||
patch -p1 -Ri ../571299d099dcce0ff32c76e70e32e0ba01e55adc.diff
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -91,6 +89,7 @@ build() {
|
|||
PYTHON=python2 \
|
||||
PYTHON_CONFIG=python2-config \
|
||||
PERF_VERSION=$pkgver-$pkgrel \
|
||||
DESTDIR="$pkgdir" \
|
||||
all man
|
||||
popd
|
||||
|
||||
|
@ -118,6 +117,11 @@ build() {
|
|||
make
|
||||
popd
|
||||
|
||||
msg2 'hv'
|
||||
pushd linux-$pkgver/tools/hv
|
||||
make
|
||||
popd
|
||||
|
||||
msg2 'gpio'
|
||||
pushd linux-$pkgver/tools/gpio
|
||||
make -j1
|
||||
|
@ -135,6 +139,7 @@ package_linux-tools-meta() {
|
|||
depends=(
|
||||
'cgroup_event_listener'
|
||||
'cpupower'
|
||||
'hyperv'
|
||||
'libtraceevent'
|
||||
'perf'
|
||||
'tmon'
|
||||
|
@ -234,6 +239,16 @@ package_cgroup_event_listener() {
|
|||
install -Dm755 cgroup_event_listener "$pkgdir/usr/bin/cgroup_event_listener"
|
||||
}
|
||||
|
||||
package_hyperv() {
|
||||
pkgdesc='Hyper-V tools'
|
||||
depends=('glibc')
|
||||
|
||||
cd linux-$pkgver/tools/hv
|
||||
for _p in hv_fcopy_daemon hv_kvp_daemon hv_vss_daemon; do
|
||||
install -Dm755 "$_p" "$pkgdir/usr/bin/$_p"
|
||||
done
|
||||
}
|
||||
|
||||
package_gpio-utils() {
|
||||
pkgdesc='GPIO character device utilities'
|
||||
depends=('glibc')
|
||||
|
|
Loading…
Reference in a new issue