2000-01-19 19:40:10 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2000/01/19 16:40:10 tsutsui Exp $
|
1998-05-20 06:05:58 +04:00
|
|
|
|
|
|
|
MOUNT_POINT?= /mnt
|
|
|
|
VND?= vnd0
|
|
|
|
VND_DEV= /dev/${VND}a
|
|
|
|
VND_RDEV= /dev/r${VND}a
|
|
|
|
VND_CDEV= /dev/${VND}c
|
|
|
|
VND_CRDEV= /dev/r${VND}c
|
1999-04-29 06:17:43 +04:00
|
|
|
MDEC?= ${DESTDIR}/usr/mdec
|
1999-09-10 11:43:00 +04:00
|
|
|
KERNEL?= ${.CURDIR}/../../../sys/arch/alpha/compile/GENERIC/netbsd
|
2000-01-19 19:40:10 +03:00
|
|
|
STRIPPROG?= strip
|
1998-05-20 06:05:58 +04:00
|
|
|
|
1999-02-25 15:31:30 +03:00
|
|
|
GZKERNEL= netbsd
|
1998-05-20 06:05:58 +04:00
|
|
|
IMAGE= GENERIC.fs
|
|
|
|
|
|
|
|
DISKTYPE= floppy
|
|
|
|
|
|
|
|
# Some reasonable values for the -i parameter to newfs are:
|
|
|
|
#
|
|
|
|
# 6144 1147k, 189 inodes free
|
|
|
|
# 16384 1159k, 93 inodes free
|
|
|
|
# 204800 1167k, 29 inodes free
|
|
|
|
INO_BYTES?= 6144
|
|
|
|
|
|
|
|
CLEANFILES+= ${IMAGE} ${GZKERNEL}
|
|
|
|
|
1998-11-05 05:47:14 +03:00
|
|
|
all: GENERIC.fs
|
|
|
|
|
1999-04-07 10:47:49 +04:00
|
|
|
GENERIC.fs: ${GZKERNEL} ${MDEC}/boot ${MDEC}/bootxx.old
|
1999-02-25 15:31:30 +03:00
|
|
|
@echo Creating tar image
|
|
|
|
tar cvf ustar.tmp ${MDEC}/boot ${GZKERNEL}
|
1998-05-20 06:05:58 +04:00
|
|
|
@echo Creating vn image
|
|
|
|
dd if=/dev/zero of=${.TARGET}.tmp count=2880
|
|
|
|
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${.TARGET}.tmp
|
1999-02-25 15:31:30 +03:00
|
|
|
dd bs=8k seek=1 if=ustar.tmp of=${VND_CDEV}
|
1998-05-20 06:05:58 +04:00
|
|
|
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
1999-04-07 10:47:49 +04:00
|
|
|
${MDEC}/installboot.old -b 17 -v \
|
|
|
|
${MDEC}/boot ${MDEC}/bootxx.old ${VND_CRDEV}
|
1998-05-20 06:05:58 +04:00
|
|
|
vnconfig -u ${VND_CDEV}
|
|
|
|
mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
|
|
|
|
${GZKERNEL}: ${KERNEL}
|
1999-02-25 15:31:30 +03:00
|
|
|
cp ${KERNEL} ${.TARGET}
|
2000-01-19 19:40:10 +03:00
|
|
|
${STRIPPROG} ${.TARGET}
|
1999-02-25 15:31:30 +03:00
|
|
|
gzip -9 ${.TARGET}
|
|
|
|
mv ${.TARGET}.gz ${.TARGET}
|
1998-05-20 06:05:58 +04:00
|
|
|
|
|
|
|
unconfig:
|
|
|
|
-vnconfig -u ${VND_CDEV}
|
|
|
|
|
1999-04-29 06:17:43 +04:00
|
|
|
disk: all
|
|
|
|
dd if=GENERIC.fs bs=18k of=/dev/rfd0a
|
|
|
|
|
1998-09-05 18:46:13 +04:00
|
|
|
clean cleandir distclean:
|
1999-02-25 15:31:30 +03:00
|
|
|
/bin/rm -f *.core ${CLEANFILES} ${GZKERNEL} ${GZKERNEL}.gz *.tmp
|
1998-05-20 06:05:58 +04:00
|
|
|
|
1999-05-12 00:08:01 +04:00
|
|
|
# nothing to do here
|
|
|
|
depend includes lint regress tags:
|
|
|
|
|
1998-05-20 06:05:58 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.obj.mk>
|