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:
parent
8ef08c0691
commit
7b9eeeb131
|
@ -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\""
|
||||
|
|
Loading…
Reference in New Issue