Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/pmax/instkernel Pull up revs 1.3 and 1.4 from t...



details:   https://anonhg.NetBSD.org/src/rev/cf22bb0b24f0
branches:  netbsd-1-4
changeset: 468331:cf22bb0b24f0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Apr 17 11:12:30 1999 +0000

description:
Pull up revs 1.3 and 1.4 from the trunk:
        After building a ramdisk kernel, build a small (currently 2MB)
        diskimage suitable for dd'ing onto the start of a disk.

diffstat:

 distrib/pmax/instkernel/Makefile |  42 ++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r f6d9b06b79a5 -r cf22bb0b24f0 distrib/pmax/instkernel/Makefile
--- a/distrib/pmax/instkernel/Makefile  Sat Apr 17 11:09:58 1999 +0000
+++ b/distrib/pmax/instkernel/Makefile  Sat Apr 17 11:12:30 1999 +0000
@@ -1,14 +1,25 @@
-#      $NetBSD: Makefile,v 1.1.2.1 1999/04/05 15:07:18 simonb Exp $
+#      $NetBSD: Makefile,v 1.1.2.2 1999/04/17 11:12:30 simonb Exp $
 
 
-KERN=  ${.CURDIR}/../../../sys/arch/pmax/compile/RAMDISK/netbsd
-RAMDISK!=cd ${.CURDIR}/../ramdisk; \
-       printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
-       ${MAKE} -s -f-
-CLEANFILES= netbsd.tmp netbsd.ecoff netbsd.ecoff.gz \
-           netbsd.aout netbsd.aout.gz
+IMAGE=         diskimage
+IMAGESIZE=     4096 # 512 byte blocks
+DISKTYPE=
+LABELPROTO=    ${.CURDIR}/diskimage.label.proto
+# Get defaults from minidisk configuration
+.include       "../miniroot/Makefile.inc"
+NEWFSOPTS+=    -i 32768        # don't need many inodes!
 
-all:   netbsd.gz
+KERN=          ${.CURDIR}/../../../sys/arch/pmax/compile/RAMDISK/netbsd
+RAMDISK!=      cd ${.CURDIR}/../ramdisk; \
+               printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
+               ${MAKE} -s -f-
+CLEANFILES=    netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz ${IMAGE}
+
+VND_DEV=       /dev/${VND}
+VND_RDEV=      /dev/r${VND}
+MOUNT_POINT?=  /mnt
+
+all:   netbsd.gz ${IMAGE}
 
 netbsd.gz: ${KERN} ${RAMDISK}
        cp ${KERN} netbsd
@@ -19,6 +30,21 @@
        rm -f netbsd.gz
        gzip -9 netbsd
 
+${IMAGE}: netbsd.gz ${DESTDIR}/usr/mdec/boot
+       dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE}
+       vnconfig ${DISKTYPEARG} -v -c ${VND_DEV} ${IMAGE} ${VND_GEOM}
+       ${PRELABEL}
+       -newfs -m 0 -o space ${NEWFSOPTS} ${VND_RDEV}
+       ${BOOTINSTALL}
+       mount ${VND_DEV} ${MOUNT_POINT}
+       cp -p ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}
+       cp -p netbsd.gz ${MOUNT_POINT}/netbsd
+       @echo ""
+       @df -i ${MOUNT_POINT}
+       @echo ""
+       umount ${MOUNT_POINT}
+       vnconfig -u ${VND_DEV}
+
 clean cleandir distclean:
        rm -f ${CLEANFILES}
 



Home | Main Index | Thread Index | Old Index