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
c771550d16
commit
7047239f31
@ -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…
x
Reference in New Issue
Block a user