Skip to content

Commit

Permalink
perf: update 5.6.14 to 5.10.47
Browse files Browse the repository at this point in the history
- fixed SRCURL
- tunnel BEE-MAKEFLAGS -j to Makefile JOBS
- use /usr/local/system/{perl,python}
  • Loading branch information
wwwutz committed Oct 13, 2021
1 parent 10d13af commit 5c85b1a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions perf.be0
Original file line number Diff line number Diff line change
@@ -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+=()

Expand All @@ -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() {
Expand All @@ -42,3 +62,4 @@ mee_install_post() {
rm -vrf ${D}/etc/bash_completion.d
rm -vrf ${D}${PREFIX}/lib/perf/examples
}

0 comments on commit 5c85b1a

Please sign in to comment.