Home | History | Annotate | Line # | Download | only in common
Makefile.bootfloppy revision 1.21.2.1
      1  1.21.2.1      snj #	$NetBSD: Makefile.bootfloppy,v 1.21.2.1 2008/11/15 03:27:58 snj 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.21  tsutsui I386COMMON=	${.CURDIR}/../common
     22      1.21  tsutsui 
     23      1.14    lukem FLOPPYMAX?=		1
     24       1.8    lukem FLOPPYSIZE?=		2880
     25      1.12    lukem .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
     26      1.12    lukem FLOPPYMETAFILE!=	printf "USTAR.volsize.%o" ${FLOPPYSIZE}
     27      1.12    lukem .else
     28      1.12    lukem FLOPPYSIZE=	2880
     29      1.12    lukem .endif
     30      1.13    lukem FLOPPYKERNDIR?=		instkernel
     31      1.11    lukem FLOPPYSUFFIX?=		.fs
     32       1.8    lukem MDEC=			${DESTDIR}/usr/mdec
     33      1.16      dsl FLOPPYINSTBOOT=		"${TOOL_INSTALLBOOT} ${FLOPPYBOOTOPTIONS} -m${MACHINE} @IMAGE@ ${MDEC}/bootxx_ustarfs"
     34      1.19  hubertf FLOPPYKERNOBJ!=		cd ${.CURDIR}/../../${FLOPPYKERNDIR} && ${PRINTOBJDIR}
     35       1.8    lukem 
     36      1.17    lukem FLOPPY_BOOT?=		${MDEC}/boot
     37      1.21  tsutsui FLOPPY_BOOT_CFG?=	${I386COMMON}/boot.cfg
     38       1.8    lukem FLOPPY_NETBSD=		${FLOPPYKERNOBJ}/${FLOPPYKERNEL}
     39      1.21  tsutsui FLOPPYFILES=		boot boot.cfg ${FLOPPYMETAFILE} netbsd
     40      1.18    lukem FLOPPYPAD=		1
     41       1.8    lukem 
     42      1.10    lukem FLOPPY_RELEASEDIR=	installation/floppy
     43       1.3    lukem 
     44       1.8    lukem .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
     45       1.1    lukem 
     46       1.5    lukem .include <bsd.prog.mk>
     47