1# $FreeBSD$ 2 3# Search for kernel source tree in standard places. 4.if empty(KERNBUILDDIR) 5.if !defined(SYSDIR) 6.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \ 7 ${.CURDIR}/../../../../.. /sys /usr/src/sys 8.if exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk) 9SYSDIR= ${_dir} 10.endif 11.endfor 12.endif 13.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \ 14 !exists(${SYSDIR}/conf/kmod.mk) 15.error Unable to locate the kernel source tree. Set SYSDIR to override. 16.endif 17.endif 18 19.include "${SYSDIR}/conf/dtb.mk" 20 21.include <bsd.sys.mk> 22