mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301084
|
@ -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