Module Name:    src
Committed By:   jmcneill
Date:           Wed Sep  9 12:06:02 UTC 2020

Modified Files:
        src/etc: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.447 -r1.448 src/etc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/Makefile
diff -u src/etc/Makefile:1.447 src/etc/Makefile:1.448
--- src/etc/Makefile:1.447	Thu Sep  3 18:59:33 2020
+++ src/etc/Makefile	Wed Sep  9 12:06:02 2020
@@ -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/ {pr
 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							# }
 

Reply via email to