diff options
-rw-r--r-- | share/mk/bsd.kmod.mk | 4 | ||||
-rw-r--r-- | sys/conf/kmod.mk | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index 3056daa..73f9c14 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -2,11 +2,11 @@ # Search for kernel source tree in standard places. .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys -.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/) +.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk) SYSDIR= ${_dir} .endif .endfor -.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || !exists(${SYSDIR}/conf/) +.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/) .error "can't find kernel source tree" .endif diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 2fef3b8..e0cd6f2 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -166,7 +166,7 @@ beforedepend ${OBJS}: ${_ILINKS} SYSDIR= ${_dir} .endif .endfor -.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) +.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) .error "can't find kernel source tree" .endif |