mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
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
This commit is contained in:
parent
98b45a8ff8
commit
bebb05211f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151732
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue