Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/perseant-stdc-iso10646]: src/distrib/sparc64/xminiroot 309866
details: https://anonhg.NetBSD.org/src/rev/9b0d0e86d40e
branches: perseant-stdc-iso10646
changeset: 850660:9b0d0e86d40e
user: hannken <hannken%NetBSD.org@localhost>
date: Mon Jul 17 14:36:14 2017 +0000
description:
309866
diffstat:
distrib/sparc64/xminiroot/Makefile | 47 ++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diffs (51 lines):
diff -r e195edd3c9f6 -r 9b0d0e86d40e distrib/sparc64/xminiroot/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/Makefile Mon Jul 17 14:36:14 2017 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.34.2.2 2017/07/17 14:36:14 hannken Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+.include <bsd.kernobj.mk>
+
+.include "${.CURDIR}/../instfs/Makefile.instfs"
+IMAGE= miniroot.fs
+NUMCYLS= 14 # size of image in MB, tune this if we need more space
+SECSPERCYL= 2048
+CYLSIZE= $$(( ${SECSPERCYL} * 512 ))
+IMAGESIZE= $$(( ${NUMCYLS} * ${CYLSIZE} ))
+IMAGEPOSTBUILD= \
+ ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
+ ${DESTDIR}/usr/mdec/bootblk && \
+ echo "Creating disklabel" && \
+ printf 'V nsect %d\nV nhead 1\nV rpm 7200\nV pcyl %d\nV ncyl %d\na 0 %d/0/0\nc 0 %d/0/0\nd 0 %d/0/0\nW\nL\nP\n' \
+ ${SECSPERCYL} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} | \
+ ${TOOL_SUNLABEL} -nq ${IMAGE}
+
+IMAGE_RELEASEDIR= installation/miniroot
+
+CRUNCHBINDIR!= cd ${INSTFSDIR} && ${PRINTOBJDIR}
+LISTS+= ${.CURDIR}/list.miniroot
+IMAGEDEPENDS+= netbsd.gz
+
+${CRUNCHBIN}: ${CRUNCHBINDIR}/${CRUNCHBIN}
+ mkdir -p sysinst
+ cp -p ${CRUNCHBINDIR}/sysinst/sysinstmsgs.* sysinst
+ cp ${.ALLSRC} ${.TARGET}
+
+netbsd.gz: ${KERNOBJDIR}/GENERIC/netbsd
+ -rm -f ${.TARGET}
+ ${TOOL_GZIP_N} -9c ${.ALLSRC} > ${.TARGET}
+
+clean: localclean
+
+localclean:
+ rm -rf sysinst
+
+CLEANFILES+= ${CRUNCHBIN} netbsd.gz
+
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index