Module Name: src Committed By: perry Date: Mon Mar 30 16:34:19 UTC 2009
Modified Files: src/sys/conf: Makefile.kern.inc Log Message: Add a MKREPRO variable (defaults to "no") that invokes newvers.sh with the -r flag if it is set to "yes", resulting in a reproducible kernel build. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/sys/conf/Makefile.kern.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/conf/Makefile.kern.inc diff -u src/sys/conf/Makefile.kern.inc:1.122 src/sys/conf/Makefile.kern.inc:1.123 --- src/sys/conf/Makefile.kern.inc:1.122 Fri Mar 20 09:13:06 2009 +++ src/sys/conf/Makefile.kern.inc Mon Mar 30 16:34:19 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.kern.inc,v 1.122 2009/03/20 09:13:06 pooka Exp $ +# $NetBSD: Makefile.kern.inc,v 1.123 2009/03/30 16:34:19 perry Exp $ # # This file contains common `MI' targets and definitions and it is included # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. @@ -254,11 +254,19 @@ ${MD_SFILES:C/\.[Ss]/.o/} ${SFILES:C/\.[Ss]/.o/}: assym.h .endif +MKREPRO?=no + +.if ${MKREPRO} == "yes" +_NVFLAGS=-r +.else +_NVFLAGS= +.endif + .if !target(vers.o) newvers: vers.o vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh ${_MKMSG_CREATE} vers.c - ${HOST_SH} $S/conf/newvers.sh + ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS} ${_MKTARGET_COMPILE} ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c .endif