mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Check kernel source directory for SPL
ZFS fails to build when SPL is built into the kernel on unless --with-spl=/path/to/kernel/sources is specified. We fallback to the kernel sources directory when SPL is not found elsewhere to resolve that. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closed #896
This commit is contained in:
committed by
Brian Behlendorf
parent
9e11c7eee2
commit
074e72953c
@@ -12306,6 +12306,13 @@ fi
|
||||
fi
|
||||
|
||||
|
||||
if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
|
||||
|
||||
sourcelink="$LINUX"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test -e $sourcelink/spl_config.h; then
|
||||
|
||||
splsrc=`readlink -f ${sourcelink}`
|
||||
@@ -19915,6 +19922,13 @@ fi
|
||||
fi
|
||||
|
||||
|
||||
if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
|
||||
|
||||
sourcelink="$LINUX"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test -e $sourcelink/spl_config.h; then
|
||||
|
||||
splsrc=`readlink -f ${sourcelink}`
|
||||
|
||||
Reference in New Issue
Block a user