mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
WITH_META_MODE: Resolve SYSDIR to avoid changed build commands.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
c89283ce26
commit
2dcffa9cb7
3 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
|
||||
${.CURDIR}/../../../../.. /sys /usr/src/sys
|
||||
.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
|
||||
SYSDIR= ${_dir}
|
||||
SYSDIR= ${_dir:tA}
|
||||
.endif
|
||||
.endfor
|
||||
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
.if defined(DESTDIR)
|
||||
MKMODULESENV+= DESTDIR="${DESTDIR}"
|
||||
.endif
|
||||
SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;}
|
||||
SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;:tA}
|
||||
MKMODULESENV+= KERNBUILDDIR="${.CURDIR}" SYSDIR="${SYSDIR}"
|
||||
|
||||
.if defined(CONF_CFLAGS)
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ ${OBJS}: ${_link}
|
|||
# Search for kernel source tree in standard places.
|
||||
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
|
||||
.if !defined(SYSDIR) && exists(${_dir}/kern/)
|
||||
SYSDIR= ${_dir}
|
||||
SYSDIR= ${_dir:tA}
|
||||
.endif
|
||||
.endfor
|
||||
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
|
||||
|
|
|
|||
Loading…
Reference in a new issue