Stop looking up these values in every subdir on install.

This was slowing down installkernel since it was rerunning this in
every module directory.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-03-12 22:21:02 +00:00
parent 6d51bbb52a
commit ebf5587eca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296770
2 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,7 @@ KERN_OPTS+= INET6
.if ${MK_EISA} != "no"
KERN_OPTS+= DEV_EISA
.endif
.else
.elif !defined(KERN_OPTS)
KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u
.export KERN_OPTS
.endif

View File

@ -144,7 +144,10 @@ MK_${var}:= no
MK_${var}_SUPPORT:= no
.else
.if defined(KERNBUILDDIR) # See if there's an opt_foo.h
.if !defined(OPT_${var})
OPT_${var}!= cat ${KERNBUILDDIR}/opt_${var:tl}.h; echo
.export OPT_${var}
.endif
.if ${OPT_${var}} == "" # nothing -> no
MK_${var}_SUPPORT:= no
.else