mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
extra/linux-tools to 6.3-2
This commit is contained in:
parent
cdeb39a184
commit
ed0c4cd66b
1 changed files with 12 additions and 19 deletions
|
@ -16,14 +16,13 @@ pkgname=(
|
||||||
'hyperv'
|
'hyperv'
|
||||||
'linux-tools-meta'
|
'linux-tools-meta'
|
||||||
'perf'
|
'perf'
|
||||||
# 'python-perf'
|
|
||||||
'tmon'
|
'tmon'
|
||||||
'usbip'
|
'usbip'
|
||||||
'gpio-utils'
|
'gpio-utils'
|
||||||
'iio-utils'
|
'iio-utils'
|
||||||
)
|
)
|
||||||
pkgver=6.2
|
pkgver=6.3
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://www.kernel.org'
|
url='https://www.kernel.org'
|
||||||
|
@ -33,7 +32,8 @@ makedepends=('git')
|
||||||
# kernel source deps
|
# kernel source deps
|
||||||
makedepends+=('asciidoc' 'xmlto')
|
makedepends+=('asciidoc' 'xmlto')
|
||||||
# perf deps
|
# perf deps
|
||||||
makedepends+=('perl' 'python' 'python-setuptools' 'slang' 'elfutils' 'libunwind' 'audit' 'zstd' 'libcap')
|
makedepends+=('perl' 'python' 'python-setuptools' 'slang' 'elfutils' 'libunwind'
|
||||||
|
'audit' 'zstd' 'libcap' 'libtraceevent' 'openssl' 'clang')
|
||||||
# cpupower deps
|
# cpupower deps
|
||||||
makedepends+=('pciutils')
|
makedepends+=('pciutils')
|
||||||
# usbip deps
|
# usbip deps
|
||||||
|
@ -78,6 +78,11 @@ prepare() {
|
||||||
echo ":: Applying patch $src"
|
echo ":: Applying patch $src"
|
||||||
patch -p1 -N -i "$srcdir/$src"
|
patch -p1 -N -i "$srcdir/$src"
|
||||||
done
|
done
|
||||||
|
# force our perf version
|
||||||
|
cat > tools/perf/util/PERF-VERSION-GEN << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
echo '#define PERF_VERSION "$pkgver-$pkgrel"' > "\${1:-.}"/PERF-VERSION-FILE
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -92,7 +97,6 @@ build() {
|
||||||
WERROR=0 \
|
WERROR=0 \
|
||||||
PYTHON=python \
|
PYTHON=python \
|
||||||
PYTHON_CONFIG=python-config \
|
PYTHON_CONFIG=python-config \
|
||||||
PERF_VERSION=$pkgver-$pkgrel \
|
|
||||||
DESTDIR="$pkgdir"
|
DESTDIR="$pkgdir"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
@ -160,7 +164,6 @@ package_linux-tools-meta() {
|
||||||
'cpupower'
|
'cpupower'
|
||||||
'hyperv'
|
'hyperv'
|
||||||
'perf'
|
'perf'
|
||||||
# 'python-perf'
|
|
||||||
'tmon'
|
'tmon'
|
||||||
'usbip'
|
'usbip'
|
||||||
)
|
)
|
||||||
|
@ -173,7 +176,7 @@ package_perf() {
|
||||||
pkgdesc='Linux kernel performance auditing tool'
|
pkgdesc='Linux kernel performance auditing tool'
|
||||||
depends=('glibc' 'perl' 'python' 'slang' 'elfutils' 'libunwind' 'binutils'
|
depends=('glibc' 'perl' 'python' 'slang' 'elfutils' 'libunwind' 'binutils'
|
||||||
'numactl' 'audit' 'coreutils' 'glib2' 'xz' 'zlib' 'libelf' 'bash'
|
'numactl' 'audit' 'coreutils' 'glib2' 'xz' 'zlib' 'libelf' 'bash'
|
||||||
'zstd' 'libcap')
|
'zstd' 'libcap' 'libtraceevent' 'openssl')
|
||||||
|
|
||||||
cd linux-$pkgver/tools/perf
|
cd linux-$pkgver/tools/perf
|
||||||
make -f Makefile.perf \
|
make -f Makefile.perf \
|
||||||
|
@ -185,9 +188,8 @@ package_perf() {
|
||||||
WERROR=0 \
|
WERROR=0 \
|
||||||
PYTHON=python \
|
PYTHON=python \
|
||||||
PYTHON_CONFIG=python-config \
|
PYTHON_CONFIG=python-config \
|
||||||
PERF_VERSION=$pkgver-$pkgrel \
|
|
||||||
DESTDIR="$pkgdir" \
|
DESTDIR="$pkgdir" \
|
||||||
install
|
install install-python_ext
|
||||||
cd "$pkgdir"
|
cd "$pkgdir"
|
||||||
# add linker search path
|
# add linker search path
|
||||||
mkdir "$pkgdir/etc/ld.so.conf.d"
|
mkdir "$pkgdir/etc/ld.so.conf.d"
|
||||||
|
@ -199,15 +201,6 @@ package_perf() {
|
||||||
find usr/share -type f -exec chmod a-x {} \;
|
find usr/share -type f -exec chmod a-x {} \;
|
||||||
}
|
}
|
||||||
|
|
||||||
#package_python-perf(){
|
|
||||||
# pkgdesc='Linux kernel performance auditing tool (python bindings)'
|
|
||||||
# depends=('python')
|
|
||||||
#
|
|
||||||
# cd linux/tools/perf
|
|
||||||
#
|
|
||||||
# make install-python_ext PYTHON=python DESTDIR="$pkgdir"
|
|
||||||
#}
|
|
||||||
|
|
||||||
package_cpupower() {
|
package_cpupower() {
|
||||||
pkgdesc='Linux kernel tool to examine and tune power saving related features of your processor'
|
pkgdesc='Linux kernel tool to examine and tune power saving related features of your processor'
|
||||||
backup=('etc/default/cpupower')
|
backup=('etc/default/cpupower')
|
||||||
|
@ -291,7 +284,7 @@ package_iio-utils() {
|
||||||
|
|
||||||
package_bpf() {
|
package_bpf() {
|
||||||
pkgdesc='BPF tools'
|
pkgdesc='BPF tools'
|
||||||
depends=('glibc' 'readline' 'zlib' 'libelf' 'libcap')
|
depends=('glibc' 'readline' 'zlib' 'libelf' 'libcap' 'zstd' 'llvm-libs' 'binutils')
|
||||||
|
|
||||||
cd linux-$pkgver/tools/bpf
|
cd linux-$pkgver/tools/bpf
|
||||||
# skip runsqlower until disabled in build
|
# skip runsqlower until disabled in build
|
||||||
|
|
Loading…
Reference in a new issue