1# $NetBSD: Makefile.bootfloppy,v 1.22 2008/11/04 23:02:52 dbj 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 21I386COMMON= ${.CURDIR}/../common 22 23FLOPPYMAX?= 1 24FLOPPYSIZE?= 2880 25.if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880) 26FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE} 27.else 28FLOPPYSIZE= 2880 29.endif 30FLOPPYKERNDIR?= instkernel 31FLOPPYSUFFIX?= .fs 32MDEC= ${DESTDIR}/usr/mdec 33FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs" 34FLOPPYKERNOBJ!= cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR} 35 36FLOPPY_BOOT?= ${MDEC}/boot 37FLOPPY_BOOT_CFG?= ${I386COMMON}/boot.cfg 38FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL} 39FLOPPYFILES= boot boot.cfg ${FLOPPYMETAFILE} netbsd 40FLOPPYPAD= 1 41 42FLOPPY_RELEASEDIR= installation/floppy 43 44.include "${DISTRIBDIR}/common/Makefile.tarfloppy" 45 46.include <bsd.prog.mk> 47