1999-04-16 17:31:40 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.3 1999/04/16 13:31:40 simonb Exp $
|
1998-11-17 05:38:17 +03:00
|
|
|
|
|
|
|
VND= vnd0c
|
|
|
|
#IMAGESIZE?= 8192 # 512 byte blocks
|
|
|
|
IMAGESIZE?= 65536 # 512 byte blocks: full 32-meg root.
|
1999-03-15 23:54:54 +03:00
|
|
|
NEWFSOPTS?= -c 64 -B le
|
1998-11-17 05:38:17 +03:00
|
|
|
DISKTYPE?= miniroot
|
1999-04-16 17:31:40 +04:00
|
|
|
LABELPROTO?= ${.CURDIR}/../${MACHINE}/miniroot/diskimage.label.proto
|
1998-11-17 05:38:17 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# install bootblock, so that we can boot from there
|
|
|
|
#
|
|
|
|
#BOOTINSTALL=${DESTDIR}/usr/mdec/installboot ${DESTDIR}/usr/mdec/xxboot ${VND_RDEV}
|
|
|
|
PMAX_MDEC_CMD?=-B -b /usr/mdec/rzboot -s /usr/mdec/bootrz
|
|
|
|
LABEL_CMD?=${DESTDIR}/sbin/disklabel -r -w ${PMAX_MDEC_CMD} ${VND_RDEV}
|
|
|
|
|
|
|
|
|
|
|
|
# write bootblocks. Update label with fictious name and geometry
|
|
|
|
# that instructs kernel to recompute label from # SCSI geometry info
|
|
|
|
# (since one install method is to dd this onto the start of a disk.)
|
|
|
|
BOOTINSTALL= ${DESTDIR}/sbin/disklabel -r -R ${PMAX_MDEC_CMD} ${VND_RDEV} \
|
1999-04-16 17:31:40 +04:00
|
|
|
${LABELPROTO}
|
1998-11-17 05:38:17 +03:00
|
|
|
|
|
|
|
# Write preliminary Label so that newfs succeeds when updating label.
|
|
|
|
PRELABEL=${LABEL_CMD} ${DISKTYPE}
|
|
|
|
PRELABEL=${BOOTINSTALL}
|