summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-12-08 20:36:32 +0000
committerJason Evans <jasone@FreeBSD.org>2000-12-08 20:36:32 +0000
commitaabafca0985b38e9207a6d433afd25cf057ac4c7 (patch)
tree27c002f7c9a9b7e638f53e3d2ecd5a31bae1fc19
parent959b7375edc06472c448b83fcfc187ed41edd715 (diff)
Notes
-rw-r--r--share/mk/bsd.kmod.mk4
-rw-r--r--sys/conf/kmod.mk2
2 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 3056daa1f9fa..73f9c14cf07c 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 2fef3b866b80..e0cd6f234236 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