diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-08 07:04:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-08 07:04:17 +0000 |
commit | 68385f74308356b5151f07577f5e20411d7f354c (patch) | |
tree | e3833bceb5c0e1c6dffca0ff22b4a1eeee3be885 /distrib/miniroot | |
parent | 90a4497f75d92a7e78e2c7e35370202a465d16aa (diff) |
2.0, deal with nfs, build kernel
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/distrib/miniroot/Makefile b/distrib/miniroot/Makefile index 4daa0566758..16c59baf586 100644 --- a/distrib/miniroot/Makefile +++ b/distrib/miniroot/Makefile @@ -1,7 +1,7 @@ # $NetBSD: Makefile,v 1.2.4.3 1996/07/04 07:05:32 leo Exp $ # Revision is 1.2 -REV= 12 +REV= 20 CBIN= instbin ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot @@ -14,7 +14,9 @@ MOUNT_POINT?= /mnt VND?= vnd0a VND_DEV= /dev/${VND} VND_RDEV= /dev/r${VND} -IMAGE?= miniroot-${REV}.fs +PID!= echo $$$$ +REALIMAGE!= echo /tmp/image.${PID} +IMAGE?= miniroot${REV}.fs IMAGESIZE?= 10240 # 5Mb in 512 byte blocks NEWFSOPTS?= @@ -28,9 +30,15 @@ all: @false .else -all: ${CBIN} - dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} - vnconfig -v -c ${VND_DEV} ${IMAGE} +bsd: + cd ${.CURDIR}/../../../../sys/arch/${MACHINE}/conf && config GENERIC + cd ${.CURDIR}/../../../../sys/arch/${MACHINE}/compile/GENERIC && + make clean && make depend && make && + cp ${.CURDIR}/../../../../sys/arch/${MACHINE}/compile/GENERIC/bsd bsd + +all: ${CBIN} bsd + dd if=/dev/zero of=${REALIMAGE} count=${IMAGESIZE} + vnconfig -v -c ${VND_DEV} ${REALIMAGE} newfs -m 0 -o space ${NEWFSOPTS} ${VND_RDEV} miniroot mount ${VND_DEV} ${MOUNT_POINT} mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u @@ -42,6 +50,7 @@ all: ${CBIN} umount ${MOUNT_POINT} vnconfig -u ${VND_DEV} cat /*bin/* > /dev/null + cp ${REALIMAGE} ${IMAGE} unconfig: -umount -f ${MOUNT_POINT} |