blob: ebe7504aef2fbead99b0eec15e053ad4f84ef7ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile.bootfloppy,v 1.1.1.1 2004/02/26 03:58:58 xtraeme Exp $
# $Id: Makefile.bootfloppy,v 1.1.1.1 2004/02/26 03:58:58 xtraeme Exp $
# Makefile snippet to create a set of USTAR floppies
#
#
# Required variables:
# FLOPPYBASE Basename of floppies. Floppy number ${n} will
# be generated as ${FLOPPYBASE}${n}.fs
# FLOPPYKERNEL Kernel to copy
#
# Optional variables:
# FLOPPYKERNDIR ${FLOPPYKERNEL} is from ${.CURDIR}/../${FLOPPYKERNDIR}
# FLOPPY_BOOT Bootstrap to use. [${DESTDIR}/usr/mdec/boot]
# FLOPPYBOOTOPTIONS Options for installboot, eg -o console=com0
#
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
FLOPPYMAX?= 1
FLOPPYSIZE?= 2880
.if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE}
.else
FLOPPYSIZE= 2880
.endif
FLOPPYKERNDIR?= instkernel
FLOPPYSUFFIX?= .fs
MDEC= ${DESTDIR}/usr/mdec
FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
FLOPPYKERNOBJ!= cd ${FLOPPYKERNDIR} && ${PRINTOBJDIR}
FLOPPY_BOOT?= ${MDEC}/boot
FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd
FLOPPY_RELEASEDIR= @ISODIR@/stand
.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
.include <bsd.prog.mk>
|