diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-11-21 15:59:33 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-11-21 15:59:33 +0000 |
commit | 3cc5d6a4703d01b8c4c8e63f97248f1440b4de53 (patch) | |
tree | 8d43e98d82471eba4eb4147ef4984e599ab4c33a /share/mk/bsd.kmod.mk | |
parent | 6e02be63f4b29bad4a872585848df01de894ef12 (diff) | |
download | src-3cc5d6a4703d01b8c4c8e63f97248f1440b4de53.tar.gz src-3cc5d6a4703d01b8c4c8e63f97248f1440b4de53.zip |
Introduce bsd.sysdir.mk to consolidate looking for the kernel.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D22144
Notes
Notes:
svn path=/head/; revision=354968
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r-- | share/mk/bsd.kmod.mk | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index d790165623c3..683967749e75 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -1,20 +1,4 @@ # $FreeBSD$ -# Search for kernel source tree in standard places. -.if empty(KERNBUILDDIR) -.if !defined(SYSDIR) -.for _dir in ${SRCTOP:D${SRCTOP}/sys} \ - ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \ - ${.CURDIR}/../../../../.. /sys /usr/src/sys -.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk) -SYSDIR= ${_dir:tA} -.endif -.endfor -.endif -.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \ - !exists(${SYSDIR}/conf/kmod.mk) -.error Unable to locate the kernel source tree. Set SYSDIR to override. -.endif -.endif - +.include <bsd.sysdir.mk> .include "${SYSDIR}/conf/kmod.mk" |