Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/common Add MKREPRO_TIMESTAMP support to the makefs i...
details: https://anonhg.NetBSD.org/src/rev/2c945935e2c9
branches: trunk
changeset: 342409:2c945935e2c9
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 20 22:47:59 2015 +0000
description:
Add MKREPRO_TIMESTAMP support to the makefs invocation.
diffstat:
distrib/common/Makefile.image | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 55c41f81b801 -r 2c945935e2c9 distrib/common/Makefile.image
--- a/distrib/common/Makefile.image Sun Dec 20 22:44:10 2015 +0000
+++ b/distrib/common/Makefile.image Sun Dec 20 22:47:59 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.image,v 1.38 2014/08/12 11:48:22 martin Exp $
+# $NetBSD: Makefile.image,v 1.39 2015/12/20 22:47:59 christos Exp $
#
# Makefile snippet to build a tree from the provided lists,
# and make an ffs file system image from that tree
@@ -41,6 +41,10 @@
GZIP_FLAGS= -9 ${GZIP_N_FLAG}
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
+.endif
+
.if !target(${WORKBUILT}) # {
${WORKBUILT}: ${IMAGEDEPENDS} ${WORKSPEC} ${PARSELISTDEP} ${LISTS}
# There is a .PHONY ${CRUNCHBIN}, so check if out of date by hand
@@ -93,7 +97,7 @@
${_MKSHMSG_CREATE} ${.CURDIR:T}/${.TARGET}; \
rm -f ${.TARGET} ${.TARGET}.tmp; \
${TOOL_MAKEFS} -t ffs -B ${IMAGEENDIAN} -s ${IMAGESIZE} -F ${WORKSPEC} \
- -N ${NETBSDSRCDIR}/etc ${IMGMAKEFSOPTIONS} \
+ ${MAKEFS_TIMESTAMP} -N ${NETBSDSRCDIR}/etc ${IMGMAKEFSOPTIONS} \
-o optimization=space,minfree=0 \
${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \
&& mv -f ${.TARGET}.tmp ${.TARGET}; \
Home |
Main Index |
Thread Index |
Old Index