Home | History | Annotate | Line # | Download | only in common
      1  1.23      jym #	$NetBSD: Makefile.bootfloppy,v 1.23 2011/02/10 00:43:20 jym 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.8    lukem FLOPPYSIZE?=		2880
     22  1.12    lukem .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
     23  1.12    lukem FLOPPYMETAFILE!=	printf "USTAR.volsize.%o" ${FLOPPYSIZE}
     24  1.12    lukem .else
     25  1.12    lukem FLOPPYSIZE=	2880
     26  1.12    lukem .endif
     27  1.13    lukem FLOPPYKERNDIR?=		instkernel
     28  1.11    lukem FLOPPYSUFFIX?=		.fs
     29   1.8    lukem MDEC=			${DESTDIR}/usr/mdec
     30  1.16      dsl FLOPPYINSTBOOT=		"${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
     31  1.19  hubertf FLOPPYKERNOBJ!=		cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
     32   1.8    lukem 
     33  1.17    lukem FLOPPY_BOOT?=		${MDEC}/boot
     34  1.23      jym FLOPPY_BOOT_CFG?=	${DISTRIBDIR}/${MACHINE}/floppies/common/boot.cfg
     35   1.8    lukem FLOPPY_NETBSD=		${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
     36  1.21  tsutsui FLOPPYFILES=		boot 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