diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /distrib/sun3/miniroot |
initial import of NetBSD tree
Diffstat (limited to 'distrib/sun3/miniroot')
-rw-r--r-- | distrib/sun3/miniroot/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/distrib/sun3/miniroot/Makefile b/distrib/sun3/miniroot/Makefile new file mode 100644 index 00000000000..b3defc8ae66 --- /dev/null +++ b/distrib/sun3/miniroot/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.2 1995/10/13 16:46:47 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 + +# 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" + +clean cleandir: + -rm -f a.out core *.core *.o + -rm -f ${CLEANFILES} + +# Standard rules needed by the above... +.include <bsd.obj.mk> |