mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Calculate MPATH for sys/modules to save 92% time in a basic 'obj' tree-walk.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d9ea698c75
commit
3c9c5b15fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291744
@ -370,8 +370,10 @@ vnode_if_typedef.h:
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Build _if.[ch] from _if.m, and clean them when we're done.
|
# Build _if.[ch] from _if.m, and clean them when we're done.
|
||||||
|
# This is duplicated in sys/modules/Makefile.
|
||||||
.if !defined(__MPATH)
|
.if !defined(__MPATH)
|
||||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||||
|
.export __MPATH
|
||||||
.endif
|
.endif
|
||||||
_MFILES=${__MPATH:T:O}
|
_MFILES=${__MPATH:T:O}
|
||||||
_MPATH=${__MPATH:H:O:u}
|
_MPATH=${__MPATH:H:O:u}
|
||||||
|
@ -771,6 +771,12 @@ afterinstall:
|
|||||||
|
|
||||||
.include "${SYSDIR}/conf/config.mk"
|
.include "${SYSDIR}/conf/config.mk"
|
||||||
|
|
||||||
|
# Use sys/conf/kmod.mk's MPATH to avoid redundantly running in every subdir.
|
||||||
|
.if !defined(__MPATH)
|
||||||
|
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||||
|
.export __MPATH
|
||||||
|
.endif
|
||||||
|
|
||||||
SUBDIR:= ${SUBDIR:u:O}
|
SUBDIR:= ${SUBDIR:u:O}
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user