Makefile.bootfloppy revision 1.14
1#	$NetBSD: Makefile.bootfloppy,v 1.14 2002/10/16 00:59:24 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/biosboot.sym]
15#
16
17.include <bsd.own.mk>
18.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
19
20FLOPPYMAX?=		1
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
30#	XXXDISTRIB: need MI installboot for i386
31FLOPPYINSTBOOT=		"${MDEC}/installboot -b 17 -f ${FLOPPY_BOOT} @IMAGE@"
32FLOPPYKERNOBJ!=		cd ${.CURDIR}/../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
33
34FLOPPY_BOOT?=		${MDEC}/biosboot.sym
35FLOPPY_BOOT_STRIP=	yes
36FLOPPY_NETBSD=		${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
37FLOPPYFILES=		boot ${FLOPPYMETAFILE} netbsd
38
39FLOPPY_RELEASEDIR=	installation/floppy
40
41.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
42
43.include <bsd.prog.mk>
44