1 # $NetBSD: Makefile.bootfloppy,v 1.21 2008/09/26 18:36:44 tsutsui Exp $
3 # Makefile snippet to create a set of USTAR floppies
8 # FLOPPYBASE Basename of floppies. Floppy number ${n} will
9 # be generated as ${FLOPPYBASE}${n}.fs
10 # FLOPPYKERNEL Kernel to copy
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
19 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
21 I386COMMON= ${.CURDIR}/../common
25 .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
26 FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE}
30 FLOPPYKERNDIR?= instkernel
32 MDEC= ${DESTDIR}/usr/mdec
33 FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
34 FLOPPYKERNOBJ!= cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
36 FLOPPY_BOOT?= ${MDEC}/boot
37 FLOPPY_BOOT_CFG?= ${I386COMMON}/boot.cfg
38 FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
39 FLOPPYFILES= boot boot.cfg ${FLOPPYMETAFILE} netbsd
42 FLOPPY_RELEASEDIR= installation/floppy
44 .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
46 .include <bsd.prog.mk>