Module Name: src
Committed By: christos
Date: Fri Feb 9 16:12:02 UTC 2024
Modified Files:
src/sys/arch/sandpoint/stand/altboot: Makefile
Log Message:
PR/57915: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for repro builds in uBoot
images
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sandpoint/stand/altboot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/stand/altboot/Makefile
diff -u src/sys/arch/sandpoint/stand/altboot/Makefile:1.18 src/sys/arch/sandpoint/stand/altboot/Makefile:1.19
--- src/sys/arch/sandpoint/stand/altboot/Makefile:1.18 Tue Mar 23 22:53:16 2021
+++ src/sys/arch/sandpoint/stand/altboot/Makefile Fri Feb 9 11:12:02 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2021/03/24 02:53:16 rin Exp $
+# $NetBSD: Makefile,v 1.19 2024/02/09 16:12:02 christos Exp $
S= ${.CURDIR}/../../../..
@@ -56,13 +56,19 @@ cleandir distclean: .WAIT cleanlibdir
cleanlibdir:
-rm -rf lib
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MKUBOOTIMAGE_TIMESTAMP=-t "${MKREPRO_TIMESTAMP}"
+.endif
+
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${_MKTARGET_LINK}
${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${OBJCOPY} -S -O binary ${PROG} ${PROG}.bin
${TOOL_MKUBOOTIMAGE} -A powerpc -T kernel -C none -O linux \
- -a 0x${RELOC} -n ${PROG} ${PROG}.bin ${PROG}.img
+ -a 0x${RELOC} ${MKUBOOTIMAGE_TIMESTAMP} -n ${PROG} \
+ ${PROG}.bin ${PROG}.img
+
VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"