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