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
6 # It is constructed by injecting the microroot filesystem `ramdisk.fs'
7 # into the md based kernel built from the INSTALL kernel configuration file.
11 .
include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
13 .
include <bsd.kernobj.mk
>
17 LISTS
= ${.CURDIR
}/list
18 MTREECONF
= ${DISTRIBDIR}/common
/mtree.dot
20 PRIMARYBOOT
= ${DESTDIR}/usr
/mdec
/bootxx
21 IMAGEDEPENDS
= netbsd.ram.gz
${DESTDIR}/usr
/mdec
/boot
${PRIMARYBOOT}
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'
42 ${OBJCOPY} -O binary
${.TARGET
:R
} ${.TARGET
}.raw
&& \
43 ( printf
${SUN_MAGIC_HEADER}; cat
${.TARGET
}.raw
) > ${.TARGET
}
45 CLEANFILES
+= netbsd.ram.aout.raw
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
>