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