]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/bsd.kmod.mk
MFV r331695, 331700: 9166 zfs storage pool checkpoint
[FreeBSD/FreeBSD.git] / share / mk / bsd.kmod.mk
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)
9 SYSDIR= ${_dir:tA}
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/kmod.mk"