Home | History | Annotate | Line # | Download | only in bootfs
Makefile revision 1.37
      1  1.37      mrg #	$NetBSD: Makefile,v 1.37 2002/07/29 14:23:12 mrg Exp $
      2  1.25       pk #
      3  1.25       pk # boot.fs is the image for disk 1 of the two-set floppy based installation
      4  1.25       pk # method.
      5  1.25       pk #
      6  1.25       pk # It is constructed by injecting the microroot filesystem `ramdisk.fs'
      7  1.25       pk # into the md based kernel built from the INSTALL kernel configuration file.
      8  1.25       pk #
      9   1.1      mrg 
     10  1.34    lukem .include <bsd.own.mk>
     11  1.34    lukem .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
     12  1.34    lukem 
     13  1.34    lukem .include <bsd.kernobj.mk>
     14  1.34    lukem 
     15  1.35    lukem IMAGE=		boot.fs
     16  1.35    lukem IMAGESIZE=	1440k
     17   1.1      mrg LISTS=		${.CURDIR}/list
     18  1.35    lukem MTREECONF=	${DISTRIBDIR}/common/mtree.dot
     19  1.35    lukem IMAGEENDIAN=	be
     20  1.35    lukem PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootxx
     21  1.35    lukem IMAGEDEPENDS=	netbsd.ram.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}
     22  1.36    lukem IMAGEPOSTBUILD=	${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot
     23  1.32  thorpej 
     24  1.35    lukem RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
     25  1.32  thorpej RAMDISK=	${RAMDISKDIR}/ramdisk.fs
     26   1.1      mrg 
     27  1.35    lukem IMAGE_RELEASEDIR=	installation/bootfs
     28  1.26       pk 
     29  1.35    lukem MDSETTARGETS=		INSTALL ${RAMDISK} netbsd.ram
     30  1.35    lukem MDSET_RELEASEDIR=	installation/bootfs
     31  1.35    lukem MDSET_SUFFIXES.netbsd.ram=  aout create-aout
     32  1.26       pk 
     33  1.26       pk # conjure up a magic header that is accepted by all Sun PROMS;
     34  1.37      mrg # see src/usr.sbin/installboot/arch/sparc.c for details.
     35  1.35    lukem #
     36  1.26       pk SUN_MAGIC_HEADER='\01\03\01\07\060\200\0\07\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
     37  1.26       pk 
     38  1.35    lukem create-aout=\
     39  1.35    lukem 	${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET}.raw && \
     40  1.35    lukem 	( printf ${SUN_MAGIC_HEADER}; cat ${.TARGET}.raw ) > ${.TARGET}
     41  1.35    lukem 
     42  1.35    lukem CLEANFILES+=	netbsd.ram.aout.raw
     43   1.1      mrg 
     44   1.5      mrg 
     45  1.35    lukem FD?=		fd0
     46  1.35    lukem FD_RDEV=	/dev/r${FD}a
     47   1.1      mrg 
     48   1.1      mrg real-floppy:
     49   1.1      mrg 	dd if=${IMAGE} of=${FD_RDEV} bs=32k
     50  1.12       pk 
     51  1.35    lukem 
     52  1.35    lukem .include "${DISTRIBDIR}/common/Makefile.image"
     53  1.35    lukem .include "${DISTRIBDIR}/common/Makefile.mdset"
     54   1.1      mrg 
     55  1.34    lukem .include <bsd.prog.mk>
     56