Home | History | Annotate | Line # | Download | only in common
Makefile.bootfloppy revision 1.19.20.1
      1  1.19.20.1      mjf #	$NetBSD: Makefile.bootfloppy,v 1.19.20.1 2008/06/02 13:21:14 mjf Exp $
      2        1.7    lukem #
      3        1.7    lukem # Makefile snippet to create a set of USTAR floppies
      4        1.7    lukem #
      5        1.1    lukem 
      6        1.7    lukem #
      7        1.7    lukem # Required variables:
      8        1.7    lukem #	FLOPPYBASE	Basename of floppies. Floppy number ${n} will
      9        1.7    lukem #			be generated as ${FLOPPYBASE}${n}.fs
     10        1.8    lukem #	FLOPPYKERNEL	Kernel to copy
     11        1.7    lukem #
     12        1.7    lukem # Optional variables:
     13       1.19  hubertf #	FLOPPYKERNDIR	${FLOPPYKERNEL} is from ${.CURDIR}/../../${FLOPPYKERNDIR}
     14       1.17    lukem #	FLOPPY_BOOT	Bootstrap to use.  [${DESTDIR}/usr/mdec/boot]
     15       1.16      dsl #	FLOPPYBOOTOPTIONS Options for installboot, eg -o console=com0
     16        1.7    lukem #
     17        1.7    lukem 
     18        1.8    lukem .include <bsd.own.mk>
     19       1.10    lukem .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
     20        1.8    lukem 
     21       1.14    lukem FLOPPYMAX?=		1
     22        1.8    lukem FLOPPYSIZE?=		2880
     23       1.12    lukem .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
     24       1.12    lukem FLOPPYMETAFILE!=	printf "USTAR.volsize.%o" ${FLOPPYSIZE}
     25       1.12    lukem .else
     26       1.12    lukem FLOPPYSIZE=	2880
     27       1.12    lukem .endif
     28       1.13    lukem FLOPPYKERNDIR?=		instkernel
     29       1.11    lukem FLOPPYSUFFIX?=		.fs
     30        1.8    lukem MDEC=			${DESTDIR}/usr/mdec
     31       1.16      dsl FLOPPYINSTBOOT=		"${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
     32       1.19  hubertf FLOPPYKERNOBJ!=		cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
     33        1.8    lukem 
     34       1.17    lukem FLOPPY_BOOT?=		${MDEC}/boot
     35        1.8    lukem FLOPPY_NETBSD=		${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
     36  1.19.20.1      mjf FLOPPYFILES=		boot ${DISTRIBDIR}/i386/floppies/common/boot.cfg ${FLOPPYMETAFILE} netbsd
     37       1.18    lukem FLOPPYPAD=		1
     38        1.8    lukem 
     39       1.10    lukem FLOPPY_RELEASEDIR=	installation/floppy
     40        1.3    lukem 
     41        1.8    lukem .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
     42        1.1    lukem 
     43        1.5    lukem .include <bsd.prog.mk>
     44