head	1.14;
access;
symbols
	RELENG_4_11_0_RELEASE:1.13.2.1
	RELENG_4_11:1.13.2.1.0.10
	RELENG_4_11_BP:1.13.2.1
	RELENG_4_10_0_RELEASE:1.13.2.1
	RELENG_4_10:1.13.2.1.0.8
	RELENG_4_10_BP:1.13.2.1
	RELENG_4_9_0_RELEASE:1.13.2.1
	RELENG_4_9:1.13.2.1.0.6
	RELENG_4_9_BP:1.13.2.1
	RELENG_4_8_0_RELEASE:1.13.2.1
	RELENG_4_8:1.13.2.1.0.4
	RELENG_4_8_BP:1.13.2.1
	RELENG_4_7_0_RELEASE:1.13.2.1
	RELENG_4_7:1.13.2.1.0.2
	RELENG_4_7_BP:1.13.2.1
	RELENG_4_6_2_RELEASE:1.13
	RELENG_4_6_1_RELEASE:1.13
	RELENG_4_6_0_RELEASE:1.13
	RELENG_4_6:1.13.0.10
	RELENG_4_6_BP:1.13
	RELENG_4_5_0_RELEASE:1.13
	RELENG_4_5:1.13.0.8
	RELENG_4_5_BP:1.13
	RELENG_4_4_0_RELEASE:1.13
	RELENG_4_4:1.13.0.6
	RELENG_4_4_BP:1.13
	RELENG_4_3_0_RELEASE:1.13
	RELENG_4_3:1.13.0.4
	RELENG_4_3_BP:1.13
	RELENG_4_2_0_RELEASE:1.13
	RELENG_4_1_1_RELEASE:1.13
	RELENG_4_1_0_RELEASE:1.13
	RELENG_3_5_0_RELEASE:1.12.2.1
	RELENG_4_0_0_RELEASE:1.13
	RELENG_4:1.13.0.2
	RELENG_4_BP:1.13
	RELENG_3_4_0_RELEASE:1.12.2.1
	RELENG_3_3_0_RELEASE:1.12.2.1
	RELENG_3_2_PAO:1.12.0.4
	RELENG_3_2_PAO_BP:1.12
	RELENG_3_2_0_RELEASE:1.12
	POST_VFS_BIO_NFS_PATCH:1.12
	PRE_VFS_BIO_NFS_PATCH:1.12
	POST_SMP_VMSHARE:1.12
	PRE_SMP_VMSHARE:1.12
	POST_NEWBUS:1.12
	PRE_NEWBUS:1.12
	RELENG_3_1_0_RELEASE:1.12
	RELENG_3:1.12.0.2
	RELENG_3_BP:1.12
	RELENG_2_2_8_RELEASE:1.3.2.3
	RELENG_3_0_0_RELEASE:1.11
	RELENG_2_2_7_RELEASE:1.3.2.3
	PRE_NOBDEV:1.11
	POST_DEVFS_SLICE:1.11
	PRE_DEVFS_SLICE:1.11
	RELENG_2_2_6_RELEASE:1.3.2.3
	POST_SOFTUPDATE:1.10
	PRE_SOFTUPDATE:1.10
	RELENG_2_2_5_RELEASE:1.3.2.2
	WOLLMAN_MBUF:1.7.0.2
	BP_WOLLMAN_MBUF:1.7
	RELENG_2_2_2_RELEASE:1.3.2.1
	post_smp_merge:1.7
	pre_smp_merge:1.7
	RELENG_2_2_1_RELEASE:1.3.2.1
	RELENG_2_2_0_RELEASE:1.3.2.1
	RELENG_2_1_7_RELEASE:1.3.4.1
	RELENG_2_1_6_1_RELEASE:1.3.4.1
	RELENG_2_1_6_RELEASE:1.3.4.1
	RELENG_2_1_0:1.3.0.4
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3;
locks; strict;
comment	@# @;


1.14
date	2000.03.19.11.42.34;	author peter;	state dead;
branches;
next	1.13;

1.13
date	99.08.28.00.43.30;	author peter;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	98.12.30.10.55.50;	author bde;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	98.03.12.12.26.49;	author bde;	state Exp;
branches;
next	1.10;

1.10
date	98.03.07.10.48.15;	author eivind;	state Exp;
branches;
next	1.9;

1.9
date	98.02.15.21.38.19;	author eivind;	state Exp;
branches;
next	1.8;

1.8
date	98.01.31.01.20.56;	author yokota;	state Exp;
branches;
next	1.7;

1.7
date	97.04.25.19.38.01;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	97.02.22.09.31.30;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	97.01.14.06.38.14;	author jkh;	state Exp;
branches;
next	1.4;

1.4
date	96.12.15.01.25.54;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	96.10.15.16.26.05;	author bde;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	96.10.14.17.25.53;	author pst;	state Exp;
branches;
next	1.1;

1.1
date	96.09.11.19.25.11;	author phk;	state Exp;
branches;
next	;

1.13.2.1
date	2002.08.07.16.31.56;	author ru;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2012.11.17.07.26.06;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	99.08.29.16.05.17;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	96.12.15.15.05.23;	author bde;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	97.07.01.05.56.06;	author pst;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	98.01.31.01.30.05;	author yokota;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	99.09.05.08.10.48;	author peter;	state Exp;
branches;
next	;

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

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


desc
@@


1.14
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/rawboot/Makefile,v 1.13 1999/08/28 00:43:30 peter Exp $
#

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 serial.S
SRCS+=  probe_keyboard.c io.c disk.c sys.c

.PATH:	${.CURDIR}/../biosboot

BINMODE=	444
CFLAGS=		-O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
		-DRAWBOOT \
		-I${.CURDIR}/../biosboot \
		-DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
CFLAGS+=	-DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+=	${CWARNFLAGS}

# By default, if a serial port is going to be used as console, use COM1
# (aka /dev/ttyd0).
BOOT_COMCONSOLE_PORT?=0x3F8
CFLAGS+=	-DCOMCONSOLE=${BOOT_COMCONSOLE_PORT}

BOOT_COMCONSOLE_SPEED?=9600
CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}

# Enable code to take the default boot string from a fixed location on the
# disk.  See nextboot(8) and README.386BSD for more info.
#CFLAGS+=	-DNAMEBLOCK
#CFLAGS+=	-DNAMEBLOCK_WRITEBACK

# Bias the conversion from the BIOS drive number to the FreeBSD unit number
# for hard disks.  This may be useful for people booting in a mixed IDE/SCSI
# environment (set BOOT_HD_BIAS to the number of IDE drives).
#CFLAGS+=	-DBOOT_HD_BIAS=1
#
# Details: this only applies if BOOT_HD_BIAS > 0.  If the BIOS drive number
# for the boot drive is >= BOOT_HD_BIAS, then the boot drive is assumed to
# be SCSI and have unit number (BIOS_drive_number - BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes BIOS drive 1 correspond to 1:sd(0,a) instead of
# 1:wd(1,a).  If `sd' is given explicitly, then the drive is assumed to be
# SCSI and have BIOS drive number (sd_unit_number + BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes sd(0,a) correspond to 1:sd(0,a) instead of 0:sd(0,a).

CLEANFILES+=	boot.nohdr boot.strip rawboot sizetest
LDFLAGS+=	-N -T 0 -nostdlib
NOSHARED=	YES
NOMAN=
STRIP=

# tunable timeout parameter, waiting for keypress, calibrated in ms
BOOTWAIT?=	5000
# tunable timeout during string input, calibrated in ms
#TIMEOUT?=	30000

# 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 -aout boot.strip
	size -aout boot.strip

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

rawboot:	boot.nohdr
	dd if=boot.nohdr of=rawboot bs=8k count=1 conv=sync

all:		rawboot

install:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		rawboot ${DESTDIR}${BINDIR}/rawboot

.include <bsd.kern.mk>
.include <bsd.prog.mk>
@


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


1.13.2.1
log
@MFC: Drop support for COPY.
@
text
@d78 1
a78 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
@


1.13.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/i386/boot/rawboot/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.12
log
@Enforce building with -aout, since building with OBJFORMAT=elf doesn't
work.

Rely on ../Makefile.inc to set the the default for BINDIR.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11 1998/03/12 12:26:49 bde Exp $
@


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


1.11
log
@Removed duplicated -I options.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.10 1998/03/07 10:48:15 eivind Exp $
a11 1
BINDIR=		/usr/mdec
d65 2
a66 2
	strip boot.strip
	size boot.strip
@


1.10
log
@Make this handle -j<large>, and avoid .depend pointing at /usr/include.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1998/02/15 21:38:19 eivind Exp $
a18 1
CFLAGS+=	-I${.CURDIR}/../../..
@


1.9
log
@Make bootblock building independent of /usr/include if relative
includes are available.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1998/01/31 01:20:56 yokota Exp $
a21 6
.if exists(${.CURDIR}/../../../../include)
CFLAGS+= -nostdinc
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../../
CFLAGS+= -I${.CURDIR}/../../../../include
.endif

d48 1
a48 1
CLEANFILES+=	boot.nohdr boot.strip machine rawboot sizetest
d77 1
a77 6
pre-compile:
.if !exists(${.OBJDIR}/machine)
	ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
.endif

all:		pre-compile rawboot
@


1.8
log
@Synchronize with ../biosboot/Makefile.
- Remove reference to the obsolete options: BOOT_PROBE_KEYBOARD,
  BOOT_PROBE_KEYBOARD_LOCK and BOOT_FORCE_COMCONSOLE.
- Add reference to BOOT_COMCONSOLE_SPEED.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1997/04/25 19:38:01 bde Exp $
d22 6
d54 1
a54 1
CLEANFILES+=	boot.nohdr boot.strip rawboot sizetest
d83 6
a88 1
all:		rawboot
@


1.7
log
@Removed LDADD=-lc and associated DPADD.  libc would probably break
things if it were actually used.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1997/02/22 09:31:30 peter Exp $
a21 15
# Probe the keyboard and use the serial console if the keyboard isn't found.
.if defined(BOOT_PROBE_KEYBOARD)
CFLAGS+=	-DPROBE_KEYBOARD
.endif

# Probe the keyboard lock and use the serial console if the keyboard is locked.
.if defined(BOOT_PROBE_KEYBOARD_LOCK)
CFLAGS+=	-DPROBE_KEYBOARD_LOCK
.endif

# Force use of the serial console.
.if defined(BOOT_FORCE_COMCONSOLE)
CFLAGS+=	-DFORCE_COMCONSOLE
.endif

d26 3
@


1.6
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$
a60 1
DPADD=		${LIBC}
a61 1
LDADD=		-lc
@


1.5
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.4
log
@Add missing -I so that probe_keyboard.c can find <i386/isa/kbdio.h>. :-(
(Why, oh why did this include file end up in isa/ rather than include/ ?)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/10/15 16:26:05 bde Exp $
@


1.3
log
@Synchronized with biosboot/Makefile:
- use gcc-2.7.2 alignment features
- get CWARNFLAGS form <bsd.kern.mk>
- fixed whitespace differences.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1996/10/14 17:25:53 pst Exp $
d19 1
@


1.3.2.1
log
@YAMFC (added -I for keyboard #defines).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/10/15 16:26:05 bde Exp $
a18 1
CFLAGS+=	-I${.CURDIR}/../../..
@


1.3.2.2
log
@Bring in 3.0 changes (dual booting et al).
Unfortunately, with the addition of the kernel config file, the boot blocks
are FULL again.  Time to do more bit buming.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3.2.1 1996/12/15 15:05:23 bde Exp $
d61 1
d63 1
@


1.3.2.3
log
@MFC: Synchronize with ../biosboot/Makefile.
- Remove reference to the obsolete options: BOOT_PROBE_KEYBOARD,
  BOOT_PROBE_KEYBOARD_LOCK and BOOT_FORCE_COMCONSOLE.
- Add reference to BOOT_COMCONSOLE_SPEED.

No functional change is introduced in this merge.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3.2.2 1997/07/01 05:56:06 pst Exp $
d22 15
a40 3

BOOT_COMCONSOLE_SPEED?=9600
CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}
@


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


1.3.4.1
log
@Adapt to gcc 2.6.3 and bring one change across from HEAD.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/10/15 16:26:05 bde Exp $
d14 2
a15 1
CFLAGS=		-O2 -DRAWBOOT \
@


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


1.2
log
@Expose the control mechanism for serial console boot so that the default
shipped with freebsd can be changed without modifying the Makefiles directly.

Creates:	BOOT_FORCE_COMCONSOLE
		BOOT_PROBE_KEYBOARD
		BOOT_PROBE_KEYBOARD_LOCK
		BOOT_COMCONSOLE			(port value for console)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1996/09/11 19:25:11 phk Exp $
d14 1
a14 1
CFLAGS=         -O2 \
d19 1
d36 1
a36 1
# By default, if a serial port is going to be used as console, use COM1 
d38 2
a39 2
BOOT_COMCONSOLE_PORT?=0x3F8  
CFLAGS+=        -DCOMCONSOLE=${BOOT_COMCONSOLE_PORT}
d90 1
a90 1
all:		rawboot 
d96 1
@


1.1
log
@The intended usage is:

	cat /usr/mdec/rawboot /sys/compile/FOO/kernel | fdwrite

That should explain it all  :-)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.45 1996/09/07 21:16:44 bde Exp $
a17 1
CFLAGS+=	-DCOMCONSOLE=0x3F8
d21 18
a38 5
#CFLAGS+=	-DPROBE_KEYBOARD

# Force use of the serial console (after probing the keyboard if
# PROBE_KEYBOARD is defined).
#CFLAGS+=	-DFORCE_COMCONSOLE
@
