From 7b9eeeb131b967c9d1cb8907e6bc3dc6c315a443 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Fri, 25 Mar 2022 20:00:16 +1300 Subject: [PATCH] development/perf: Fix build with x86 -smp kernel. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- development/perf/perf.SlackBuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/perf/perf.SlackBuild b/development/perf/perf.SlackBuild index 10bf118b94..b67fa20209 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\""