Get rid of 'sync' after each kernel build. It adds a noticeable delay to

builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.
This commit is contained in:
jmcneill 2020-09-09 12:06:02 +00:00
parent 02f683bda2
commit 0e1281fab5
1 changed files with 1 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.447 2020/09/03 18:59:33 jakllsch Exp $
# $NetBSD: Makefile,v 1.448 2020/09/09 12:06:02 jmcneill Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@ -582,10 +582,6 @@ GETKERNELAWK= ${TOOL_AWK} '/^config/ {print $$2; found=1} \
build_kernels: .PHONY
# Configure & compile kernels listed in ${ALL_KERNELS}
#
# The 'sync' is so that all writes during the build are pushed back
# to the disk. Not having it causes problems on some host systems
# (e.g. Linux) when building on NFS.
#
.if !defined(KERNELS_DONE) # {
.for configfile in ${ALL_KERNELS:O:u} # {
build_kernels: kern-${configfile}
@ -597,7 +593,6 @@ kern-${configfile}: .PHONY .MAKE
.endif
${MAKE} -C ${KERNOBJDIR}/${configfile:C/.*\///} depend && \
${MAKE} -C ${KERNOBJDIR}/${configfile:C/.*\///}
sync
.endfor # ALL_KERNELS # }
.endif # KERNELS_DONE # }