3 # Search for kernel source tree in standard places.
4 .for _dir in
${.CURDIR
}/..
/..
${.CURDIR
}/..
/..
/..
${.CURDIR
}/..
/..
/..
/.. \
6 .if
!defined
(SYSDIR
) && exists
(${_dir}/kern
/) && exists
(${_dir}/conf
/kmod.mk
)
10 .if
!defined
(SYSDIR
) ||
!exists
(${SYSDIR}/kern
/) || \
11 !exists
(${SYSDIR}/conf
/kmod.mk
)
12 .error
"can't find kernel source tree"
15 .
include "${SYSDIR}/conf/kmod.mk"