diff options
author | ru <ru@FreeBSD.org> | 2005-10-27 14:33:08 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-10-27 14:33:08 +0000 |
commit | 7047239f31ae55d1fbe7b9d9aa4c51fe03093a83 (patch) | |
tree | 92b85c1267f3fbeeee5530359facc3f3ee141b94 /sys/conf | |
parent | c771550d168007ede459f3a42c5bcbf710684830 (diff) | |
download | FreeBSD-src-7047239f31ae55d1fbe7b9d9aa4c51fe03093a83.zip FreeBSD-src-7047239f31ae55d1fbe7b9d9aa4c51fe03093a83.tar.gz |
Use ${S} to pass ${SYSDIR} to ports. This makes PORTS_MODULES
feature work when compiling a kernel via "make buildkernel".
Noticed and tested by: nork
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.post.mk | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 3556b6a..7335822 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -29,11 +29,7 @@ modules-${target}: # Handle out of tree ports .if !defined(NO_MODULES) && defined(PORTS_MODULES) -.for _dir in ${.CURDIR}/../../.. -.if !defined(SYSDIR) && exists(${_dir}/kern/) -SYSDIR= ${_dir} -.endif -.endfor +SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;} PORTSMODULESENV=SYSDIR=${SYSDIR} .for __target in all install reinstall clean ${__target}: ports-${__target} |