head	1.8;
access;
symbols
	RELENG_2_2_8_RELEASE:1.3.4.1
	RELENG_3_0_0_RELEASE:1.7
	RELENG_2_2_7_RELEASE:1.3.4.1
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.3
	RELENG_2_1_6_1_RELEASE:1.3
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.3.0.4
	RELENG_2_2_BP:1.3
	RELENG_2_1_0:1.3.0.2;
locks; strict;
comment	@# @;


1.8
date	99.01.09.23.14.31;	author jkh;	state dead;
branches;
next	1.7;

1.7
date	98.08.03.19.18.07;	author julian;	state Exp;
branches;
next	1.6;

1.6
date	97.07.22.02.51.00;	author julian;	state Exp;
branches;
next	1.5;

1.5
date	97.02.22.14.10.53;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	97.01.14.06.22.53;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.08.22.09.45.38;	author julian;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	96.06.24.04.23.34;	author jkh;	state Exp;
branches;
next	1.1;

1.1
date	96.05.21.01.12.35;	author julian;	state Exp;
branches;
next	;

1.3.2.1
date	99.09.05.11.22.02;	author peter;	state Exp;
branches;
next	;

1.3.4.1
date	98.07.16.10.26.52;	author jkh;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	99.09.05.11.20.47;	author peter;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Nuke this - it's antiquated and unmaintained.
@
text
@
#	$Id: Makefile,v 1.7 1998/08/03 19:18:07 julian Exp $
# If this is a RELEASE, then set

# Things which without too much trouble can be considered variables

# mountpoint for filesystems.
TOP=${.CURDIR}/../../../..
OBJTOP=${.OBJDIR}/../../../..
FS_BIN=../../bin
SCRIPTDIR=${.CURDIR}/../../bin

MNT=			/mnt

# other floppy parameters.
FSSIZE=			1440
FSLABEL=		fd1440
FSINODE=		4300

NEWFSARGS=		-c 80 -b 4096 -f 512 -i 4000 -m 0 -t 0 -u 0 \
				-o space -T ${FSLABEL}


# Upper size for the mfs in the boot.flp kernel.
# These are adjusted down to the minimum needed by doFS.sh.
BOOTMFSSIZE=		1200
MFSINODE=		40000

# Things which will get you into trouble if you change them
MTREEFILES=		${.CURDIR}/../etc/mtree


# Complete the bootfd
#
# Now, just to get this picture down once and for all:
#
# +------------------------------------------------------------------------+
# |boot.flp                                                                |
# +-----+-----+------------------------------------------------------------+
# |boot1|boot2|floppy filesystem "bootfd"                                  |
# +-----+-----+-+--------------------------------------------------------+-+
#               |kernel                                                  |
#               +------------+-----------------------------------------+-+
#                            |mfs filesystem "mfsfd"                   |
#                            +-----------------------------------------+
#

all: ${FS_BIN}/write_mfs_in_kernel
	cd ${.CURDIR} && ${MAKE} doMFSKERN 



#
# --==## Compile a kernel by name ${KERNEL} ##==--
#
# We don't erase the sys/compile/${KERNEL} directory, since somebody
# may want to reuse it (release.8 presently)
#
CONF=${TOP}/sys/i386/conf
COMPILE=${TOP}/sys/compile
doKERNEL:
	cd ${CONF} && config ${KERNEL}
	cd ${COMPILE}/${KERNEL} && \
			make  depend && \
			make  kernel && \

#
# --==## Put a filesystem into a BOOTMFS kernel ##==--
#
LABELDIR=${OBJTOP}/sys/i386/boot/biosboot

${COMPILE}/BOOTMFS/kernel:
	rm -f ${COMPILE}/BOOTMFS/mfs_vfsops.o
	cd ${CONF} && \
	  sed	-e '/SYSV/d' \
		-e '/pty/d' \
		-e '/PROCFS/d' \
		-e '/KTRACE/d' \
		-e 's/GENERIC/BOOTMFS/g' \
		-e '/maxusers/s/10/4/' < GENERIC > BOOTMFS && \
	  echo "options  MFS" >> BOOTMFS && \
	  echo "options  NFS_NOSERVER" >> BOOTMFS && \
	  echo 'options  "MAXCONS=4"' >> BOOTMFS && \
	  echo "options  USERCONFIG_BOOT" >> BOOTMFS
	echo "options \"MFS_ROOT=`cat ../mfs/fs-image.size`\"" >> \
		${CONF}/BOOTMFS
	cd ${.CURDIR} && ${MAKE} doKERNEL KERNEL=BOOTMFS

doMFSKERN: ${COMPILE}/BOOTMFS/kernel
	-mkdir tree
	cp ${COMPILE}/BOOTMFS/kernel tree
	${FS_BIN}/write_mfs_in_kernel/write_mfs_in_kernel tree/kernel ../mfs/fs-image
	kzip -v tree/kernel
	mv tree/kernel.kz tree/kernel
	cp ${COMPILE}/../i386/boot/biosboot/boot.help tree
	touch tree/boot.config
	@@vnconfig /dev/vn0 ../mfs/fs-image
	@@mkdir -p /tmp/mnt_xx
	@@mount /dev/vn0 /tmp/mnt_xx 
	${FS_BIN}/dumpnlist/dumpnlist ${COMPILE}/BOOTMFS/kernel > /tmp/mnt_xx/stand/symbols
	@@umount /tmp/mnt_xx
	@@vnconfig -u /dev/vn0
	@@rmdir /tmp/mnt_xx

	sh -e ${SCRIPTDIR}/doFS.sh ${LABELDIR} ${MNT} ${FSSIZE} tree \
		10000 ${FSLABEL}

clean:
	rm -rf tree fs-image fs-image.size

.include <bsd.prog.mk>

@


1.7
log
@keep more up to date..
fixit uses the same crunch.conf as normal generation
upgrade boot floppy to 1.44MB so that it fits
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1997/07/22 02:51:00 julian Exp $
@


1.6
log
@update the floppies directory to work better
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1997/07/16 12:24:23 julian Exp $
d16 2
a17 2
FSSIZE=			1200
FSLABEL=		fd1200
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
#	$Id$
d10 2
a11 1
FS_BIN=${.CURDIR}/../..
d62 1
a62 1
	cd ${CONF} && config -n ${KERNEL}
d71 2
a72 1
doMFSKERN:
d75 10
a84 8
		fgrep -v SYSV GENERIC | \
		fgrep -v pty | \
		fgrep -v PROCFS | \
		sed 's/GENERIC/BOOTMFS/g' | \
		sed '/maxusers/s/10/4/' > BOOTMFS && \
		echo "options  MFS" >> BOOTMFS && \
		echo "options  NFS_NOSERVER" >> BOOTMFS && \
		echo 'options  "MAXCONS=4"' >> BOOTMFS 
d88 2
d92 2
a93 2
	${FS_BIN}/write_mfs_in_kernel tree/kernel ../mfs/fs-image
	kzip tree/kernel
d95 11
a105 2
	ls -l tree/kernel
	sh -e ${FS_BIN}/doFS.sh ${LABELDIR} ${MNT} ${FSSIZE} tree \
d112 1
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.3
log
@slight cleanup of the floppy building stuff to take into account
the new OBJdir system.
quite a bit to go yet.

cd /usr/src; make world
cd release
cd sysinstall;make obj; cd ..
cd floppies; make obj; make
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.2 1996/06/24 04:23:34 jkh Exp $
@


1.3.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.3.4.1
log
@MFC: New floppy creation stuff.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.3 1996/08/22 09:45:38 julian Exp $
d10 1
a10 2
FS_BIN=../../bin
SCRIPTDIR=${.CURDIR}/../../bin
d61 1
a61 1
	cd ${CONF} && config ${KERNEL}
d70 1
a70 2

${COMPILE}/BOOTMFS/kernel:
d73 8
a80 10
	  sed	-e '/SYSV/d' \
		-e '/pty/d' \
		-e '/PROCFS/d' \
		-e '/KTRACE/d' \
		-e 's/GENERIC/BOOTMFS/g' \
		-e '/maxusers/s/10/4/' < GENERIC > BOOTMFS && \
	  echo "options  MFS" >> BOOTMFS && \
	  echo "options  NFS_NOSERVER" >> BOOTMFS && \
	  echo 'options  "MAXCONS=4"' >> BOOTMFS && \
	  echo "options  USERCONFIG_BOOT" >> BOOTMFS
a83 2

doMFSKERN: ${COMPILE}/BOOTMFS/kernel
d86 2
a87 2
	${FS_BIN}/write_mfs_in_kernel/write_mfs_in_kernel tree/kernel ../mfs/fs-image
	kzip -v tree/kernel
d89 2
a90 11
	cp ${COMPILE}/../i386/boot/biosboot/boot.help tree
	touch tree/boot.config
	@@vnconfig /dev/vn0 ../mfs/fs-image
	@@mkdir -p /tmp/mnt_xx
	@@mount /dev/vn0 /tmp/mnt_xx 
	${FS_BIN}/dumpnlist/dumpnlist ${COMPILE}/BOOTMFS/kernel > /tmp/mnt_xx/stand/symbols
	@@umount /tmp/mnt_xx
	@@vnconfig -u /dev/vn0
	@@rmdir /tmp/mnt_xx

	sh -e ${SCRIPTDIR}/doFS.sh ${LABELDIR} ${MNT} ${FSSIZE} tree \
a96 1

@


1.3.4.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.2
log
@Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.1 1996/05/21 01:12:35 julian Exp $
d58 2
d61 2
a62 2
	cd ${TOP}/sys/i386/conf && config -n ${KERNEL}
	cd ${OBJTOP}/sys/compile/${KERNEL} && \
a69 2
CONF=${TOP}/sys/i386/conf
COMPILE=${OBJTOP}/sys/compile
d71 1
a71 1
	rm -f ${OBJTOP}/sys/compile/BOOTMFS/mfs_vfsops.o
@


1.1
log
@stand alone (kinda) floppy generation..
you still need tohave done a make world and have made 'sysinstall'
this should not interfere with existing code as it's standalone.
write_mfs_in_kernel.c is duplicated alsewhere.. one will go ..
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.214 1996/05/02 08:18:28 jkh Exp $
d9 1
d60 1
a60 1
	cd ${TOP}/sys/compile/${KERNEL} && \
d67 1
a67 1
LABELDIR=${TOP}/sys/i386/boot/biosboot/obj
d69 1
a69 1
COMPILE=${TOP}/sys/compile
d71 1
a71 1
	rm -f ${TOP}/sys/compile/BOOTMFS/mfs_vfsops.o
@
