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