2015-01-08 18:28:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Search for kernel source tree in standard places.
|
2018-03-28 16:28:20 +00:00
|
|
|
.if empty(KERNBUILDDIR)
|
2018-03-28 16:28:24 +00:00
|
|
|
.if !defined(SYSDIR)
|
2015-01-08 18:28:06 +00:00
|
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
|
|
|
|
${.CURDIR}/../../../../.. /sys /usr/src/sys
|
2018-04-12 20:27:57 +00:00
|
|
|
.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
|
2015-01-08 18:28:06 +00:00
|
|
|
SYSDIR= ${_dir}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2018-03-28 16:28:24 +00:00
|
|
|
.endif
|
2015-01-08 18:28:06 +00:00
|
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
|
|
|
|
!exists(${SYSDIR}/conf/kmod.mk)
|
|
|
|
.error Unable to locate the kernel source tree. Set SYSDIR to override.
|
|
|
|
.endif
|
2018-03-28 16:28:20 +00:00
|
|
|
.endif
|
2015-01-08 18:28:06 +00:00
|
|
|
|
|
|
|
.include "${SYSDIR}/conf/dtb.mk"
|
|
|
|
|
|
|
|
.include <bsd.sys.mk>
|