xref: /netbsd/distrib/sparc64/bootfs/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.1 2002/05/20 21:50:10 eeh 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
29IMAGEDEPENDS=	${RAMDISKDIR}/netbsd.INSTALL.gz ${DESTDIR}/usr/mdec/ofwboot \
30		${PRIMARYBOOT}
31IMAGEPOSTBUILD=	${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot
32
33IMAGE_RELEASEDIR=	installation/misc
34
35.include "${DISTRIBDIR}/common/Makefile.image"
36
37.include <bsd.prog.mk>
38