# $NetBSD: Makefile.bootfloppy,v 1.15 2003/07/25 21:19:48 dsl Exp $ # # Makefile snippet to create a set of USTAR floppies # # # Required variables: # FLOPPYBASE Basename of floppies. Floppy number ${n} will # be generated as ${FLOPPYBASE}${n}.fs # FLOPPYKERNEL Kernel to copy # # Optional variables: # FLOPPYKERNDIR ${FLOPPYKERNEL} is from ${.CURDIR}/../${FLOPPYKERNDIR} # FLOPPY_BOOT Bootstrap to use. [${DESTDIR}/usr/mdec/biosboot.sym] # .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" FLOPPYMAX?= 1 FLOPPYSIZE?= 2880 .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880) FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE} .else FLOPPYSIZE= 2880 .endif FLOPPYKERNDIR?= instkernel FLOPPYSUFFIX?= .fs MDEC= ${DESTDIR}/usr/mdec FLOPPYINSTBOOT= "dd conv=notrunc if=${MDEC}/bootxx_ustarfs of=@IMAGE@" FLOPPYKERNOBJ!= cd ${.CURDIR}/../${FLOPPYKERNDIR} && ${PRINTOBJDIR} FLOPPY_BOOT?= ${MDEC}/biosboot FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL} FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd FLOPPY_RELEASEDIR= installation/floppy .include "${DISTRIBDIR}/common/Makefile.tarfloppy" .include