convert to building with NDWO Makefile.tarfloppy.
alpha is now fully NDWO (well, at least, the stuff that's enabled in distrib/alpha/Makefile)
This commit is contained in:
parent
c63ad27273
commit
8987947e49
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.18 2002/04/30 15:08:44 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.19 2002/05/02 13:04:48 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
|
||||
|
@ -16,7 +16,7 @@ release: check_RELEASEDIR
|
|||
.for i in floppy diskimage instkernel tapeimage
|
||||
${RELINSTALL} ${.CURDIR}/README.files ${ITARGET}/$i/.
|
||||
.endfor
|
||||
${RELINSTALL} ${CDHDTAPEOBJ}/cdhdtape ${ITARGET}/diskimage/.
|
||||
${RELINSTALL} ${CDHDTAPEOBJ}/cdhdtape1.fs ${ITARGET}/diskimage/cdhdtape
|
||||
${RELINSTALL} ${FDSETOBJ}/disk1.fs ${ITARGET}/floppy/disk1of2
|
||||
${RELINSTALL} ${FDSETOBJ}/disk2.fs ${ITARGET}/floppy/disk2of2
|
||||
${RELINSTALL} ${INSTKERNOBJ}/netbsd.INSTALL.gz ${ITARGET}/instkernel/netbsd.gz
|
||||
|
|
|
@ -1,67 +1,21 @@
|
|||
# $NetBSD: Makefile,v 1.9 2002/04/26 17:30:01 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2002/05/02 13:04:49 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
|
||||
|
||||
IMAGE= cdhdtape
|
||||
IMAGESIZE= 5760
|
||||
NFILES= 3
|
||||
FLOPPYBASE= cdhdtape
|
||||
FLOPPYSIZE= 5760
|
||||
FLOPPYMETAFILE!=printf "tapelabel USTAR.volsize.%o" ${FLOPPYSIZE}
|
||||
FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd
|
||||
FLOPPYMAX= 1
|
||||
|
||||
INSTKERNELDIR!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
|
||||
INSTKERNEL= ${INSTKERNELDIR}/netbsd.INSTALL.gz
|
||||
|
||||
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
|
||||
KERN?= netbsd-xxx
|
||||
MDEC= ${DESTDIR}/usr/mdec
|
||||
FSTMP= ustar.tmp
|
||||
KERNOBJ!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
|
||||
FLOPPY_NETBSD= ${KERNOBJ}/netbsd.INSTALL.gz
|
||||
FLOPPY_BOOT= ${MDEC}/ustarboot
|
||||
FLOPPYINSTBOOT=\
|
||||
"${INSTALLBOOT} -m ${MACHINE} -t raw -v -b 17 @IMAGE@ ${FLOPPY_BOOT}"
|
||||
|
||||
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx.old
|
||||
SECONDARYBOOT= ${DESTDIR}/usr/mdec/boot
|
||||
.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
|
||||
|
||||
DISKTYPE= floppy
|
||||
METANAME!= printf USTAR.volsize.%o ${IMAGESIZE}
|
||||
|
||||
CLEANFILES+= netbsd ${FSTMP} ${IMAGE} tmp tmp.gz USTAR.volsize.*
|
||||
|
||||
all: netbsd
|
||||
@echo Making CD/tape image
|
||||
cp /dev/null ${METANAME}
|
||||
cp /dev/null tapelabel
|
||||
tar cvf ${FSTMP} ${SECONDARYBOOT} tapelabel ${METANAME} netbsd
|
||||
@rm tapelabel
|
||||
@echo not really doing rm ${METANAME}
|
||||
@ echo ''
|
||||
@ls -l ${FSTMP} | (read mode links uid gid size junk; \
|
||||
bytes=$$((${IMAGESIZE} * 512 - $$size - 8 * 1024));\
|
||||
echo There are $$bytes \($$(($$bytes / 1024))K\) bytes free)
|
||||
@ echo ''
|
||||
dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE}
|
||||
vnconfig -v -c ${VND} ${IMAGE} \
|
||||
512/18/2/$$((${IMAGESIZE} / (18 * 2)))
|
||||
dd bs=8k seek=1 if=${FSTMP} of=${VND_CDEV}
|
||||
@echo not really doing rm ${FSTMP}
|
||||
disklabel -rw ${VND} ${DISKTYPE}
|
||||
@echo "installing new bootblocks"
|
||||
${MDEC}/installboot.old -b 17 -v \
|
||||
${SECONDARYBOOT} ${PRIMARYBOOT} ${VND_CRDEV}
|
||||
vnconfig -u ${VND}
|
||||
|
||||
netbsd: ${INSTKERNEL}
|
||||
cp ${INSTKERNEL} netbsd
|
||||
|
||||
unconfig:
|
||||
-umount -f ${MOUNT_POINT}
|
||||
-vnconfig -u ${VND}
|
||||
-/bin/rm -f ${IMAGE}
|
||||
|
||||
clean cleandir distclean:
|
||||
/bin/rm -f *.core ${CLEANFILES}
|
||||
|
||||
# nothing to do here
|
||||
depend includes lint regress tags:
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in New Issue