From e1e61438545f17a902c4c8d4ace078d1cd5dd203 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 18 Jun 2004 16:38:42 +0000 Subject: [PATCH] Check if ${_dir}/kern exists as well, because if it doesn't exists we will fail later and we can miss good kernel source tree directory. I found this trying to compile kld module and it finds 'conf/kmod.mk' in '../..', but it fails later, because there is no 'kern' directory, but there is valid kernel source tree still in /usr/src/sys/. --- share/mk/bsd.kmod.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index 586369f97dd..7ccf1312b49 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -2,7 +2,7 @@ # Search for kernel source tree in standard places. .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys -.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk) +.if !defined(SYSDIR) && exists(${_dir}/kern) && exists(${_dir}/conf/kmod.mk) SYSDIR= ${_dir} .endif .endfor