Sync usage with man page.
[netbsd-mini2440.git] / distrib / sparc / bootfs / Makefile
blob400dea4d4b90a9f7b64e85596e4e200b2c3e6130
1 # $NetBSD: Makefile,v 1.38 2002/12/21 13:01:20 lukem Exp $
3 # boot.fs is the image for disk 1 of the two-set floppy based installation
4 # method.
6 # It is constructed by injecting the microroot filesystem `ramdisk.fs'
7 # into the md based kernel built from the INSTALL kernel configuration file.
10 .include <bsd.own.mk>
11 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
13 .include <bsd.kernobj.mk>
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= \
23 ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot && \
24 printf 'V nhead 2\nV pcyl 80\nV ncyl 80\nV nsect 18\na 0 80/0/0\nW\n' \
25 | ${TOOL_SUNLABEL} -nq ${IMAGE}
27 RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
28 RAMDISK= ${RAMDISKDIR}/ramdisk.fs
30 IMAGE_RELEASEDIR= installation/bootfs
32 MDSETTARGETS= INSTALL ${RAMDISK} netbsd.ram
33 MDSET_RELEASEDIR= installation/bootfs
34 MDSET_SUFFIXES.netbsd.ram= aout create-aout
36 # conjure up a magic header that is accepted by all Sun PROMS;
37 # see src/usr.sbin/installboot/arch/sparc.c for details.
39 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'
41 create-aout=\
42 ${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET}.raw && \
43 ( printf ${SUN_MAGIC_HEADER}; cat ${.TARGET}.raw ) > ${.TARGET}
45 CLEANFILES+= netbsd.ram.aout.raw
48 FD?= fd0
49 FD_RDEV= /dev/r${FD}a
51 real-floppy:
52 dd if=${IMAGE} of=${FD_RDEV} bs=32k
55 .include "${DISTRIBDIR}/common/Makefile.image"
56 .include "${DISTRIBDIR}/common/Makefile.mdset"
58 .include <bsd.prog.mk>