2003-07-10 14:33:58 +04:00
|
|
|
# $NetBSD: Makefile,v 1.19 2003/07/10 10:34:01 lukem Exp $
|
2002-05-02 22:02:14 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
2000-05-02 20:06:45 +04:00
|
|
|
|
|
|
|
.include <bsd.kernobj.mk>
|
1998-05-20 06:05:58 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
# Stuff an arbitrary kernel onto a ustarfs boot floppy set.
|
1998-05-20 06:05:58 +04:00
|
|
|
#
|
2002-05-04 05:40:06 +04:00
|
|
|
# Optional variables available:
|
|
|
|
# FLOPPYKERNEL Path to kernel to stuff onto the floppy.
|
|
|
|
# [ ${KERNOBJDIR}/GENERIC/netbsd ]
|
|
|
|
#
|
|
|
|
# FLOPPYBASE Basename of floppies (written as "${FLOPPYBASE}N.fs")
|
|
|
|
# [ "generic" ]
|
|
|
|
#
|
|
|
|
# FLOPPYSIZE Size of a floppy. [ 2880 ]
|
|
|
|
#
|
|
|
|
# FLOPPYMAX Maximum number of floppies allowed in the set. [1]
|
|
|
|
#
|
|
|
|
FLOPPYKERNEL?= ${KERNOBJDIR}/GENERIC/netbsd
|
|
|
|
FLOPPYBASE?= generic
|
|
|
|
FLOPPYMAX?= 1
|
1998-11-05 05:47:14 +03:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
FLOPPY_RELEASEDIR?= installation/misc
|
1998-05-20 06:05:58 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
.if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
|
2002-05-12 14:49:13 +04:00
|
|
|
FLOPPYMETAFILE!=printf "USTAR.volsize.%o" ${FLOPPYSIZE}
|
2002-05-04 05:40:06 +04:00
|
|
|
.else
|
|
|
|
FLOPPYSIZE= 2880
|
|
|
|
.endif
|
1998-05-20 06:05:58 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd
|
1998-05-20 06:05:58 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
MDEC= ${DESTDIR}/usr/mdec
|
|
|
|
KERNOBJ!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
|
|
|
|
FLOPPY_BOOT= ${MDEC}/ustarboot
|
2003-07-10 14:33:58 +04:00
|
|
|
FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} -v -m ${MACHINE} -t raw -b 17 @IMAGE@ ${FLOPPY_BOOT}"
|
1999-04-29 06:17:43 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
netbsd: ${FLOPPYKERNEL}
|
|
|
|
@echo "Copying stripped and gzipped ${.ALLSRC} to ${.TARGET}"
|
|
|
|
@rm -f ${.TARGET} ${.TARGET}.tmp
|
|
|
|
cp ${.ALLSRC} ${.TARGET}.tmp
|
|
|
|
${STRIP} ${.TARGET}.tmp
|
|
|
|
gzip -9f ${.TARGET}.tmp
|
|
|
|
mv ${.TARGET}.tmp.gz ${.TARGET}
|
1998-05-20 06:05:58 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
CLEANFILES+= netbsd netbsd.tmp netbsd.tmp.gz
|
1999-05-12 00:08:01 +04:00
|
|
|
|
2002-05-04 05:40:06 +04:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
|
2002-05-02 22:02:14 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|