xref: /netbsd-src/distrib/sparc64/bootfs/Makefile (revision 19ef5b5b0bcb90f63509df6e78769de1b57c2758)
1#	$NetBSD: Makefile,v 1.9 2010/04/02 21:29:30 martin 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 need to be fed to distrib/common/sunbootcd.sh
9# to get a workable CDROM image.
10#
11
12.include <bsd.own.mk>
13.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
14
15.include <bsd.kernobj.mk>
16
17IMAGE=		boot.fs
18IMAGESIZE=	1m
19IMAGEENDIAN=	be
20
21LISTS=		${.CURDIR}/list
22MTREECONF=	${DISTRIBDIR}/common/mtree.dot
23
24RAMDISKDIR!=	cd ${.CURDIR}/../instfs && ${PRINTOBJDIR}
25RAMDISK=	${RAMDISKDIR}/install.fs
26PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootblk
27
28PARSELISTENV=	RAMDISKDIR=${RAMDISKDIR:Q}
29IMAGEDEPENDS=	${DESTDIR}/usr/mdec/ofwboot ${PRIMARYBOOT}
30IMAGEPOSTBUILD=	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
31
32IMAGE_RELEASEDIR=	installation/misc
33
34.include "${DISTRIBDIR}/common/Makefile.image"
35
36.include <bsd.prog.mk>
37