Deleted Added
full compact
bsd.kmod.mk (231780) bsd.kmod.mk (231834)
1# $FreeBSD: head/share/mk/bsd.kmod.mk 231780 2012-02-15 21:20:58Z imp $
1# $FreeBSD: head/share/mk/bsd.kmod.mk 231834 2012-02-16 21:04:47Z imp $
2
3# Search for kernel source tree in standard places.
4.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
5 ${.CURDIR}/../../../../.. /sys /usr/src/sys
6.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
7SYSDIR= ${_dir}
8.endif
9.endfor
10.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
11 !exists(${SYSDIR}/conf/kmod.mk)
2
3# Search for kernel source tree in standard places.
4.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
5 ${.CURDIR}/../../../../.. /sys /usr/src/sys
6.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
7SYSDIR= ${_dir}
8.endif
9.endfor
10.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
11 !exists(${SYSDIR}/conf/kmod.mk)
12.error "can't locate the kernel source tree, set SYSDIR to override."
12.error Unable to locate the kernel source tree. Set SYSDIR to override.
13.endif
14
15.include "${SYSDIR}/conf/kmod.mk"
16
17.include <bsd.sys.mk>
13.endif
14
15.include "${SYSDIR}/conf/kmod.mk"
16
17.include <bsd.sys.mk>