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.2.2.4
	RELENG_3_0_0_RELEASE:1.11
	RELENG_2_2_7_RELEASE:1.2.2.4
	PRE_NOBDEV:1.11
	POST_DEVFS_SLICE:1.11
	PRE_DEVFS_SLICE:1.11
	RELENG_2_2_6_RELEASE:1.2.2.4
	POST_SOFTUPDATE:1.9
	PRE_SOFTUPDATE:1.9
	RELENG_2_2_5_RELEASE:1.2.2.3
	WOLLMAN_MBUF:1.7.0.2
	BP_WOLLMAN_MBUF:1.7
	RELENG_2_2_2_RELEASE:1.2.2.2
	post_smp_merge:1.7
	pre_smp_merge:1.7
	RELENG_2_2_1_RELEASE:1.2.2.2
	RELENG_2_2_0_RELEASE:1.2.2.2
	RELENG_2_2:1.2.0.2
	RELENG_2_2_BP:1.2;
locks; strict;
comment	@# @;


1.14
date	2000.03.20.12.14.11;	author kato;	state dead;
branches;
next	1.13;

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

1.12
date	99.01.04.08.05.55;	author kato;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	98.03.30.12.24.12;	author kato;	state Exp;
branches;
next	1.10;

1.10
date	98.03.14.02.30.01;	author kato;	state Exp;
branches;
next	1.9;

1.9
date	98.03.07.15.48.29;	author kato;	state Exp;
branches;
next	1.8;

1.8
date	98.02.16.09.37.18;	author kato;	state Exp;
branches;
next	1.7;

1.7
date	97.04.26.04.00.25;	author kato;	state Exp;
branches;
next	1.6;

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

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

1.4
date	96.12.15.09.22.52;	author kato;	state Exp;
branches;
next	1.3;

1.3
date	96.11.09.00.18.25;	author asami;	state Exp;
branches;
next	1.2;

1.2
date	96.10.23.07.24.42;	author asami;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	96.09.12.11.09.14;	author asami;	state Exp;
branches;
next	;

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

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

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

1.2.2.1
date	96.11.10.12.12.39;	author phk;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	96.12.15.19.46.10;	author bde;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	97.08.17.04.32.07;	author kato;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	98.02.04.10.23.26;	author kato;	state Exp;
branches;
next	1.2.2.5;

1.2.2.5
date	99.09.05.08.20.19;	author peter;	state Exp;
branches;
next	;


desc
@@


1.14
log
@Removed old boot loader.
@
text
@# $FreeBSD: src/sys/pc98/boot/rawboot/Makefile,v 1.13 1999/08/28 00:50:22 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 \
		-DPC98 \
		-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?=0x30
BOOT_COMCONSOLE_CLK?=16
BOOT_COMCONSOLE_MODE=0x0c
CFLAGS+=	-DCOMCONSOLE=${BOOT_COMCONSOLE_PORT} \
		-DCOMCONSOLE_CLK=${BOOT_COMCONSOLE_CLK} \
		-DCOMCONSOLE_MODE=${BOOT_COMCONSOLE_MODE}

# feature not implemented
# 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
@d84 1
a84 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
@


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


1.12
log
@Sync with sys/i386/boot/rawboot/Makefile revision 1.12.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11 1998/03/30 12:24:12 kato Exp $
@


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


1.11
log
@Merge the change in sys/i386/boot/rawboot/Makefile revision from 1.7
to 1.8.

Forgotten by:	kato
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.10 1998/03/14 02:30:01 kato Exp $
a11 1
BINDIR=		/usr/mdec
d71 2
a72 2
	strip boot.strip
	size boot.strip
@


1.10
log
@Sync with sys/i386/boot/rawboot/Makefile revision 1.11.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1998/03/07 15:48:29 kato 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

d30 4
@


1.9
log
@Sync with following changes:
>   Added files:
>     sys/i386/boot        Makefile.inc
>  Revision  Changes    Path
>  1.63      +3 -12     src/sys/i386/boot/biosboot/Makefile
>  1.8       +1 -17     src/sys/i386/boot/kzipboot/Makefile
>  1.16      +6 -15     src/sys/i386/boot/netboot/Makefile
>  1.10      +3 -14     src/sys/i386/boot/rawboot/Makefile
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1998/02/16 09:37:18 kato Exp $
a19 1
CFLAGS+=	-I${.CURDIR}/../../..
@


1.8
log
@Sync with sys/i386/boot/*/Makefile (Eivind's change: Make bootblock
building independent of /usr/include if relative includes are
available).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1997/04/26 04:00:25 kato Exp $
a37 6
.if exists(${.CURDIR}/../../../../include)
CFLAGS+= -nostdinc
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../../
CFLAGS+= -I${.CURDIR}/../../../../include
.endif

d65 1
a65 1
CLEANFILES+=	boot.nohdr boot.strip machine rawboot sizetest
d94 1
a94 6
pre-compile:
.if !exists(${.OBJDIR}/machine)
	ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
.endif

all:		pre-compile rawboot
@


1.7
log
@Synchronize with sys/i386/boot/biosboot/Makefile and
sys/i386/boot/rawboot/Makefile revsions 1.56 and 1.7, respectively.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1997/02/22 09:43:18 peter Exp $
d38 6
d71 1
a71 1
CLEANFILES+=	boot.nohdr boot.strip rawboot sizetest
d100 6
a105 1
all:		rawboot
@


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$
a65 1
DPADD=		${LIBC}
a66 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
@Synchronize with sys/i386/boot/rawboot/Makefile revison 1.4.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/11/09 00:18:25 asami Exp $
@


1.3
log
@(1) Update

(2) Don't depend on BOOTSEG

(3) Change BOOTSEG from 0x9000 to 0x1000

Should be in 2.2.

Submitted by:	FreeBSD(98) Development Team
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1996/10/23 07:24:42 asami Exp $
d20 1
@


1.2
log
@Another round of merge.

(1) Bug fix (pass boot drive):

	pc98/boot/biosboot/boot2.S

(2) Delete code for unsupported high-resolution modes and move old
    Epson notebook code to epsonio.h:

  	pc98/boot/biosboot/io.c
	pc98/i386/vm_machdep.c
	pc98/pc98/fd.c
	pc98/pc98/pc98.c
	pc98/pc98/pc98.h
	pc98/pc98/epsonio.h (new)

(3) Change aic driver so that PCMCIA cards (I/O port same as PC/AT)
    and PC-9801-100 cards can be selected with a flag in kernel config
    file:

	pc98/pc98/aic6360.c
	pc98/pc98/aic_98.h (new)

(4) Fix wcd entry (it was broken).  Delete mcd, it doesn't work on
    98.  Change aic entry according to above:

	pc98/conf/GENERIC98

(5) Move pc98_machdep.c to top of files in pc98/pc98:

	pc98/conf/files.pc98

(6) Delete empty lines:

	pc98/i386/locore.s

(7) Fix (it didn't work if I586 was specified):

	pc98/pc98/clock.c

(8) Staticize:

	pc98/pc98/pc98_machdep.c

(9) Enable workaround for Cyrix bug for 5x86 also:

	pc98/i386/machdep.c
	pc98/i386/trap.c

All the above deletes this file too:

	pc98/i386/pmap.c

(phew!)
Submitted by:	The FreeBSD(98) Development Team
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1996/09/12 11:09:14 asami Exp $
d78 1
a78 1
BOOTSEG=	0x9000
@


1.2.2.1
log
@Merge from -current
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1996/10/23 07:24:42 asami Exp $
d78 1
a78 1
BOOTSEG=	0x1000
@


1.2.2.2
log
@YAMFC (added -I for keyboard #defines).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2.2.1 1996/11/10 12:12:39 phk Exp $
a19 1
CFLAGS+=	-I${.CURDIR}/../../..
@


1.2.2.3
log
@Synchronize with following changes:

>  Revision  Changes    Path
>  1.50.2.4  +1 -18     src/sys/i386/boot/biosboot/Makefile
>  1.5.4.3   +1 -15     src/sys/i386/boot/biosboot/bios.S
>  1.60.2.1  +131 -74   src/sys/i386/boot/biosboot/boot.c
>  1.14.2.1  +4 -5      src/sys/i386/boot/biosboot/boot.h
>  1.22.2.2  +7 -6      src/sys/i386/boot/biosboot/disk.c
>  1.19.2.1  +26 -14    src/sys/i386/boot/biosboot/io.c
>  1.7.2.3   +77 -85    src/sys/i386/boot/biosboot/probe_keyboard.c
>  1.3.8.2   +13 -12    src/sys/i386/boot/biosboot/serial.S
>  1.16.2.1  +26 -16    src/sys/i386/boot/biosboot/sys.c
>  1.6.4.1   +4 -2      src/sys/i386/boot/kzipboot/boot.c
>  1.3.2.2   +1 -3      src/sys/i386/boot/rawboot/Makefile
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2.2.2 1996/12/15 19:46:10 bde Exp $
d66 1
d68 1
@


1.2.2.4
log
@Sync with sys/i386/boot/rawboot/Makefile revision 1.3.2.3.

Submitted by:	NOKUBI Hirotaka <hnokubi@@yyy.or.jp>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2.2.3 1997/08/17 04:32:07 kato Exp $
d23 15
a45 4

# feature not implemented
# BOOT_COMCONSOLE_SPEED?=9600
# CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}
@


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


1.1
log
@Another round of merge/update.

(1) Add PC98 support to apm_bios.h and ns16550.h, remove pc98/pc98/ic
(2) Move PC98 specific code out of cpufunc.h (to pc98.h)
(3) Let the boot subtrees look more alike

Submitted by:	The FreeBSD(98) Development Team
		<freebsd98-hackers@@jp.freebsd.org>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1996/09/11 19:25:11 phk Exp $
d14 1
a14 1
CFLAGS=         -O2 \
a18 1
CFLAGS+=	-DCOMCONSOLE=0x30 -DCOMCONSOLE_CLK=16 -DCOMCONSOLE_MODE=0x0c
d20 1
d23 22
a44 5
#CFLAGS+=	-DPROBE_KEYBOARD

# Force use of the serial console (after probing the keyboard if
# PROBE_KEYBOARD is defined).
#CFLAGS+=	-DFORCE_COMCONSOLE
d95 1
a95 1
all:		rawboot 
d101 1
@
