xref: /netbsd/distrib/sparc64/bootfs/Makefile (revision c4a72b64)
1#	$NetBSD: Makefile,v 1.3 2002/11/18 12:39:54 lukem Exp $
2#
3# boot.fs is the image for cdrom booting.
4#
5# It is constructed by packaging an INSTALL kernel and ofwboot together
6# into a FFS filesystem and slapping on a disklabel and bootblock.
7#
8# boot.fs along with an ISO image with a correct .slicemapfile in
9# the root directory need to be fed to mksunbootcd to get a workable
10# CDROM image.
11#
12
13.include <bsd.own.mk>
14.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
15
16.include <bsd.kernobj.mk>
17
18IMAGE=		boot.fs
19IMAGESIZE=	4m
20IMAGEENDIAN=	be
21
22LISTS=		${.CURDIR}/list
23MTREECONF=	${DISTRIBDIR}/common/mtree.dot
24
25RAMDISKDIR!=	cd ${.CURDIR}/../instfs && ${PRINTOBJDIR}
26RAMDISK=	${RAMDISKDIR}/install.fs
27PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootblk
28
29PARSELISTENV=	RAMDISKDIR=${RAMDISKDIR:Q}
30IMAGEDEPENDS=	${RAMDISKDIR}/netbsd-INSTALL.gz ${DESTDIR}/usr/mdec/ofwboot \
31		${PRIMARYBOOT}
32IMAGEPOSTBUILD=	${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot
33
34IMAGE_RELEASEDIR=	installation/misc
35
36.include "${DISTRIBDIR}/common/Makefile.image"
37
38.include <bsd.prog.mk>
39