Home | History | Annotate | Line # | Download | only in bootfs
Makefile revision 1.35
      1 #	$NetBSD: Makefile,v 1.35 2002/05/09 05:31:13 lukem 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 
     15 IMAGE=		boot.fs
     16 IMAGESIZE=	1440k
     17 LISTS=		${.CURDIR}/list
     18 MTREECONF=	${DISTRIBDIR}/common/mtree.dot
     19 IMAGEENDIAN=	be
     20 PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootxx
     21 IMAGEDEPENDS=	netbsd.ram.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}
     22 IMAGEPOSTBUILD=	${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot
     23 
     24 RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
     25 RAMDISK=	${RAMDISKDIR}/ramdisk.fs
     26 
     27 IMAGE_RELEASEDIR=	installation/bootfs
     28 
     29 MDSETTARGETS=		INSTALL ${RAMDISK} netbsd.ram
     30 MDSET_RELEASEDIR=	installation/bootfs
     31 MDSET_SUFFIXES.netbsd.ram=  aout create-aout
     32 
     33 # conjure up a magic header that is accepted by all Sun PROMS;
     34 # see sys/arch/sparc/stand/installboot/installboot.c for details.
     35 #
     36 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 
     38 create-aout=\
     39 	${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET}.raw && \
     40 	( printf ${SUN_MAGIC_HEADER}; cat ${.TARGET}.raw ) > ${.TARGET}
     41 
     42 CLEANFILES+=	netbsd.ram.aout.raw
     43 
     44 
     45 FD?=		fd0
     46 FD_RDEV=	/dev/r${FD}a
     47 
     48 real-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