# $NetBSD: Makefile,v 1.1 1995/10/08 23:07:53 gwr Exp $ TOP= ${.CURDIR}/.. # This include just sets REV=XX .include "${TOP}/Makefile.inc" IMAGE= miniroot CBIN= mini_usr TREE= ${TOP}/common/${IMAGE}.tree LISTS= ${TOP}/common/mini_sbin.list \ ${TOP}/common/mini_bin.list \ ${TOP}/common/${CBIN}.list \ ${TOP}/common/${IMAGE}.list MOUNT_POINT= /mnt DISKTYPE= miniroot BDEV= /dev/sd2b CDEV= /dev/rsd2b KERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd # These are all the parameters for the miniroot: (6MB) NBLKS= 12288 # old format, minfree, opt, b/i trks, sects, cpg NEWFSARGS= -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16 ${IMAGE}.fs: ${CBIN} do_mount do_files do_bootxx do_kernel do_umount dd if=${CDEV} of=$@ bs=64b count=`expr ${NBLKS} / 64` # Only do these for the miniroot, not the ramdisk. do_bootxx: sync ; sleep 1 ; sync cd ${MOUNT_POINT} ;\ usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV} # Copy the generic kernel do_kernel: cp -p ${KERNEL} ${MOUNT_POINT}/netbsd # Rules used making ${IMAGE}.fs (do_*) .include "${TOP}/common/Make.fsimage" # Rules for making ${CBIN} ... .include "${TOP}/common/Make.crunch" clean cleandir: echo rm -f core ${CLEANFILES} *.o # Standard rules needed by the above... .include