Don't run find(1) for __MPATH with NO_MODULES set.
It's a waste of time when it won't be used. Submitted by: bde MFC after: 3 days
This commit is contained in:
parent
c4dc5cdb7b
commit
f5dac37f96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303195
@ -54,7 +54,7 @@ KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u
|
||||
.export KERN_OPTS
|
||||
.endif
|
||||
|
||||
.if !defined(__MPATH)
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH)
|
||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||
.export __MPATH
|
||||
.endif
|
||||
|
@ -192,7 +192,7 @@ SYSTEM_LD_TAIL= @${OBJCOPY} --strip-symbol gcc2_compiled. ${.TARGET} ; \
|
||||
SYSTEM_DEP+= ${LDSCRIPT}
|
||||
|
||||
# Calculate path for .m files early, if needed.
|
||||
.if !defined(__MPATH)
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH)
|
||||
__MPATH!=find ${S:tA}/ -name \*_if.m
|
||||
.endif
|
||||
|
||||
@ -212,7 +212,9 @@ MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
|
||||
.if defined(DEBUG)
|
||||
MKMODULESENV+= DEBUG_FLAGS="${DEBUG}"
|
||||
.endif
|
||||
.if !defined(NO_MODULES)
|
||||
MKMODULESENV+= __MPATH="${__MPATH}"
|
||||
.endif
|
||||
|
||||
# Architecture and output format arguments for objdump to convert image to
|
||||
# object file
|
||||
|
Loading…
Reference in New Issue
Block a user