summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-12 22:21:14 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-12 22:21:14 +0000
commitc409724b3a2293734ba298a195e4d8406bb72e25 (patch)
tree70c130c2f44162bff3e7620d8b7448c63ba37b45 /sys/conf
parent6079e1fc86aa6547c3ac7d3fa6f7b428fcad771e (diff)
downloadFreeBSD-src-c409724b3a2293734ba298a195e4d8406bb72e25.zip
FreeBSD-src-c409724b3a2293734ba298a195e4d8406bb72e25.tar.gz
Reduce duplicated logic from r291744.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/config.mk5
-rw-r--r--sys/conf/kmod.mk6
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/conf/config.mk b/sys/conf/config.mk
index 35df003..433f420 100644
--- a/sys/conf/config.mk
+++ b/sys/conf/config.mk
@@ -53,3 +53,8 @@ KERN_OPTS+= DEV_EISA
KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u
.export KERN_OPTS
.endif
+
+.if !defined(__MPATH)
+__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
+.export __MPATH
+.endif
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 03ccc60..9eb91d0 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -386,11 +386,7 @@ vnode_if_typedef.h:
.endif
# Build _if.[ch] from _if.m, and clean them when we're done.
-# This is duplicated in sys/modules/Makefile.
-.if !defined(__MPATH)
-__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
-.export __MPATH
-.endif
+# __MPATH defined in config.mk
_MFILES=${__MPATH:T:O}
_MPATH=${__MPATH:H:O:u}
.PATH.m: ${_MPATH}
OpenPOWER on IntegriCloud