1 1.16 dsl # $NetBSD: Makefile.bootfloppy,v 1.16 2003/07/26 08:26:08 dsl Exp $ 2 1.7 lukem # 3 1.7 lukem # Makefile snippet to create a set of USTAR floppies 4 1.7 lukem # 5 1.1 lukem 6 1.7 lukem # 7 1.7 lukem # Required variables: 8 1.7 lukem # FLOPPYBASE Basename of floppies. Floppy number ${n} will 9 1.7 lukem # be generated as ${FLOPPYBASE}${n}.fs 10 1.8 lukem # FLOPPYKERNEL Kernel to copy 11 1.7 lukem # 12 1.7 lukem # Optional variables: 13 1.13 lukem # FLOPPYKERNDIR ${FLOPPYKERNEL} is from ${.CURDIR}/../${FLOPPYKERNDIR} 14 1.16 dsl # FLOPPY_BOOT Bootstrap to use. [${DESTDIR}/usr/mdec/biosboot] 15 1.16 dsl # FLOPPYBOOTOPTIONS Options for installboot, eg -o console=com0 16 1.7 lukem # 17 1.7 lukem 18 1.8 lukem .include <bsd.own.mk> 19 1.10 lukem .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 20 1.8 lukem 21 1.14 lukem FLOPPYMAX?= 1 22 1.8 lukem FLOPPYSIZE?= 2880 23 1.12 lukem .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880) 24 1.12 lukem FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE} 25 1.12 lukem .else 26 1.12 lukem FLOPPYSIZE= 2880 27 1.12 lukem .endif 28 1.13 lukem FLOPPYKERNDIR?= instkernel 29 1.11 lukem FLOPPYSUFFIX?= .fs 30 1.8 lukem MDEC= ${DESTDIR}/usr/mdec 31 1.16 dsl FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs" 32 1.8 lukem FLOPPYKERNOBJ!= cd ${.CURDIR}/../${FLOPPYKERNDIR} && ${PRINTOBJDIR} 33 1.8 lukem 34 1.15 dsl FLOPPY_BOOT?= ${MDEC}/biosboot 35 1.8 lukem FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL} 36 1.8 lukem FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd 37 1.8 lukem 38 1.10 lukem FLOPPY_RELEASEDIR= installation/floppy 39 1.3 lukem 40 1.8 lukem .include "${DISTRIBDIR}/common/Makefile.tarfloppy" 41 1.1 lukem 42 1.5 lukem .include <bsd.prog.mk> 43