diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-23 15:58:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-23 15:58:34 +0000 |
commit | 018f89c090277b23e21223d3c6024d4486d0b3ed (patch) | |
tree | 1dc8c8db4294bfba6463b7cc60c1ec248ef863f8 /distrib/sun3/ramdisk/Makefile | |
parent | af17b126b4c74b74f453d3d9ebc956e537c50bf2 (diff) |
update from netbsd
Diffstat (limited to 'distrib/sun3/ramdisk/Makefile')
-rw-r--r-- | distrib/sun3/ramdisk/Makefile | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/distrib/sun3/ramdisk/Makefile b/distrib/sun3/ramdisk/Makefile index 0a7294833bb..278e1c30042 100644 --- a/distrib/sun3/ramdisk/Makefile +++ b/distrib/sun3/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 1995/10/13 16:51:30 gwr Exp $ +# $NetBSD: Makefile,v 1.3 1995/11/21 21:19:14 gwr Exp $ TOP= ${.CURDIR}/.. @@ -13,19 +13,19 @@ TREE= ${TOP}/common/${IMAGE}.tree LISTS= ${TOP}/common/${CBIN}.list \ ${TOP}/common/${IMAGE}.list +KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd + MOUNT_POINT= /mnt -DISKTYPE= rdroot BDEV= /dev/rd0 -CDEV?= /dev/rd0 - -KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd +CDEV= /dev/rd0 # These are all the parameters for the root fs: (256K) +DISKTYPE= rdroot NBLKS= 512 -# args: old fmt, minfree, opt, b/i trks, sects, cpg +# old format, minfree, opt, b/i trks, sects, cpg NEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16 -CLEANFILES= netbsd-rd rdsetroot +CLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs netbsd-rd : rdsetroot ${IMAGE}.fs cp ${KERNEL} netbsd-tmp @@ -35,18 +35,27 @@ netbsd-rd : rdsetroot ${IMAGE}.fs rdsetroot: ${TOP}/common/rdsetroot.c $(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c -${IMAGE}.fs: ${CBIN} do_mount do_files do_umount +${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} + -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} + mount ${BDEV} ${MOUNT_POINT} + mtree -def ${TREE} -p ${MOUNT_POINT}/ -u + TOPDIR=${TOP} CURDIR=${.CURDIR} \ + OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ + sh ${TOP}/common/RunList.sh ${LISTS} + sync + @echo "" + @df -i ${MOUNT_POINT} + @echo "" + -umount ${MOUNT_POINT} dd if=${CDEV} of=$@ count=${NBLKS} # Do not delete this if I change my mind and kill make... .PRECIOUS: ${IMAGE}.fs -# Rules used making ${IMAGE}.fs (do_*) -.include "${TOP}/common/Make.fsimage" - # Rules for making ${CBIN} ... .include "${TOP}/common/Make.crunch" +# This is listed in rd_bin.conf but is built here. ${CBIN} : libhack.o # Use stubs to eliminate some large stuff from libc |