Home | History | Annotate | Line # | Download | only in bootfs
      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 
     17 IMAGE=		boot.fs
     18 IMAGESIZE=	1m
     19 IMAGEENDIAN=	be
     20 
     21 LISTS=		${.CURDIR}/list
     22 MTREECONF=	${DISTRIBDIR}/common/mtree.dot
     23 
     24 RAMDISKDIR!=	cd ${.CURDIR}/../instfs && ${PRINTOBJDIR}
     25 RAMDISK=	${RAMDISKDIR}/install.fs
     26 PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootblk
     27 
     28 PARSELISTENV=	RAMDISKDIR=${RAMDISKDIR:Q}
     29 IMAGEDEPENDS=	${DESTDIR}/usr/mdec/ofwboot ${PRIMARYBOOT}
     30 IMAGEPOSTBUILD=	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
     31 
     32 IMAGE_RELEASEDIR=	installation/misc
     33 
     34 .include "${DISTRIBDIR}/common/Makefile.image"
     35 
     36 .include <bsd.prog.mk>
     37