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>
This commit is contained in:
Andrew Clemons 2022-03-25 20:00:16 +13:00 committed by Willy Sudiarto Raharjo
parent 8ef08c0691
commit 7b9eeeb131
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 2 additions and 2 deletions

View File

@ -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\""