head	1.32;
access;
symbols
	RELENG_4_11_0_RELEASE:1.31.2.1
	RELENG_4_11:1.31.2.1.0.16
	RELENG_4_11_BP:1.31.2.1
	RELENG_4_10_0_RELEASE:1.31.2.1
	RELENG_4_10:1.31.2.1.0.14
	RELENG_4_10_BP:1.31.2.1
	RELENG_4_9_0_RELEASE:1.31.2.1
	RELENG_4_9:1.31.2.1.0.12
	RELENG_4_9_BP:1.31.2.1
	RELENG_4_8_0_RELEASE:1.31.2.1
	RELENG_4_8:1.31.2.1.0.10
	RELENG_4_8_BP:1.31.2.1
	RELENG_4_7_0_RELEASE:1.31.2.1
	RELENG_4_7:1.31.2.1.0.8
	RELENG_4_7_BP:1.31.2.1
	RELENG_4_6_2_RELEASE:1.31.2.1
	RELENG_4_6_1_RELEASE:1.31.2.1
	RELENG_4_6_0_RELEASE:1.31.2.1
	RELENG_4_6:1.31.2.1.0.6
	RELENG_4_6_BP:1.31.2.1
	RELENG_4_5_0_RELEASE:1.31.2.1
	RELENG_4_5:1.31.2.1.0.4
	RELENG_4_5_BP:1.31.2.1
	RELENG_4_4_0_RELEASE:1.31.2.1
	RELENG_4_4:1.31.2.1.0.2
	RELENG_4_4_BP:1.31.2.1
	RELENG_4_3_0_RELEASE:1.31
	RELENG_4_3:1.31.0.4
	RELENG_4_3_BP:1.31
	RELENG_4_2_0_RELEASE:1.31
	RELENG_4_1_1_RELEASE:1.31
	RELENG_4_1_0_RELEASE:1.31
	RELENG_3_5_0_RELEASE:1.30.2.1
	RELENG_4_0_0_RELEASE:1.31
	RELENG_4:1.31.0.2
	RELENG_4_BP:1.31
	RELENG_3_4_0_RELEASE:1.30.2.1
	RELENG_3_3_0_RELEASE:1.30.2.1
	RELENG_3_2_PAO:1.30.0.4
	RELENG_3_2_PAO_BP:1.30
	RELENG_3_2_0_RELEASE:1.30
	POST_VFS_BIO_NFS_PATCH:1.30
	PRE_VFS_BIO_NFS_PATCH:1.30
	POST_SMP_VMSHARE:1.30
	PRE_SMP_VMSHARE:1.30
	POST_NEWBUS:1.30
	PRE_NEWBUS:1.30
	RELENG_3_1_0_RELEASE:1.30
	RELENG_3:1.30.0.2
	RELENG_3_BP:1.30
	RELENG_2_2_8_RELEASE:1.26
	RELENG_3_0_0_RELEASE:1.29
	RELENG_2_2_7_RELEASE:1.26
	PRE_NOBDEV:1.29
	POST_DEVFS_SLICE:1.29
	PRE_DEVFS_SLICE:1.29
	RELENG_2_2_6_RELEASE:1.26
	POST_SOFTUPDATE:1.29
	PRE_SOFTUPDATE:1.29
	RELENG_2_2_5_RELEASE:1.26
	WOLLMAN_MBUF:1.28.0.2
	BP_WOLLMAN_MBUF:1.28
	RELENG_2_2_2_RELEASE:1.26
	post_smp_merge:1.28
	pre_smp_merge:1.28
	RELENG_2_2_1_RELEASE:1.26
	RELENG_2_2_0_RELEASE:1.26
	RELENG_2_1_7_RELEASE:1.25.4.1
	RELENG_2_1_6_1_RELEASE:1.25.4.1
	RELENG_2_1_6_RELEASE:1.25.4.1
	RELENG_2_2:1.26.0.2
	RELENG_2_2_BP:1.26
	RELENG_2_1_5_RELEASE:1.25
	wollman_polling:1.25.0.6
	RELENG_2_1_0_RELEASE:1.25
	RELENG_2_1_0:1.25.0.4
	RELENG_2_1_0_BP:1.25
	RELENG_2_0_5_RELEASE:1.25
	RELENG_2_0_5:1.25.0.2
	RELENG_2_0_5_BP:1.25
	RELENG_2_0_5_ALPHA:1.25
	OLAH_TTCP:1.23.0.4
	RELEASE_2_0:1.23
	BETA_2_0:1.23
	ALPHA_2_0:1.23.0.2
	MOVED_NEWCVS:1.10
	FINAL_1_1_5:1.10
	ALPHA_1_1_5:1.10
	FINAL_1_1:1.5
	GAMMA_1_1:1.5
	BETA_1_1:1.5.0.2
	BP_BETA_1_1:1.5
	FINAL_1_0_2:1.3
	BRANCH_1_0:1.3.0.2
	FINAL_1_0:1.3
	EPSILON_1_0:1.2
	GAMMA_1_0:1.2
	BETA_1_0:1.2
	ALPHA_1_0:1.2
	V_0_1_2_4:1.1.1.1;
locks; strict;
comment	@# @;


1.32
date	2000.03.19.11.41.50;	author peter;	state dead;
branches;
next	1.31;

1.31
date	99.08.28.00.43.08;	author peter;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	99.01.06.08.46.26;	author jkh;	state Exp;
branches
	1.30.2.1;
next	1.29;

1.29
date	97.07.10.21.58.43;	author joerg;	state Exp;
branches;
next	1.28;

1.28
date	97.02.22.09.29.58;	author peter;	state Exp;
branches;
next	1.27;

1.27
date	97.01.14.06.37.19;	author jkh;	state Exp;
branches;
next	1.26;

1.26
date	96.09.11.19.22.21;	author phk;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	95.04.15.08.24.33;	author phk;	state Exp;
branches
	1.25.4.1;
next	1.24;

1.24
date	95.03.28.19.22.34;	author phk;	state Exp;
branches;
next	1.23;

1.23
date	94.10.28.22.11.50;	author phk;	state Exp;
branches;
next	1.22;

1.22
date	94.10.28.04.56.51;	author phk;	state Exp;
branches;
next	1.21;

1.21
date	94.10.28.04.46.08;	author phk;	state Exp;
branches;
next	1.20;

1.20
date	94.10.15.03.59.19;	author phk;	state Exp;
branches;
next	1.19;

1.19
date	94.10.07.05.36.01;	author ache;	state Exp;
branches;
next	1.18;

1.18
date	94.10.06.09.40.58;	author rgrimes;	state Exp;
branches;
next	1.17;

1.17
date	94.10.02.05.18.23;	author rgrimes;	state Exp;
branches;
next	1.16;

1.16
date	94.09.20.22.24.58;	author adam;	state Exp;
branches;
next	1.15;

1.15
date	94.09.19.19.54.49;	author adam;	state Exp;
branches;
next	1.14;

1.14
date	94.09.18.19.10.11;	author swallace;	state Exp;
branches;
next	1.13;

1.13
date	94.09.18.07.39.53;	author swallace;	state Exp;
branches;
next	1.12;

1.12
date	94.08.21.18.15.45;	author paul;	state Exp;
branches;
next	1.11;

1.11
date	94.08.21.17.47.24;	author paul;	state Exp;
branches;
next	1.10;

1.10
date	94.06.20.04.32.40;	author jkh;	state Exp;
branches;
next	1.9;

1.9
date	94.06.16.03.53.24;	author adam;	state Exp;
branches;
next	1.8;

1.8
date	94.06.15.18.15.16;	author adam;	state Exp;
branches;
next	1.7;

1.7
date	94.06.02.16.50.56;	author jkh;	state Exp;
branches;
next	1.6;

1.6
date	94.05.30.05.23.46;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	93.12.11.20.35.15;	author ats;	state Exp;
branches;
next	1.4;

1.4
date	93.11.16.02.02.05;	author ache;	state Exp;
branches;
next	1.3;

1.3
date	93.10.16.19.11.23;	author rgrimes;	state Exp;
branches;
next	1.2;

1.2
date	93.07.13.18.15.18;	author root;	state Exp;
branches;
next	1.1;

1.1
date	93.06.12.14.57.54;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.31.2.1
date	2001.05.08.20.53.39;	author luigi;	state Exp;
branches;
next	1.31.2.2;

1.31.2.2
date	2012.11.17.07.26.05;	author svnexp;	state Exp;
branches;
next	;

1.30.2.1
date	99.08.29.16.04.40;	author peter;	state Exp;
branches;
next	;

1.26.2.1
date	99.09.05.08.10.15;	author peter;	state Exp;
branches;
next	;

1.25.4.1
date	96.11.08.05.21.01;	author jkh;	state Exp;
branches;
next	1.25.4.2;

1.25.4.2
date	99.09.05.08.28.36;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	93.06.12.14.57.55;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.32
log
@Remove the old a.out-only boot loader, we don't use it any more.
The new boot1/boot2 can load a.out and elf kernels directly.
I think the sys/pc98 version can go too as the sys/boot/pc98 code
appears to be functional, but I'll leave that for the pc98 folks.

"There can be only one."
@
text
@# $FreeBSD: src/sys/i386/boot/Makefile,v 1.31 1999/08/28 00:43:08 peter Exp $

SUBDIR=	cdboot dosboot kzipboot netboot rawboot

.include <bsd.subdir.mk>
@


1.31
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.31.2.1
log
@MFC: nuke netboot.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/i386/boot/Makefile,v 1.31 1999/08/28 00:43:08 peter Exp $
d3 1
a3 1
SUBDIR=	cdboot dosboot kzipboot rawboot
@


1.31.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/i386/boot/Makefile 76383 2001-05-08 20:53:39Z luigi $
@


1.30
log
@Don't build biosboot by default - there's no point now that nothing
looks for /usr/mdec/boot{1,2}.  The other stuff in here is probably
equally useless/pointless but I'm going to not worry about it for now.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.29 1997/07/10 21:58:43 joerg Exp $
@


1.30.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.29
log
@This is the long-threatened ISO 9660 CD-ROM bootstrap code.

This work has been sponsored by Plutotech International, Inc (who paid
the initial work), and interface business GmbH (where i did most of
the work).  A big thanks also goes to Bruce Evans, for his continuing
help and answering my stupid questions.

The code is basically functioning, with the following caveats:

. Rock Ridge attributes are not yet supported.
. Only SCSI CD-ROMs are supported, since i fail to see any possibility
  to determine the drive type using BIOS functions.  (Even for hard disks,
  this determination is done by a big hack only.)
. El Torito specifies a lot of crap and useless misfeatures, but crucial
  things like the ability to figure out the CD TOC have been ``forgotten''.
  Thus, if you wanna boot a multisession CD, you need to know at which CD
  block your session starts, and need to speciffy it using the @@ clause.

. None of the CD-ROM controllers i've seen so far implements the full
  El Torito specification at all.  Adaptec is probably the closest, but
  they miss on non-emulation booting (which would be the most logical
  choice for us).  Thus, the current code bloats the 7.5 KB boot code
  up to 1.44 MB, in order to fake a `floppy' image.

  If you wanna use it, specify this file as the boot image on the
  command-line of the mksiosfs command (option -b).

  Caveat emptor: some versions of the Adaptec BIOS might even fail to
  access the CD-ROM at all, using the BIOS functions.  I think i've
  notice this for ver 1.26, the code has been tested with ver 1.23.

The boot string is as follows:

	[@@sess-start] [filename] [-flags]

sess-start	Extend # where the last session starts, measured in
		CD-ROM blocks.

filename	As usual, but the input is case-insensitive by now
		(since we  don't grok RR anyway).

flags		As usual, but -C (use CDROM root f/s) is default, so
		specifying -C will decactivate this option (which is
		probably not what you want :).

A lot of cleanup work is probably required, and some of the files
could/should be merged back to biosboot, perhaps made conditional on
some #ifdef.  The malloc implementation that comes with cdboot might
also be useful for kzipboot.  (I needed a malloc() since the root dir
ain't fixed in size on a CD.)

I've been testing all this with a 2.2-STABLE as the base for biosboot.
I don't expect too many surprises, although i know the biosboot stuff
has been changed a lot in -current lately.  I'm sure Bruce will
comment on all this here anyway. :-)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.28 1997/02/22 09:29:58 peter Exp $
d3 1
a3 1
SUBDIR=	biosboot cdboot dosboot kzipboot netboot rawboot
@


1.28
log
@Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$.  We are not
ready for it yet.
@
text
@d1 1
a1 1
#	$Id$
d3 1
a3 1
SUBDIR=	biosboot dosboot kzipboot netboot rawboot
@


1.27
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
@d1 1
a1 1
#	$FreeBSD$
@


1.26
log
@Add "rawboot", sort the subdirs.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.25 1995/04/15 08:24:33 phk Exp $
@


1.26.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.25
log
@Added kzipboot
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1995/03/28 19:22:34 phk Exp $
d3 1
a3 1
SUBDIR=	biosboot netboot dosboot kzipboot
@


1.25.4.1
log
@Yikes!  Add rawboot.
Thanks-for-the-reminder-to: Don Lewis <Don.Lewis@@tsc.tdk.com>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.25 1995/04/15 08:24:33 phk Exp $
d3 1
a3 1
SUBDIR=	biosboot netboot dosboot kzipboot rawboot
@


1.25.4.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.24
log
@Don't install /usr/mdec/boot
Install the biosboot as /usr/mdec/boot[12]
Make the traditional links from [swf]dboot and boot[swf]d to boot[12] files.
Install dosboot as /usr/mdec/boot/fbsdboot.exe
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.23 1994/10/28 22:11:50 phk Exp $
d3 1
a3 1
SUBDIR=	biosboot netboot dosboot
@


1.23
log
@Add netboot to the world of make.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.22 1994/10/28 04:56:51 phk Exp $
d3 1
a3 1
SUBDIR=	biosboot netboot
@


1.22
log
@Urg!  the netboot/Makefile is in a miserable state.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.21 1994/10/28 04:46:08 phk Exp $
d3 1
a3 1
SUBDIR=	biosboot 
@


1.21
log
@This concludes the CVS-surgery.  This makefile now just points at the subdir's.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1994/08/25 13:54:28 paul Exp $
d3 1
a3 1
SUBDIR=	biosboot netboot
@


1.20
log
@$DESTDIR missing...
@
text
@d1 1
a1 2
#	$Id: Makefile,v 1.19 1994/10/07 05:36:01 ache Exp $
#
d3 1
a3 3
PROG=	boot
# Order is very important on the SRCS line for this prog
SRCS=	start.S table.c boot2.S boot.c asm.S bios.S io.c disk.c sys.c
d5 1
a5 50
BINDIR=		/usr/mdec
BINMODE=	444
CFLAGS=		-O2 -DDO_BAD144	-DBOOTWAIT=${BOOTWAIT}
CFLAGS+=	-DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../..
CLEANFILES+=	boot.nohdr boot.strip boot1 boot2
DPADD=		${LIBC}
LDFLAGS+=	-N -T 0 -nostdlib
LDADD=		-lc
LINKS=		${BINDIR}/sdboot ${BINDIR}/wdboot\
		${BINDIR}/sdboot ${BINDIR}/fdboot\
		${BINDIR}/bootsd ${BINDIR}/bootwd\
		${BINDIR}/bootsd ${BINDIR}/bootfd
NOSHARED=	YES
NOMAN=
STRIP=

# tunable timeout parameter, waiting for keypress, calibrated in mS
BOOTWAIT?=	5000

# Location that boot2 is loaded at
BOOTSEG=	0x1000

# Offset in BOOTSEG for the top of the stack, keep this 16 byte aligned
BOOTSTACK=	0xFFF0

boot.strip:	boot
	cp -p boot boot.strip
	strip boot.strip
	size boot.strip

boot.nohdr:	boot.strip
	dd if=boot.strip of=boot.nohdr ibs=32 skip=1 obs=1024b
	ls -l boot.nohdr

boot1:		boot.nohdr
	dd if=boot.nohdr of=boot1 bs=512 count=1

boot2:		boot.nohdr
	dd if=boot.nohdr of=boot2 bs=512 skip=1

all:		boot1 boot2

beforeinstall:
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		boot1 ${DESTDIR}/${BINDIR}/sdboot
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		boot2 ${DESTDIR}/${BINDIR}/bootsd
	
.include <bsd.prog.mk>
@


1.19
log
@Change first CFLAGS+= to CFLAGS= or we got really bad results
especially with -m486 from make.conf
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.18 1994/10/06 09:40:58 rgrimes Exp $
d53 1
a53 1
		boot1 ${BINDIR}/sdboot
d55 1
a55 1
		boot2 ${BINDIR}/bootsd
@


1.18
log
@1.  BOOTSEG and BOOTSTACK are now set from the Makefile, the boot code has
    been relocated to run in the 64k segment at 0x10000 with the stack at
    the top of this segment.  This corrects the problems machines with 512K
    base memory had booting.

2.  startprog routing rewritten to convert the BOOTSEG ss to a KERNELSEG
    ss, this eliminated the last of the >512K memory references.  Additional
    cleanup in here included a better way to copy the arguments to the
    kernel stack.

3.  Elimination of argv and esym cruft saved a few bytes.

4.  Only need to truncate the head.a_entry to a meg boundary once intead
    of every time we used it!  [Saving more bytes].

5.  Addition of version 1 bootinfo structure support.  These boot blocks
    pass the kernel name in to the kernel now.

6.  Removed historical comments about MACH argv stuff, as it is useless now.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.17 1994/10/02 05:18:23 rgrimes Exp $
d10 1
a10 1
CFLAGS+=	-O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT}
@


1.17
log
@1.  Completely rewritten Makefile that uses bsd.prog.mk more effectively.

2.  Clean up the .S files to use /* */ style comments.

This is a totally cosmetic change, not one byte of the resulting boot
code changes.  But at least it is installed with correct owners and in
the right places, and gets recompiled correctly when things change!
@
text
@d1 1
a1 1
#	$Id$
d11 1
d27 6
@


1.16
log
@Better documentation, 1ms calibration, default 5 seconds BOOTWAIT
Reviewed by:	adam
Submitted by:	rgrimes
@
text
@d1 1
a2 29
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
#
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
#
# Carnegie Mellon requests users of this software to return to
#
#  Software Distribution Coordinator  or  Software.Distribution@@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
#
# any improvements or extensions that they make and grant Carnegie Mellon
# the rights to redistribute these changes.
#
#	from: Mach, Revision 2.2	92/04/04  11:33:46  rpd
#	$Id: Makefile,v 1.15 1994/09/19 19:54:49 adam Exp $
#

wd0:
	dd if=boot of=biosboot count=1
	dd if=boot of=bootbios skip=1
	disklabel -B -b biosboot -s bootbios wd0 
	rm biosboot bootbios
d4 19
a22 2
NOPROG=	noprog
NOMAN=	noman
a25 69
  
CFLAGS  = -O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

# start.o should be first
OBJS = start.o table.o boot2.o boot.o asm.o bios.o io.o disk.o sys.o

.SUFFIXES: .S .c .o

.c.o:
	$(CC)  $(CFLAGS) $(INC) -c $<

.S.o:
	$(CC)  $(CFLAGS) -c $<

boot: $(OBJS)
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) ${LDDESTDIR} $(LIBS)
	cp boot boot.sym
	@@strip boot
	@@size boot
	@@sh ${.CURDIR}/rmaouthdr boot boot.tmp
	@@mv -f boot.tmp boot
	@@ls -l boot

biosboot:	boot
	dd if=boot of=biosboot count=1

bootbios:	boot
	dd if=boot of=bootbios skip=1

${DESTDIR}/usr/mdec/bootsd:	bootbios
	cp bootbios ${DESTDIR}/usr/mdec/bootsd

${DESTDIR}/usr/mdec/sdboot:	biosboot
	cp biosboot ${DESTDIR}/usr/mdec/sdboot

${DESTDIR}/usr/mdec/bootwd:	${DESTDIR}/usr/mdec/bootsd
	rm -f ${DESTDIR}/usr/mdec/bootwd
	ln ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/bootwd

${DESTDIR}/usr/mdec/wdboot:	${DESTDIR}/usr/mdec/sdboot
	rm -f ${DESTDIR}/usr/mdec/wdboot
	ln ${DESTDIR}/usr/mdec/sdboot ${DESTDIR}/usr/mdec/wdboot

${DESTDIR}/usr/mdec/bootfd:	${DESTDIR}/usr/mdec/bootsd
	rm -f ${DESTDIR}/usr/mdec/bootfd
	ln ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/bootfd

${DESTDIR}/usr/mdec/fdboot:	${DESTDIR}/usr/mdec/sdboot
	rm -f ${DESTDIR}/usr/mdec/fdboot
	ln ${DESTDIR}/usr/mdec/sdboot ${DESTDIR}/usr/mdec/fdboot

sd:	${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/sdboot
wd:	${DESTDIR}/usr/mdec/bootwd ${DESTDIR}/usr/mdec/wdboot
fd:	${DESTDIR}/usr/mdec/bootfd ${DESTDIR}/usr/mdec/fdboot

all: biosboot bootbios

fd0:
	dd if=boot of=biosboot count=1
	dd if=boot of=bootbios skip=1
	disklabel -B -b biosboot -s bootbios fd0 
	rm biosboot bootbios

install: wd sd fd

clean:
	/bin/rm -f *.o *.d boot bootbios biosboot boot.sym
d27 23
@


1.15
log
@Default wait approx 10 seconds for keypress during boot
Added comment about multiplication factor
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.14 1994/09/18 19:10:11 swallace Exp $
d35 3
a37 3
# tunable loopcount parameter, waiting for keypress (*1/100s)
BOOTWAIT?=	1000

@


1.14
log
@Put LDDESTDIR before library listing.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.13 1994/09/18 07:39:53 swallace Exp $
d35 2
a36 2
# tunable loopcount parameter, waiting for keypress
BOOTWAIT?=	2400
@


1.13
log
@Makefile:  add ${LDDESTDIR} to linking of boot code so ${DESTDIR}/usr/lib
is used instead of /usr/lib

io.c: add #include <machine/cpufunc.h> as instructed by David Greenman to
avoid inb/outb linking errors.
NOTE:  I just discovered that if GNUC is not used the inline functions will not be expanded from the include file and real inb/outb functions would
be needed.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.12 1994/08/21 18:15:45 paul Exp $
d54 1
a54 1
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) $(LIBS) ${LDDESTDIR}
@


1.12
log
@Removed disk type from disklabel lines, not needed for installing
bootblocks.

Reviewed by:
Submitted by:
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.11 1994/08/21 17:47:24 paul Exp $
d54 1
a54 1
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) $(LIBS)
@


1.11
log
@Fixed bootblocks to work with FreeBSD 2.0

1) Fixed up some header locations
2) Replaced list of boot files with /kernel
3) Changed disklabel use in Makefile to conform to 4.4
4) Added size command in Makefile to get close estimate of bootblock
   sizes. Total size of text and data must be below 64K, slightly
   overestimated since a.out header subsequently gets stripped.
5) Various buffer sizes are set to 8192 bytes in sys.c. In 4.4 MAXBSIZE
   is set to 64K which is too big for the bootblocks to deal with.

Submitted by:	Paul Richards
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.10 1994/06/20 04:32:40 jkh Exp $
d29 1
a29 1
	disklabel -B -b biosboot -s bootbios wd0 nec5655
d99 1
a99 1
	disklabel -B -b biosboot -s bootbios fd0 floppy 
@


1.10
log
@Make BOOTWAIT a truly tunable parameter.  It was hard-set before.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.9 1994/06/16 03:53:24 adam Exp $
d29 1
a29 1
	disklabel -r -w wd0 nec5655 newboot biosboot bootbios
d57 1
d99 1
a99 1
	disklabel -r -w fd0 floppy bootflpy biosboot bootbios
@


1.9
log
@Changed delay mechanism to rely more on I/O spinning. If spinning on the
like this is bad news, it will have to be revised.
Shortened some verbose messages for when the kernel is loaded below 640k.
Updated version number.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.8 1994/06/15 18:15:16 adam Exp $
d36 1
a36 1
BOOTWAIT=2400
@


1.8
log
@make BOOTWAIT loopcount parameter available for tuning.
This changes nothing unless f.e. -DBOOTWAIT=0 or -DBOOTWAIT=640000 is used
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.7 1994/06/02 16:50:56 jkh Exp $
d36 1
a36 1
BOOTWAIT=240000
@


1.7
log
@This should fix up the absolute paths to /usr/mdec - just prepended
${DESTDIR} to all the right places (any reason why not?).
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.6 1994/05/30 05:23:46 ache Exp $
d35 4
a38 1
CFLAGS  = -O2 -DDO_BAD144 -I${.CURDIR}
@


1.6
log
@Make bootblocks fit into 7168 limit
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.5 1993/12/11 20:35:15 ats Exp $
d64 2
a65 2
/usr/mdec/bootsd:	bootbios
	cp bootbios /usr/mdec/bootsd
d67 2
a68 2
/usr/mdec/sdboot:	biosboot
	cp biosboot /usr/mdec/sdboot
d70 19
a88 19
/usr/mdec/bootwd:	/usr/mdec/bootsd
	rm -f /usr/mdec/bootwd
	ln /usr/mdec/bootsd /usr/mdec/bootwd

/usr/mdec/wdboot:	/usr/mdec/sdboot
	rm -f /usr/mdec/wdboot
	ln /usr/mdec/sdboot /usr/mdec/wdboot

/usr/mdec/bootfd:	/usr/mdec/bootsd
	rm -f /usr/mdec/bootfd
	ln /usr/mdec/bootsd /usr/mdec/bootfd

/usr/mdec/fdboot:	/usr/mdec/sdboot
	rm -f /usr/mdec/fdboot
	ln /usr/mdec/sdboot /usr/mdec/fdboot

sd:	/usr/mdec/bootsd /usr/mdec/sdboot
wd:	/usr/mdec/bootwd /usr/mdec/wdboot
fd:	/usr/mdec/bootfd /usr/mdec/fdboot
@


1.5
log
@Deleted the private cleandir target. It didn't had a rule for the
obj symlink in it and the normal bsd.prog.mk cleandir target does
already the correct thing.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.4 1993/11/16 02:02:05 ache Exp $
d35 1
a35 1
CFLAGS	= -O -DDO_BAD144 -I${.CURDIR}
@


1.4
log
@We don't want shared boot, so -Bstatic added to ld options
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.3 1993/10/16 19:11:23 rgrimes Exp $
d100 1
a100 1
clean cleandir:
@


1.3
log
@Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some
minor cleanup.  Added $Id$ to files that did not have any version info, etc
@
text
@d23 1
a23 1
#	$Id$
d51 1
a51 1
	$(LD) -N -T 0 -o boot $(OBJS) $(LIBS)
@


1.2
log
@New boot blocks, from Bruce Evans, and NetBSD fixes.  Allows kernel to
be loaded above 1MB.  Same boot code for floppies now.  Speed improvements.
etc etc etc. (I don't have much history on this, but then have been tested)
@
text
@a1 3
# Ported to boot 386BSD by Julian Elischer (julian@@tfs.com)
# September 1992
#
d22 2
a23 50
#
# HISTORY
# $Log: Makefile,v $
# Revision 1.6  1993/07/11  12:02:17  andrew
# Fixes from bde, including support for loading @@ any MB boundary (e.g. a
# kernel linked for 0xfe100000 will load at the 1MB mark) and read-ahead
# buffering to speed booting from floppies.  Also works with aha174x
# controllers in enhanced mode.
#
# Revision 1.5  1993/07/04  14:03:03  cgd
# do the right thing, so things aren't built in /usr/src/sys
#
# Revision 1.4  1993/06/18  08:03:14  cgd
# install floppy boot block, too.
#
# Revision 1.3  1993/06/08  03:36:39  deraadt
# makes more sense if src is mounted readonly
#
# Revision 1.2  1993/04/28  08:45:51  deraadt
# Ensure the rmaouthdr shell script is executable before running it!
#
# Revision 1.1  1993/03/21  18:08:11  cgd
# after 0.2.2 "stable" patches applied
#
# 
# 93/06/30  bde
#	fd boot is now fast enough.
#	(Safe) target fd0 and (unsafe) target wd0 to temporarily avoid
#	updating /use/mdec.
#
# 93/06/29  bde
#	Deleted weirdness for not-really-separate code and data segments.
#	It is not necessary now that the GDT is dynamically initialized.
#	table.o doesn't need to be early any more.  boot.sed is not used
#	any more (delete it).  The shell commands that failed with status
#	0 no longer exist so the 93/06/28 fixes got deleted.
#
#	Use .S extension for asm files to get (g)cc to preprocess them
#	automatically.
#
# 93/06/28  bde
#	Don't exit 0 from failing shell commands.
#
# Thu Sep 10 22:40:23 PDT 1992
# Ported to 386BSD by Julian Elischer
# julian@@tfs.com
#
# Revision 2.2	92/04/04  11:33:46  rpd
#	Fabricated for MACH 3.0
#	[92/03/30	     mg32]
d25 1
@


1.1
log
@Initial revision
@
text
@d28 39
a66 3
# Revision 2.2	92/04/04  11:33:46  rpd
#	Fabricated for MACH 3.0
#	[92/03/30	     mg32]
d72 12
d85 1
a85 1
CFLAGS	= -O -DDO_BAD144
d87 1
a87 1
INC= -I../..
d89 1
a89 1
# start.o should be first, table.o should be second
d92 1
a92 1
.SUFFIXES: .s .c .o
a93 1
# These are wierd because we don't want separate code and data segments.. ok?
d95 1
a95 18
	@@echo $(CC) -c $(CFLAGS) $(INC) $*.c
	-@@trap "/bin/rm -f $*.i $*.s; exit 0" 0 1 2 3 10 15; \
	$(CC)  $(CFLAGS) $(INC) -S $<;	\
	if [ $$? != 0 ]; then :; else \
		sed -f boot.sed $*.s > $*.i;	\
		$(AS) $*.i -o $@@; \
	fi

.s.o:
	@@echo $(AS) -o $*.o $<
	-@@trap "/bin/rm -f $*.i X$*.c; exit 0" 0 1 2 3 10 15; \
	/bin/rm -f X$*.c;	\
	ln $*.s X$*.c;	\
	$(CC) -E $(CFLAGS) X$*.c > $*.i;	\
	if [ $$? != 0 ]; then :;	\
	else \
		$(AS) $*.i -o $@@;	\
	fi
d97 2
d100 1
a100 1
boot: boot.sed $(OBJS)
d104 1
a104 1
	@@./rmaouthdr boot boot.tmp
d140 1
a140 6
#wd0:	/usr/mdec/bootwd /usr/mdec/wdboot
#	disklabel -r -w wd0 julian julian5 /usr/mdec/wdboot /usr/mdec/bootwd
#

sd0:	/usr/mdec/bootsd /usr/mdec/sdboot
	disklabel -r -w sd0 XT-8760 scsitest /usr/mdec/sdboot /usr/mdec/bootsd
d142 5
d148 1
a148 11
#fd0:	/usr/mdec/bootfd /usr/mdec/fdboot
#	disklabel -r -w fd0 floppy5 bootflpy /usr/mdec/fdboot /usr/mdec/bootfd
#

install: wd sd 
# you should use the old floppy booter, it's MUCH faster
# This one works but it's too slow.
# besides how many kernels can you fit on a floppy?
# only use this one if you want to boot a kernel
# from a hard disk 2 when you've trashed hard disk 1
#install: wd sd fd
d150 1
a150 1
clean:
d153 1
a153 1

@


1.1.1.1
log
@Initial import, 0.1 + pk 0.2.4-B1
@
text
@@
