community/linux-tools to 4.20-1

This commit is contained in:
Kevin Mihelich 2019-01-03 02:54:34 +00:00
parent 9216793a4d
commit 16c42517ec

View file

@ -8,6 +8,7 @@
pkgbase=linux-tools
pkgname=(
'bpf'
'cgroup_event_listener'
'cpupower'
'hyperv'
@ -19,7 +20,7 @@ pkgname=(
'gpio-utils'
'iio-utils'
)
pkgver=4.19
pkgver=4.20
pkgrel=1
license=('GPL2')
arch=('x86_64')
@ -44,7 +45,7 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver}.tar.xz"
'cpupower.systemd'
'cpupower.service'
'usbipd.service')
md5sums=('bee5fe53ee1c3142b8f0c12c0d3348f9'
md5sums=('d39dd4ba2d5861c54b90d49be19eaf31'
'56883c159381ba89e50ab8ea65efec77'
'34f5ecc19770a1abbcd0fd65bfd1f065'
'86c4e419e4ba80835c330d49ba3f56ad'
@ -123,12 +124,22 @@ build() {
pushd linux-$pkgver/tools/iio
make
popd
msg2 'bpf'
pushd linux/tools/bpf
# doesn't compile when we don't first compile bpftool in its directory
cd bpftool
make
cd ..
make
popd
}
package_linux-tools-meta() {
pkgdesc='Linux kernel tools meta package'
groups=()
depends=(
'bpf'
'cgroup_event_listener'
'cpupower'
'hyperv'
@ -259,4 +270,15 @@ package_iio-utils() {
make install DESTDIR="$pkgdir"
}
package_bpf() {
pkgdesc='BPF tools'
depends=('glibc')
cd linux/tools/bpf
make install prefix=/usr DESTDIR="$pkgdir"
# fix bpftool hard written path
mv "$pkgdir"/usr/sbin/bpftool "$pkgdir"/usr/bin/bpftool
rmdir "$pkgdir"/usr/sbin
}
# vim:set ts=2 sw=2 et: