mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
Use $target_cpu instead of arch
We should not be using arch for a few reasons. First off it might not be installed on their system, and secondly they may be trying to cross-compile.
This commit is contained in:
parent
8fd4e3af2e
commit
e2d28a3743
@ -135,12 +135,12 @@ AC_DEFUN([SPL_AC_KERNEL], [
|
|||||||
AC_MSG_RESULT([$kernelsrc])
|
AC_MSG_RESULT([$kernelsrc])
|
||||||
AC_MSG_CHECKING([kernel build directory])
|
AC_MSG_CHECKING([kernel build directory])
|
||||||
if test -z "$kernelbuild"; then
|
if test -z "$kernelbuild"; then
|
||||||
if test -d ${kernelsrc}-obj/`arch`/`arch`; then
|
if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/`arch`
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
|
||||||
elif test -d ${kernelsrc}-obj/`arch`/default; then
|
elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/default
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/default
|
||||||
elif test -d `dirname ${kernelsrc}`/build-`arch`; then
|
elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
|
||||||
kernelbuild=`dirname ${kernelsrc}`/build-`arch`
|
kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
|
||||||
else
|
else
|
||||||
kernelbuild=${kernelsrc}
|
kernelbuild=${kernelsrc}
|
||||||
fi
|
fi
|
||||||
|
24
configure
vendored
24
configure
vendored
@ -11530,12 +11530,12 @@ $as_echo "$kernelsrc" >&6; }
|
|||||||
{ $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
|
{ $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
|
||||||
$as_echo_n "checking kernel build directory... " >&6; }
|
$as_echo_n "checking kernel build directory... " >&6; }
|
||||||
if test -z "$kernelbuild"; then
|
if test -z "$kernelbuild"; then
|
||||||
if test -d ${kernelsrc}-obj/`arch`/`arch`; then
|
if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/`arch`
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
|
||||||
elif test -d ${kernelsrc}-obj/`arch`/default; then
|
elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/default
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/default
|
||||||
elif test -d `dirname ${kernelsrc}`/build-`arch`; then
|
elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
|
||||||
kernelbuild=`dirname ${kernelsrc}`/build-`arch`
|
kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
|
||||||
else
|
else
|
||||||
kernelbuild=${kernelsrc}
|
kernelbuild=${kernelsrc}
|
||||||
fi
|
fi
|
||||||
@ -15002,12 +15002,12 @@ $as_echo "$kernelsrc" >&6; }
|
|||||||
{ $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
|
{ $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
|
||||||
$as_echo_n "checking kernel build directory... " >&6; }
|
$as_echo_n "checking kernel build directory... " >&6; }
|
||||||
if test -z "$kernelbuild"; then
|
if test -z "$kernelbuild"; then
|
||||||
if test -d ${kernelsrc}-obj/`arch`/`arch`; then
|
if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/`arch`
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
|
||||||
elif test -d ${kernelsrc}-obj/`arch`/default; then
|
elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
|
||||||
kernelbuild=${kernelsrc}-obj/`arch`/default
|
kernelbuild=${kernelsrc}-obj/${target_cpu}/default
|
||||||
elif test -d `dirname ${kernelsrc}`/build-`arch`; then
|
elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
|
||||||
kernelbuild=`dirname ${kernelsrc}`/build-`arch`
|
kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
|
||||||
else
|
else
|
||||||
kernelbuild=${kernelsrc}
|
kernelbuild=${kernelsrc}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user