From 5c85b1a326dd9df9dd3a0bbcb07326960ffd3264 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 13 Oct 2021 15:34:04 +0200 Subject: [PATCH] perf: update 5.6.14 to 5.10.47 - fixed SRCURL - tunnel BEE-MAKEFLAGS -j to Makefile JOBS - use /usr/local/system/{perl,python} --- perf.be0 | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/perf.be0 b/perf.be0 index e9ba4b736..de87c1b4c 100755 --- a/perf.be0 +++ b/perf.be0 @@ -1,10 +1,11 @@ #!/usr/bin/env beesh -# BEE_VERSION perf-5.6.14-0 +# BEE_VERSION perf-5.10.47-0 # more info: https://foo.bar.com -SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${PKGVERSION}.tar.xz" +# SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${PKGVERSION}.tar.xz" +SRCURL[0]="https://beehive.molgen.mpg.de/cb6a98b89db3357997318c6a8fc58032/linux-5.10.47.tar.xz" # PATCHURL+=() @@ -14,8 +15,27 @@ sourcesubdir_append tools/perf OPT_ARCHIVE_BUILD=no +# honor -j +while getopts ":j:" bmf ${BEE_MAKEFLAGS[@]}; do + export JOBS=${OPTARG} +done + +PATH=/usr/local/system/perl/bin:/usr/local/system/python2/bin:${PATH} + mee_patch_post() { sed -i 's/lib = lib64/lib = lib/' Makefile.config + for i in \ + Makefile.perf \ + Documentation/Makefile \ + scripts/perl/rw-by-file.pl \ + scripts/perl/rw-by-pid.pl \ + scripts/perl/rwtop.pl \ + scripts/perl/wakeup-latency.pl \ + ; do + sed -i 's,/usr/bin/perl,/usr/local/system/perl/bin/perl,' ${i} + done + + sed -i 's,/usr/bin/python2,/usr/local/system/python2/bin/python2,' scripts/python/export-to-postgresql.py } #mee_extract() { @@ -42,3 +62,4 @@ mee_install_post() { rm -vrf ${D}/etc/bash_completion.d rm -vrf ${D}${PREFIX}/lib/perf/examples } +