Module Name: src
Committed By: christos
Date: Sun Dec 20 02:35:34 UTC 2015
Modified Files:
src/etc: Makefile
Log Message:
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.
To generate a diff of this commit:
cvs rdiff -u -r1.425 -r1.426 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.425 src/etc/Makefile:1.426
--- src/etc/Makefile:1.425 Sat Dec 19 18:37:43 2015
+++ src/etc/Makefile Sat Dec 19 21:35:34 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.425 2015/12/19 23:37:43 christos Exp $
+# $NetBSD: Makefile,v 1.426 2015/12/20 02:35:34 christos Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -67,6 +67,19 @@ MKISOFS_FLAGS+= -J -l -hide-joliet-trans
MKISOFS_FLAGS+= -quiet
.endif
+# Reproducible build parameters
+.if ${MKREPRO:Uno} == "no"
+BUILDER!= echo $${USER-root}@$$(hostname)
+.else
+BUILDER= [email protected]
+.endif
+.if ${MKREPRO_TIMESTAMP:Uno} == "no"
+PAX_TIMESTAMP=
+BUILD_DATE!= date -u
+.else
+PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
+BUILD_DATE!= date -u -r "${MKREPRO_TIMESTAMP}"
+.endif
# MD Makefile.inc may append MD targets to BIN[123]. Make sure all
# are empty, to preserve the old semantics of setting them below with "+=".
@@ -185,16 +198,6 @@ MAKEDEV: ${.CURDIR}/MAKEDEV.awk ${.CURDI
> ${.TARGET}
.include "${NETBSDSRCDIR}/etc/Makefile.params"
-.if ${MKREPRO:Uno} == "no"
-BUILDER!= echo $${USER-root}@$$(hostname)
-.else
-BUILDER= [email protected]
-.endif
-.if ${MKREPRO_TIMESTAMP:Uno} == "no"
-BUILD_DATE!= date -u
-.else
-BUILD_DATE!= date -u -r "${MKREPRO_TIMESTAMP}"
-.endif
CLEANFILES+= etc-release
etc-release: .EXEC .MAKE
@@ -608,7 +611,7 @@ kernset-${configfile}: .PHONY build_kern
kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
kernsuffixes="${KERNEL_SUFFIXES:S/^/./}"; \
kern_tgz=${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets/kern-${configfile}.tgz; \
- pax_cmd="GZIP=${GZIP_FLAGS:Q} ${TOOL_PAX} --use-compress-program ${TOOL_GZIP:Q} -O -w -M -N ${NETBSDSRCDIR}/etc -f $${kern_tgz}"; \
+ pax_cmd="GZIP=${GZIP_FLAGS:Q} ${TOOL_PAX} ${PAX_TIMESTAMP} --use-compress-program ${TOOL_GZIP:Q} -O -w -M -N ${NETBSDSRCDIR}/etc -f $${kern_tgz}"; \
cd $${kerndir} && { \
kernels=; newest=; \
for kernel in $${kernlist}; do \