Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / amd64 / floppies / common / Makefile.bootfloppy
blobed85bae87081741eba3ad72a8defb4a772491cf2
1 #       $NetBSD: Makefile.bootfloppy,v 1.9 2008/04/30 22:00:05 ad 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 FLOPPYSIZE?=            2880
22 .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
23 FLOPPYMETAFILE!=        printf "USTAR.volsize.%o" ${FLOPPYSIZE}
24 .else
25 FLOPPYSIZE=     2880
26 .endif
27 FLOPPYKERNDIR?=         instkernel
28 FLOPPYSUFFIX?=          .fs
29 MDEC=                   ${DESTDIR}/usr/mdec
30 FLOPPYINSTBOOT=         "${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
31 FLOPPYKERNOBJ!=         cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
33 FLOPPY_BOOT?=           ${MDEC}/boot
34 FLOPPY_BOOT_CFG?=       ${DISTRIBDIR}/amd64/floppies/common/boot.cfg
35 FLOPPY_NETBSD=          ${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
36 FLOPPYFILES=            boot boot.cfg ${FLOPPYMETAFILE} netbsd
38 FLOPPY_RELEASEDIR=      installation/floppy
40 .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
42 .include <bsd.prog.mk>