svn commit: r303195 - head/sys/conf
Bryan Drewery
bdrewery at FreeBSD.org
Fri Jul 22 17:31:15 UTC 2016
Author: bdrewery
Date: Fri Jul 22 17:31:14 2016
New Revision: 303195
URL: https://svnweb.freebsd.org/changeset/base/303195
Log:
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
Modified:
head/sys/conf/config.mk
head/sys/conf/kern.pre.mk
Modified: head/sys/conf/config.mk
==============================================================================
--- head/sys/conf/config.mk Fri Jul 22 17:25:28 2016 (r303194)
+++ head/sys/conf/config.mk Fri Jul 22 17:31:14 2016 (r303195)
@@ -54,7 +54,7 @@ KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h |
.export KERN_OPTS
.endif
-.if !defined(__MPATH)
+.if !defined(NO_MODULES) && !defined(__MPATH)
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
.export __MPATH
.endif
Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk Fri Jul 22 17:25:28 2016 (r303194)
+++ head/sys/conf/kern.pre.mk Fri Jul 22 17:31:14 2016 (r303195)
@@ -192,7 +192,7 @@ SYSTEM_LD_TAIL= @${OBJCOPY} --strip-symb
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="${MODUL
.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
More information about the svn-src-head
mailing list