# $NetBSD: Makefile,v 1.3 1998/09/22 01:10:12 ross Exp $ TOP= ${.CURDIR}/.. .include "${TOP}/Makefile.inc" IMAGE= install${REV}.fs KERN= ${.CURDIR}/../../../../sys/arch/alpha/compile/INSTALL-FLOPPY/netbsd # TOP is assumed to be defined by Makefile including this one. MOUNT_POINT?= /mnt VND?= vnd0 VND_DEV= /dev/${VND}a VND_RDEV= /dev/r${VND}a VND_CDEV= /dev/${VND}c VND_CRDEV= /dev/r${VND}c IMAGE?= xxx-${REV}.fs KERN?= netbsd-xxx MDEC= ${DESTDIR}/usr/mdec LISTS= ${.CURDIR}/list RAMDISK !=cd $(.CURDIR)/../md_install/; \ printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/md_install-${REV}.fs\n" | \ ${MAKE} -s -f- DISKTYPE= floppy # Some reasonable values for the -i parameter to newfs are: # # 6144 1147k, 189 inodes free # 16384 1159k, 93 inodes free # 204800 1167k, 29 inodes free INO_BYTES?= 6144 CLEANFILES+= netbsd.ram.gz all: netbsd.ram.gz dd if=/dev/zero of=${IMAGE} count=2880 vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE} disklabel -rw ${VND_CDEV} ${DISKTYPE} newfs -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV} ${DISKTYPE} mount ${VND_DEV} ${MOUNT_POINT} TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS} @echo "installing new bootblocks" -rm -f ${MOUNT_POINT}/boot cp ${MDEC}/boot ${MOUNT_POINT} ${MDEC}/installboot -v ${MOUNT_POINT}/boot ${MDEC}/bootxx ${VND_CRDEV} @echo "" @df -i ${MOUNT_POINT} @echo "" umount ${MOUNT_POINT} vnconfig -u ${VND_CDEV} unconfig: -umount -f ${MOUNT_POINT} -vnconfig -u ${VND_CDEV} -/bin/rm -f ${IMAGE} netbsd.ram.gz: ${KERN} ${RAMDISK} cp ${KERN} netbsd.tmp mdsetimage -v netbsd.tmp ${RAMDISK} strip netbsd.tmp gzip -9 netbsd.tmp mv netbsd.tmp.gz ${.TARGET} clean cleandir: /bin/rm -f *.core ${IMAGE} ${CLEANFILES} .include .include .include