Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/common Makefile snippet to do the ${MDSETIMAGE} / ${...
details: https://anonhg.NetBSD.org/src/rev/58d51cf2c8a4
branches: trunk
changeset: 525442:58d51cf2c8a4
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Apr 11 15:28:14 2002 +0000
description:
Makefile snippet to do the ${MDSETIMAGE} / ${NM} / ${STRIP} / gzip
game on various kernels and fs images.
diffstat:
distrib/common/Makefile.mdset | 50 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diffs (54 lines):
diff -r 4e7be98f7529 -r 58d51cf2c8a4 distrib/common/Makefile.mdset
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/common/Makefile.mdset Thu Apr 11 15:28:14 2002 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile.mdset,v 1.1 2002/04/11 15:28:14 lukem Exp $
+#
+# Makefile snippet to ${MDSETIMAGE} file system images into kernels
+#
+
+#
+# Required variables:
+# _SRC_TOP_ Top level of src tree (set by <bsd.own.mk>)
+# TARGETS List of images to ${MDSETIMAGE} into kernels:
+# KERNEL IMAGE
+#
+# Optional variables:
+# MDSETDIR where to install kernels
+# ${IMAGE}.post run on netbsd.tmp after ${MDSETIMAGE},${NM},${STRIP}
+#
+#
+
+.include <bsd.kernobj.mk>
+
+.for _KERNEL _IMAGE in ${TARGETS} # {
+
+KERNELS+= netbsd.${_KERNEL}.gz
+KERNELSYMS+= netbsd.${_KERNEL}.symbols.gz
+
+netbsd.${_KERNEL}.gz: .NOTMAIN ${KERNOBJDIR}/${_KERNEL}/netbsd ${_IMAGE}
+ @echo "Populating ${_KERNEL} with ${_IMAGE}"
+ rm -f netbsd.tmp netbsd.tmp.gz
+ cp ${KERNOBJDIR}/${_KERNEL}/netbsd netbsd.tmp
+ ${MDSETIMAGE} -v netbsd.tmp ${_IMAGE}
+ ${NM} netbsd.tmp | gzip -9 > netbsd.${_KERNEL}.symbols.gz
+ ${STRIP} netbsd.tmp
+.if defined(${_KERNEL}.post)
+ ${${_KERNEL}.post}
+.endif
+ gzip -9 netbsd.tmp
+ mv netbsd.tmp.gz ${.TARGET}
+
+.endfor # }
+
+CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS} ${KERNELSYMS}
+
+realall: ${KERNELS}
+
+.if defined(MDSETDIR)
+release: check_RELEASEDIR .WAIT ${KERNELS}
+ -mkdir -p ${RELEASEDIR}/${MDSETDIR}
+ ${RELINSTALL} ${KERNELS} ${KERNELSYMS} ${RELEASEDIR}/${MDSETDIR}
+.endif
+
+.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index