1 # $NetBSD: Makefile,v 1.19 2003/07/10 10:34:01 lukem Exp $
4 .
include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 .
include <bsd.kernobj.mk
>
8 # Stuff an arbitrary kernel onto a ustarfs boot floppy set.
10 # Optional variables available:
11 # FLOPPYKERNEL Path to kernel to stuff onto the floppy.
12 # [ ${KERNOBJDIR}/GENERIC/netbsd ]
14 # FLOPPYBASE Basename of floppies (written as "${FLOPPYBASE}N.fs")
17 # FLOPPYSIZE Size of a floppy. [ 2880 ]
19 # FLOPPYMAX Maximum number of floppies allowed in the set. [1]
21 FLOPPYKERNEL?
= ${KERNOBJDIR}/GENERIC
/netbsd
25 FLOPPY_RELEASEDIR?
= installation
/misc
27 .if defined
(FLOPPYSIZE
) && (${FLOPPYSIZE} != 2880)
28 FLOPPYMETAFILE
!=printf
"USTAR.volsize.%o" ${FLOPPYSIZE}
33 FLOPPYFILES
= boot
${FLOPPYMETAFILE} netbsd
35 MDEC
= ${DESTDIR}/usr
/mdec
36 KERNOBJ
!= cd
${.CURDIR
}/..
/instkernel
&& ${PRINTOBJDIR}
37 FLOPPY_BOOT
= ${MDEC}/ustarboot
38 FLOPPYINSTBOOT
= "${TOOL_INSTALLBOOT} -v -m ${MACHINE} -t raw -b 17 @IMAGE@ ${FLOPPY_BOOT}"
40 netbsd
: ${FLOPPYKERNEL}
41 @echo
"Copying stripped and gzipped ${.ALLSRC} to ${.TARGET}"
42 @
rm -f
${.TARGET
} ${.TARGET
}.tmp
43 cp
${.ALLSRC
} ${.TARGET
}.tmp
44 ${STRIP} ${.TARGET
}.tmp
45 gzip
-9nf
${.TARGET
}.tmp
46 mv
${.TARGET
}.tmp.gz
${.TARGET
}
48 CLEANFILES
+= netbsd netbsd.tmp netbsd.tmp.gz
50 .
include "${DISTRIBDIR}/common/Makefile.tarfloppy"
52 .
include <bsd.prog.mk
>