diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-25 20:00:16 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-26 01:20:19 +0700 |
commit | 7b9eeeb131b967c9d1cb8907e6bc3dc6c315a443 (patch) | |
tree | 35464e0e6e453729cf70e5c9b4466259bc69cc5c /development | |
parent | 8ef08c0691d77e4915e634c27dec69c6a5256cf0 (diff) |
development/perf: Fix build with x86 -smp kernel.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/perf/perf.SlackBuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/development/perf/perf.SlackBuild b/development/perf/perf.SlackBuild index 10bf118b94ffe..b67fa20209943 100644 --- a/development/perf/perf.SlackBuild +++ b/development/perf/perf.SlackBuild @@ -88,11 +88,11 @@ EOF case "$KERNEL" in # if unset, use the running kernel: - "") SRCDIR="/usr/src/linux-$( uname -r )" ;; + "") SRCDIR="/usr/src/linux-$( uname -r )" ; SRCDIR=${SRCDIR%-smp} ;; # if it's an absolute path, use it as-is: /*) SRCDIR="$KERNEL" ;; # otherwise assume it's a version number: - *) SRCDIR="/usr/src/linux-$KERNEL" ;; + *) KERNEL=${KERNEL%-smp} ; SRCDIR="/usr/src/linux-$KERNEL" ;; esac [ -f "$SRCDIR/Makefile" ] || die "Can't find kernel source in \"$SRCDIR\"" |