head	1.19;
access;
symbols
	RELENG_6_4_0_RELEASE:1.18.12.1
	RELENG_6_4:1.18.0.12
	RELENG_6_4_BP:1.18
	RELENG_6_3_0_RELEASE:1.18
	RELENG_6_3:1.18.0.10
	RELENG_6_3_BP:1.18
	RELENG_6_2_0_RELEASE:1.18
	RELENG_6_2:1.18.0.8
	RELENG_6_2_BP:1.18
	RELENG_5_5_0_RELEASE:1.17
	RELENG_5_5:1.17.0.8
	RELENG_5_5_BP:1.17
	RELENG_6_1_0_RELEASE:1.18
	RELENG_6_1:1.18.0.6
	RELENG_6_1_BP:1.18
	RELENG_6_0_0_RELEASE:1.18
	RELENG_6_0:1.18.0.4
	RELENG_6_0_BP:1.18
	RELENG_6:1.18.0.2
	RELENG_6_BP:1.18
	RELENG_5_4_0_RELEASE:1.17
	RELENG_5_4:1.17.0.6
	RELENG_5_4_BP:1.17
	RELENG_4_11_0_RELEASE:1.10.2.1
	RELENG_4_11:1.10.2.1.0.18
	RELENG_4_11_BP:1.10.2.1
	RELENG_5_3_0_RELEASE:1.17
	RELENG_5_3:1.17.0.4
	RELENG_5_3_BP:1.17
	RELENG_5:1.17.0.2
	RELENG_5_BP:1.17
	RELENG_4_10_0_RELEASE:1.10.2.1
	RELENG_4_10:1.10.2.1.0.16
	RELENG_4_10_BP:1.10.2.1
	RELENG_5_2_1_RELEASE:1.16
	RELENG_5_2_0_RELEASE:1.16
	RELENG_5_2:1.16.0.4
	RELENG_5_2_BP:1.16
	RELENG_4_9_0_RELEASE:1.10.2.1
	RELENG_4_9:1.10.2.1.0.14
	RELENG_4_9_BP:1.10.2.1
	RELENG_5_1_0_RELEASE:1.16
	RELENG_5_1:1.16.0.2
	RELENG_5_1_BP:1.16
	RELENG_4_8_0_RELEASE:1.10.2.1
	RELENG_4_8:1.10.2.1.0.12
	RELENG_4_8_BP:1.10.2.1
	RELENG_5_0_0_RELEASE:1.15
	RELENG_5_0:1.15.0.2
	RELENG_5_0_BP:1.15
	RELENG_4_7_0_RELEASE:1.10.2.1
	RELENG_4_7:1.10.2.1.0.10
	RELENG_4_7_BP:1.10.2.1
	RELENG_4_6_2_RELEASE:1.10.2.1
	RELENG_4_6_1_RELEASE:1.10.2.1
	RELENG_4_6_0_RELEASE:1.10.2.1
	RELENG_4_6:1.10.2.1.0.8
	RELENG_4_6_BP:1.10.2.1
	RELENG_4_5_0_RELEASE:1.10.2.1
	RELENG_4_5:1.10.2.1.0.6
	RELENG_4_5_BP:1.10.2.1
	RELENG_4_4_0_RELEASE:1.10.2.1
	RELENG_4_4:1.10.2.1.0.4
	RELENG_4_4_BP:1.10.2.1
	KSE_MILESTONE_2:1.11
	KSE_PRE_MILESTONE_2:1.11
	RELENG_4_3_0_RELEASE:1.10.2.1
	RELENG_4_3:1.10.2.1.0.2
	RELENG_4_3_BP:1.10.2.1
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	PRE_SMPNG:1.11
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.8
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.2
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.8
	RELENG_3_3_0_RELEASE:1.8
	RELENG_3_2_PAO:1.8.0.4
	RELENG_3_2_PAO_BP:1.8
	RELENG_3_2_0_RELEASE:1.8
	POST_VFS_BIO_NFS_PATCH:1.8
	PRE_VFS_BIO_NFS_PATCH:1.8
	POST_SMP_VMSHARE:1.8
	PRE_SMP_VMSHARE:1.8
	POST_NEWBUS:1.8
	PRE_NEWBUS:1.8
	RELENG_3_1_0_RELEASE:1.8
	RELENG_3:1.8.0.2
	RELENG_3_BP:1.8
	RELENG_3_0_0_RELEASE:1.5
	initial:1.1.1.1
	MSMITH:1.1.1;
locks; strict;
comment	@# @;


1.19
date	2006.05.11.22.25.23;	author jhb;	state dead;
branches;
next	1.18;

1.18
date	2004.12.21.08.47.11;	author ru;	state Exp;
branches
	1.18.2.1
	1.18.12.1;
next	1.17;

1.17
date	2004.02.11.22.01.17;	author ru;	state Exp;
branches;
next	1.16;

1.16
date	2003.01.26.14.32.53;	author phk;	state Exp;
branches;
next	1.15;

1.15
date	2002.11.27.20.13.15;	author jhb;	state Exp;
branches;
next	1.14;

1.14
date	2002.10.07.08.14.10;	author phk;	state Exp;
branches;
next	1.13;

1.13
date	2002.06.11.06.56.31;	author phk;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.10.09.26.27;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	2000.07.21.22.36.42;	author jhb;	state Exp;
branches;
next	1.10;

1.10
date	99.12.15.18.16.56;	author marcel;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.09.03.19.42.11;	author msmith;	state Exp;
branches;
next	1.8;

1.8
date	99.01.02.23.22.12;	author jkh;	state Exp;
branches;
next	1.7;

1.7
date	98.10.31.17.12.31;	author dfr;	state Exp;
branches;
next	1.6;

1.6
date	98.10.20.02.43.28;	author msmith;	state Exp;
branches;
next	1.5;

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

1.4
date	98.09.26.10.51.36;	author dfr;	state Exp;
branches;
next	1.3;

1.3
date	98.09.20.21.46.19;	author dfr;	state Exp;
branches;
next	1.2;

1.2
date	98.08.22.10.31.00;	author dfr;	state Exp;
branches;
next	1.1;

1.1
date	98.08.21.03.17.41;	author msmith;	state Exp;
branches
	1.1.1.1;
next	;

1.18.2.1
date	2012.11.17.07.42.31;	author svnexp;	state Exp;
branches;
next	;

1.18.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.10.2.1
date	2001.03.04.05.12.40;	author obrien;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2012.11.17.07.25.17;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	98.08.21.03.17.41;	author msmith;	state Exp;
branches;
next	;


desc
@@


1.19
log
@First pass at removing Alpha kernel support.
@
text
@# $NetBSD: Makefile,v 1.15 1998/03/28 00:21:35 thorpej Exp $
# $FreeBSD: src/sys/boot/alpha/boot1/Makefile,v 1.18 2004/12/21 08:47:11 ru Exp $

PROG=	boot1.sym
INTERNALPROG=
NO_MAN=
LINKS=	${BINDIR}/boot1 ${BINDIR}/boot

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

SRCS=		start.S boot1.c
CFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
CFLAGS+=	-DBOOT1
CFLAGS+=	-I${.CURDIR}/../../common

BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}

CLEANFILES= boot1

FILES=	boot1

boot1: boot1.sym
	objcopy -S -O binary boot1.sym ${.TARGET}

LDFLAGS=-Ttext ${BOOT_RELOC} -N -e start
DPADD=	${LIBALPHA} ${LIBSTAND}
LDADD=	${LIBALPHA} -lstand

.include <bsd.prog.mk>
@


1.18
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.18.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/sys/boot/alpha/boot1/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.18.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.17
log
@Overhaul makefiles.
@
text
@d6 1
a6 1
NOMAN=
@


1.16
log
@Link /boot/boot1 to the name /boot/boot to avoid per-arch naming of the
bootstrap code for disklabel using architectures.
@
text
@d4 4
a7 1
.include <../Makefile.inc>
d9 1
a9 4
PROG = boot1
LINKS =	${BINDIR}/${PROG} ${BINDIR}/boot

.PATH:		${.CURDIR}/../libalpha
a11 1
CFLAGS+=	-ffreestanding -mno-fp-regs
d14 1
a14 6
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+=	-I${LIBSTANDDIR}
CFLAGS+=	-I${.CURDIR}/..
NOMAN=1
STRIP=
BINDIR?=	/boot
d18 1
a18 1
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${PROG}.list
d20 1
a20 1
all:	${PROG}
d22 2
a23 3
${PROG}.nosym: ${PROG}.sym
	cp ${PROG}.sym ${PROG}.nosym
	strip ${PROG}.nosym
d25 3
a27 2
${PROG}: ${PROG}.nosym
	objcopy -O binary ${PROG}.nosym ${PROG}
a29 9

start.o:	${.CURDIR}/../libalpha/start.S
	${CC} -c ${CFLAGS} $<

${PROG}.sym: ${OBJS} ${LIBKERN}
	${LD} -M -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
		-L${DESTDIR}${LIBDIR} ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} \
		> ${.OBJDIR}/${PROG}.list
	size ${PROG}.sym
@


1.15
log
@Enable UFS2 support in boot1.  Just as with sparc64 the same boot1 works
great with both UFS1 and UFS2 filesystems.

Approved by:	re
@
text
@d7 1
@


1.14
log
@Ups, forgot to tell cvs commit about this file.
Move UFS1_ONLY to Makefiles instead of common/ufsread.c

Sponsored by:	DARPA & NAI Labs
@
text
@a16 1
CFLAGS+=	-DUFS1_ONLY
@


1.13
log
@Make the alpha architecture use the common ufsread().

Submitted by:	ticso
@
text
@d17 1
@


1.12
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@d10 1
a10 1
SRCS=		start.S boot1.c sys.c
@


1.11
log
@Remove an unnecessary .PATH entry.
@
text
@d2 1
a2 1
# $FreeBSD: src/sys/boot/alpha/boot1/Makefile,v 1.10 1999/12/15 18:16:56 marcel Exp $
d11 3
a13 1
CFLAGS+=	-mno-fp-regs
a16 2
CFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
CFLAGS+=	-DBOOT1
@


1.10
log
@Add -L${DESTDIR}${LIBDIR} to ld's command line so that the right
libstand is used.
@
text
@d2 1
a2 1
# $FreeBSD$
a7 1
.PATH:		${.CURDIR}/../../common
@


1.10.2.1
log
@MFC: rev 1.11 (remove an unnecessary .PATH entry)
@
text
@d2 1
a2 1
# $FreeBSD: src/sys/boot/alpha/boot1/Makefile,v 1.10 1999/12/15 18:16:56 marcel Exp $
d8 1
@


1.10.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/sys/boot/alpha/boot1/Makefile 73414 2001-03-04 05:12:40Z obrien $
@


1.9
log
@Slight reorganisation of the Alpha/SRM loader build:

 - Make as much of the makefile for each of the three flavours
   (disk, CDROM, net) common.
 - Special-case the libalpha startup module on its use in boot1, not
   the other way around.
 - Build the loader out of a "loader" directory

Reviewed by:	mjacob, dfr
@
text
@d2 1
d42 2
a43 1
		${LIBSTAND} ${LIBALPHA} ${LIBSTAND} > ${.OBJDIR}/${PROG}.list
@


1.8
log
@Update for new boot block location.
@
text
@d16 1
@


1.7
log
@* Extend the memory available for the heap from 256k to 512k.
* Embed the stack into the bss section for loader and netboot.  This
  is required for netboot since otherwise the stack would be inside our
  heap.
* Install loader and netboot in /boot by default.
* Fix getbootfile so that it searches for a ',' instead of a ';'
  when terminating the filename.
@
text
@d18 1
a18 1
BINDIR?=	/usr/mdec
a24 4

afterinstall:
	ln -sf boot1 /usr/mdec/daboot
	ln -sf boot1 /usr/mdec/fdboot
@


1.6
log
@Hex constants should only have one '0x' prefix.
@
text
@d18 1
d40 1
a40 1
	${CC} -c -DPRIMARY_BOOTBLOCK $<
a45 1

@


1.5
log
@Link fdboot to boot1 as well.
@
text
@d15 1
a15 1
CFLAGS+=	-DSECONDARY_LOAD_ADDRESS=0x${SECONDARY_LOAD_ADDRESS} -DMINIMAL
@


1.4
log
@* Add old UFS compatibility code to alpha/boot1.
* Fix a raft of warnings, printf and otherwise.
* Allocate the correct amount in mod_searchmodule to prevent an overflow.
* Fix the makefiles so they work outside my home directory (oops).
@
text
@d27 1
@


1.3
log
@Make the alpha bootstrap build again, fix some warning and change sdboot to daboot.
@
text
@a12 2
LIBSTANDDIR=	/home/dfr/FreeBSD/alpha/src/lib/libstand
LIBSTAND=	-lstand
a13 1
LIBALPHA=	${.OBJDIR}/../libalpha/libalpha.a
@


1.2
log
@Minor tweaks to track a couple of i386 changes and to make it compile.
@
text
@d29 1
a29 1
	ln -sf boot1 /usr/mdec/sdboot
@


1.1
log
@Initial revision
@
text
@d14 1
a14 1
LIBSTAND=	${LIBSTANDDIR}/obj/libstand.a
d16 1
a16 1
LIBALPHA=	${.CURDIR}/../libalpha/obj/libalpha.a
@


1.1.1.1
log
@This is the new unified bootstrap, sometimes known previously as the
'three-stage' bootstrap.
There are a number of caveats with the code in its current state:
 - The i386 bootstrap only supports booting from a floppy.
 - The kernel and kld do not yet know how to deal with the extended
   information and module summary passed in.
 - PnP-based autodetection and demand loading of modules is not implemented.
 - i386 ELF kernel loading is not ready yet.
 - The i386 bootstrap is loaded via an ugly blockmap.

On the alpha, both net- and disk-booting (SRM console machines only) is
supported.  No blockmaps are used by this code.

Obtained from:	Parts from the NetBSD/i386 standalone bootstrap.
@
text
@@
