Home | History | Annotate | Line # | Download | only in fdset
Makefile revision 1.4
      1  1.4  veego #	$NetBSD: Makefile,v 1.4 1999/05/11 20:08:01 veego Exp $
      2  1.1   ross 
      3  1.1   ross IMAGE1=		disk1of2
      4  1.1   ross IMAGE2=		disk2of2
      5  1.1   ross 
      6  1.1   ross INSTKERNEL!=cd ${.CURDIR}/../instkernel; \
      7  1.2   ross 	printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/netbsd.gz\n" | \
      8  1.1   ross 	${MAKE} -s -f-
      9  1.1   ross 
     10  1.1   ross MOUNT_POINT?=	/mnt
     11  1.1   ross VND?=		vnd0
     12  1.1   ross VND_DEV=	/dev/${VND}a
     13  1.1   ross VND_RDEV=	/dev/r${VND}a
     14  1.1   ross VND_CDEV=	/dev/${VND}c
     15  1.1   ross VND_CRDEV=	/dev/r${VND}c
     16  1.1   ross KERN?=		netbsd-xxx
     17  1.1   ross MDEC=		${DESTDIR}/usr/mdec
     18  1.1   ross FSTMP=		ustar.tmp
     19  1.1   ross 
     20  1.3    cgd PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootxx.old
     21  1.1   ross SECONDARYBOOT=	${DESTDIR}/usr/mdec/boot
     22  1.1   ross 
     23  1.1   ross DISKTYPE=	floppy
     24  1.1   ross 
     25  1.1   ross CLEANFILES+=	netbsd ${FSTMP} ${IMAGE1} ${IMAGE2} tmp tmp.gz
     26  1.1   ross 
     27  1.1   ross all:	netbsd
     28  1.1   ross 	@echo Making disk number one.
     29  1.1   ross 	tar cvf ${FSTMP} ${SECONDARYBOOT} netbsd
     30  1.1   ross 	@ echo ''
     31  1.1   ross 	@ls -l ${FSTMP} | (read mode links uid gid size junk;	\
     32  1.1   ross 		bytes=$$((2880 * 512 * 2 - $$size - 8 * 1024));		\
     33  1.1   ross 		echo There are $$bytes \($$(($$bytes / 1024))K\) bytes free\
     34  1.1   ross 			on disk 2.)
     35  1.1   ross 	@ echo ''
     36  1.1   ross 	dd if=/dev/zero of=${IMAGE1} count=2880
     37  1.1   ross 	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}
     38  1.1   ross 	dd bs=8k seek=1 count=179 if=${FSTMP} of=${VND_CDEV}
     39  1.1   ross 	disklabel -rw ${VND_CDEV} ${DISKTYPE}
     40  1.1   ross 	@echo "installing new bootblocks"
     41  1.3    cgd 	${MDEC}/installboot.old -b 17 -v	\
     42  1.1   ross 		${SECONDARYBOOT} ${PRIMARYBOOT} ${VND_CRDEV}
     43  1.1   ross 	vnconfig -u ${VND_CDEV}
     44  1.1   ross 	@echo Making disk number two.
     45  1.1   ross 	echo USTARFS 2 > ${IMAGE2}
     46  1.1   ross 	(echo 'Prototype image created on: ';	\
     47  1.1   ross 		echo -n '     '; date;		\
     48  1.1   ross 		echo -n '     '; date -u) >> ${IMAGE2}
     49  1.1   ross 	(echo Hash value of corresponding volume:; md5 ${IMAGE1}) >> ${IMAGE2}
     50  1.1   ross 	dd bs=8k seek=1 skip=179 conv=sync if=${FSTMP} of=${IMAGE2}
     51  1.1   ross 	@rm ${FSTMP}
     52  1.1   ross 
     53  1.1   ross netbsd: ${INSTKERNEL}
     54  1.2   ross 	cp ${INSTKERNEL} netbsd
     55  1.1   ross 
     56  1.1   ross unconfig:
     57  1.1   ross 	-umount -f ${MOUNT_POINT}
     58  1.1   ross 	-vnconfig -u ${VND_CDEV}
     59  1.1   ross 	-/bin/rm -f ${IMAGE1} ${IMAGE2}
     60  1.1   ross 
     61  1.1   ross clean cleandir distclean:
     62  1.1   ross 	/bin/rm -f *.core ${CLEANFILES}
     63  1.4  veego 
     64  1.4  veego # nothing to do here
     65  1.4  veego depend includes lint regress tags:
     66  1.1   ross 
     67  1.1   ross .include <bsd.own.mk>
     68  1.1   ross .include <bsd.obj.mk>
     69