Expand PMF_FN_* macros.
[netbsd-mini2440.git] / distrib / i386 / floppies / common / Makefile.bootfloppy
blobf10ef52839874d83d4d6da35c2212636d87efd00
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
7 # Required variables:
8 #       FLOPPYBASE      Basename of floppies. Floppy number ${n} will
9 #                       be generated as ${FLOPPYBASE}${n}.fs
10 #       FLOPPYKERNEL    Kernel to copy
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
18 .include <bsd.own.mk>
19 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
21 I386COMMON=     ${.CURDIR}/../common
23 FLOPPYMAX?=             1
24 FLOPPYSIZE?=            2880
25 .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
26 FLOPPYMETAFILE!=        printf "USTAR.volsize.%o" ${FLOPPYSIZE}
27 .else
28 FLOPPYSIZE=     2880
29 .endif
30 FLOPPYKERNDIR?=         instkernel
31 FLOPPYSUFFIX?=          .fs
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
40 FLOPPYPAD=              1
42 FLOPPY_RELEASEDIR=      installation/floppy
44 .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
46 .include <bsd.prog.mk>