1 1.13 lukem # $NetBSD: Makefile.bootfloppy,v 1.13 2002/10/14 16:20:40 lukem 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.13 lukem # FLOPPYKERNDIR ${FLOPPYKERNEL} is from ${.CURDIR}/../${FLOPPYKERNDIR} 14 1.8 lukem # FLOPPY_BOOT Bootstrap to use. [${DESTDIR}/usr/mdec/biosboot.sym] 15 1.7 lukem # 16 1.7 lukem 17 1.8 lukem .include <bsd.own.mk> 18 1.10 lukem .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 19 1.8 lukem 20 1.8 lukem FLOPPYSIZE?= 2880 21 1.12 lukem .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880) 22 1.12 lukem FLOPPYMETAFILE!= printf "USTAR.volsize.%o" ${FLOPPYSIZE} 23 1.12 lukem .else 24 1.12 lukem FLOPPYSIZE= 2880 25 1.12 lukem .endif 26 1.13 lukem FLOPPYKERNDIR?= instkernel 27 1.11 lukem FLOPPYSUFFIX?= .fs 28 1.8 lukem MDEC= ${DESTDIR}/usr/mdec 29 1.8 lukem # XXXDISTRIB: need MI installboot for i386 30 1.8 lukem FLOPPYINSTBOOT= "${MDEC}/installboot -b 17 -f ${FLOPPY_BOOT} @IMAGE@" 31 1.8 lukem FLOPPYKERNOBJ!= cd ${.CURDIR}/../${FLOPPYKERNDIR} && ${PRINTOBJDIR} 32 1.8 lukem 33 1.8 lukem FLOPPY_BOOT?= ${MDEC}/biosboot.sym 34 1.8 lukem FLOPPY_BOOT_STRIP= yes 35 1.8 lukem FLOPPY_NETBSD= ${FLOPPYKERNOBJ}/${FLOPPYKERNEL} 36 1.8 lukem FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd 37 1.8 lukem 38 1.10 lukem FLOPPY_RELEASEDIR= installation/floppy 39 1.3 lukem 40 1.8 lukem .include "${DISTRIBDIR}/common/Makefile.tarfloppy" 41 1.1 lukem 42 1.5 lukem .include <bsd.prog.mk> 43