mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
2 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue