community/linux-tools to 5.6-1

This commit is contained in:
Kevin Mihelich 2020-04-02 00:36:32 +00:00
parent dad62f21ba
commit 3816811224

View file

@ -21,7 +21,7 @@ pkgname=(
'gpio-utils'
'iio-utils'
)
pkgver=5.5
pkgver=5.6
pkgrel=1
license=('GPL2')
arch=('x86_64')
@ -43,8 +43,7 @@ makedepends+=('ncurses')
makedepends+=('python-docutils')
groups=("$pkgbase")
source=("https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${pkgver}.tar.xz"
"https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-$pkgver.4.xz"
"01-fix-perf-build-libbfd.patch::https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=0ada120c883d4f1f6aafd01cf0fbb10d8bbba015"
"https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-$pkgver.1.xz"
'0001-perf-fix-debug-printf-for-32-bit.patch'
'cpupower.default'
'cpupower.systemd'
@ -54,8 +53,7 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${pkgver}.tar.xz"
'hv_kvp_daemon.service'
'hv_vss_daemon.service')
sha256sums=('a6fbd4ee903c128367892c2393ee0d9657b6ed3ea90016d4dc6f1f6da20b2330'
'cf640d75bdf4211446aa699a562c7bbd6d0360c6bc11e9ca22e8032de14697db'
'61f5398b2adcf024516e3368f242d2398c9286a5272eaf7fdd21530e1494d47e'
'75adbc3fae5ddd49e9292e9d0816f230c8bff3efd35dd2c06c3c9330c480d4ef'
'8dce2b1e5dec90473677adf289c50745daaa059b9f61487d0bc857b16fdef5ae'
'4fa509949d6863d001075fa3e8671eff2599c046d20c98bb4a70778595cd1c3f'
'd2e8e5e8b22c6089a91f573aa1c59e442a1f3b67a2c9f047abe3b57d3d6558cc'
@ -140,9 +138,11 @@ build() {
echo ':: bpf'
pushd linux-$pkgver/tools/bpf
# doesn't compile when we don't first compile bpftool in its directory
# doesn't compile when we don't first compile bpftool in its own directory and
# man pages require to be also launch from the subdirectory
make -C bpftool all doc
make
# runqslower, require kernel binary path to build, skip it
make -W runqslower
popd
}
@ -297,7 +297,8 @@ package_bpf() {
depends=('glibc')
cd linux-$pkgver/tools/bpf
make install prefix=/usr DESTDIR="$pkgdir"
# skip runsqlower until disabled in build
make -W runqslower_install install prefix=/usr DESTDIR="$pkgdir"
# fix bpftool hard written path
mv "$pkgdir"/usr/sbin/bpftool "$pkgdir"/usr/bin/bpftool
rmdir "$pkgdir"/usr/sbin