summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-06-18 16:38:42 +0000
committerpjd <pjd@FreeBSD.org>2004-06-18 16:38:42 +0000
commit861ab9f6f25ec91d5d6e005d9bafb92bc8e761b6 (patch)
treeaf41b649c7f24b27a6d5f5d3e5fb59c71adc500b /share/mk/bsd.kmod.mk
parent792b42bf4261b013a5e3f1b5d075c8ad3416621a (diff)
downloadFreeBSD-src-861ab9f6f25ec91d5d6e005d9bafb92bc8e761b6.zip
FreeBSD-src-861ab9f6f25ec91d5d6e005d9bafb92bc8e761b6.tar.gz
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/.
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 586369f..7ccf131 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
OpenPOWER on IntegriCloud