head	1.13;
access;
symbols
	RELENG_6_4_0_RELEASE:1.12.12.1
	RELENG_6_4:1.12.0.12
	RELENG_6_4_BP:1.12
	RELENG_6_3_0_RELEASE:1.12
	RELENG_6_3:1.12.0.10
	RELENG_6_3_BP:1.12
	RELENG_6_2_0_RELEASE:1.12
	RELENG_6_2:1.12.0.8
	RELENG_6_2_BP:1.12
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.8
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.12
	RELENG_6_1:1.12.0.6
	RELENG_6_1_BP:1.12
	RELENG_6_0_0_RELEASE:1.12
	RELENG_6_0:1.12.0.4
	RELENG_6_0_BP:1.12
	RELENG_6:1.12.0.2
	RELENG_6_BP:1.12
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.6
	RELENG_5_4_BP:1.11
	RELENG_4_11_0_RELEASE:1.8.2.1
	RELENG_4_11:1.8.2.1.0.18
	RELENG_4_11_BP:1.8.2.1
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.4
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.2
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.8.2.1
	RELENG_4_10:1.8.2.1.0.16
	RELENG_4_10_BP:1.8.2.1
	RELENG_5_2_1_RELEASE:1.10
	RELENG_5_2_0_RELEASE:1.10
	RELENG_5_2:1.10.0.6
	RELENG_5_2_BP:1.10
	RELENG_4_9_0_RELEASE:1.8.2.1
	RELENG_4_9:1.8.2.1.0.14
	RELENG_4_9_BP:1.8.2.1
	RELENG_5_1_0_RELEASE:1.10
	RELENG_5_1:1.10.0.4
	RELENG_5_1_BP:1.10
	RELENG_4_8_0_RELEASE:1.8.2.1
	RELENG_4_8:1.8.2.1.0.12
	RELENG_4_8_BP:1.8.2.1
	RELENG_5_0_0_RELEASE:1.10
	RELENG_5_0:1.10.0.2
	RELENG_5_0_BP:1.10
	RELENG_4_7_0_RELEASE:1.8.2.1
	RELENG_4_7:1.8.2.1.0.10
	RELENG_4_7_BP:1.8.2.1
	RELENG_4_6_2_RELEASE:1.8.2.1
	RELENG_4_6_1_RELEASE:1.8.2.1
	RELENG_4_6_0_RELEASE:1.8.2.1
	RELENG_4_6:1.8.2.1.0.8
	RELENG_4_6_BP:1.8.2.1
	RELENG_4_5_0_RELEASE:1.8.2.1
	RELENG_4_5:1.8.2.1.0.6
	RELENG_4_5_BP:1.8.2.1
	RELENG_4_4_0_RELEASE:1.8.2.1
	RELENG_4_4:1.8.2.1.0.4
	RELENG_4_4_BP:1.8.2.1
	KSE_MILESTONE_2:1.9
	KSE_PRE_MILESTONE_2:1.9
	RELENG_4_3_0_RELEASE:1.8.2.1
	RELENG_4_3:1.8.2.1.0.2
	RELENG_4_3_BP:1.8.2.1
	RELENG_4_2_0_RELEASE:1.8.2.1
	RELENG_4_1_1_RELEASE:1.8.2.1
	PRE_SMPNG:1.9
	RELENG_4_1_0_RELEASE:1.8.2.1
	RELENG_3_5_0_RELEASE:1.5
	RELENG_4_0_0_RELEASE:1.8
	RELENG_4:1.8.0.2
	RELENG_4_BP:1.8
	RELENG_3_4_0_RELEASE:1.5
	RELENG_3_3_0_RELEASE:1.5
	RELENG_3_2_PAO:1.5.0.4
	RELENG_3_2_PAO_BP:1.5
	RELENG_3_2_0_RELEASE:1.5
	POST_VFS_BIO_NFS_PATCH:1.6
	PRE_VFS_BIO_NFS_PATCH:1.6
	POST_SMP_VMSHARE:1.6
	PRE_SMP_VMSHARE:1.6
	POST_NEWBUS:1.6
	PRE_NEWBUS:1.5
	RELENG_3_1_0_RELEASE:1.5
	RELENG_3:1.5.0.2
	RELENG_3_BP:1.5
	RELENG_3_0_0_RELEASE:1.3
	initial:1.1.1.1
	MSMITH:1.1.1;
locks; strict;
comment	@# @;


1.13
date	2006.05.11.22.25.25;	author jhb;	state dead;
branches;
next	1.12;

1.12
date	2004.12.21.08.47.12;	author ru;	state Exp;
branches
	1.12.2.1
	1.12.12.1;
next	1.11;

1.11
date	2004.02.11.22.01.17;	author ru;	state Exp;
branches;
next	1.10;

1.10
date	2002.05.10.09.26.29;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	2000.05.01.20.26.19;	author peter;	state Exp;
branches;
next	1.8;

1.8
date	99.09.03.19.42.18;	author msmith;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	99.06.29.21.23.15;	author peter;	state Exp;
branches;
next	1.6;

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

1.5
date	98.10.31.17.12.32;	author dfr;	state Exp;
branches;
next	1.4;

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

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

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

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

1.12.2.1
date	2012.11.17.07.42.32;	author svnexp;	state Exp;
branches;
next	;

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

1.8.2.1
date	2000.07.06.23.29.47;	author obrien;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2012.11.17.07.25.18;	author svnexp;	state Exp;
branches;
next	;

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


desc
@@


1.13
log
@First pass at removing Alpha kernel support.
@
text
@# $FreeBSD: src/sys/boot/alpha/netboot/Makefile,v 1.12 2004/12/21 08:47:12 ru Exp $
#	$NetBSD: Makefile,v 1.12 1998/02/19 14:18:36 drochner Exp $

BOOT= 		netboot
NO_MAN=
NEWVERSWHAT=	"SRM net boot" alpha
LOAD_ADDRESS=	${PRIMARY_LOAD_ADDRESS}

CFLAGS+=	-DLOADER_NET_SUPPORT

.include "${.CURDIR}/../common/Makefile.common"
@


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

OK'ed by:	core
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.12.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/boot/alpha/netboot/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.12.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.11
log
@Overhaul makefiles.
@
text
@d5 1
a5 1
NOMAN=
@


1.10
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@d4 1
a4 2
BASE= 		netboot
PROG= 		${BASE}
d9 1
a9 3
CFLAGS+=	-ffreestanding -DLOADER_NET_SUPPORT

.include	<${.CURDIR}/../common/Makefile.common>
d11 1
@


1.9
log
@Add $FreeBSD$
@
text
@d10 1
a10 1
CFLAGS+=	-DLOADER_NET_SUPPORT
@


1.8
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
@d1 1
@


1.8.2.1
log
@MFC: add FreeBSD Ids.
@
text
@a0 1
# $FreeBSD$
@


1.8.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/boot/alpha/netboot/Makefile 62708 2000-07-06 23:29:48Z obrien $
@


1.7
log
@Reconcile all the loader newvers.sh's into one common one.
@
text
@d7 1
d9 1
a9 1
.PATH:		${.CURDIR}/../common
d11 1
a11 60
# i386-specific bootstrap sources
SRCS+=		main.c conf.c dev_net.c

# Always add MI sources 
.PATH:		${.CURDIR}/../../common
.include	<${.CURDIR}/../../common/Makefile.inc>
CFLAGS+=	-mno-fp-regs
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+=	-I${.CURDIR}/../../.. -I.
CFLAGS+=	-I${.OBJDIR}
CFLAGS+=	-DNETBOOT

CLEANFILES+=	vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
		setdefs.h start.o
CLEANFILES+=	${BASE} ${BASE}.sym ${BASE}.list

CFLAGS+=	-Wall

CFLAGS+=	-I${LIBSTANDDIR}
CFLAGS+=	-I${.CURDIR}/..
CRT=		start.o
STRIP=
BINDIR?=	/boot

all: ${BASE}

vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
	sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
	${CC} -c vers.c

${BASE}: ${BASE}.sym
	objcopy -O binary ${BASE}.sym ${BASE}

${BASE}.nosym: ${BASE}.sym
	cp ${BASE}.sym ${BASE}.nosym
	strip ${BASE}.nosym

${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBALPHA} ${CRT} vers.o setdef0.o setdef1.o
	${LD} -o ${BASE}.sym -M -e start -N -Ttext ${PRIMARY_LOAD_ADDRESS} \
	${CRT} setdef0.o ${OBJS} setdef1.o \
	vers.o ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} >${.OBJDIR}/${BASE}.list

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

setdef0.o: setdefs.h

setdef1.o: setdefs.h

.include <bsd.prog.mk>

setdefs.h: gensetdefs ${OBJS}
	@@echo Generating linker sets
	@@./gensetdefs ${OBJS} >setdefs.h

gensetdefs: gensetdefs.o
	${CC} -static gensetdefs.o -o $@@

gensetdefs.o: gensetdefs.c
	${CC} -c $<
@


1.6
log
@Bring the 'new-bus' to the i386.  This extensively changes the way the
i386 platform boots, it is no longer ISA-centric, and is fully dynamic.
Most old drivers compile and run without modification via 'compatability
shims' to enable a smoother transition.  eisa, isapnp and pccard* are
not yet using the new resource manager.  Once fully converted, all drivers
will be loadable, including PCI and ISA.

(Some other changes appear to have snuck in, including a port of Soren's
 ATA driver to the Alpha.  Soren, back this out if you need to.)

This is a checkpoint of work-in-progress, but is quite functional.

The bulk of the work was done over the last few years by Doug Rabson and
Garrett Wollman.

Approved by:	core
@
text
@d6 1
a6 1
NEWVERSWHAT=	"SRM net boot"
d36 2
a37 2
vers.o: ${.CURDIR}/newvers.sh ${.CURDIR}/Makefile
	sh ${.CURDIR}/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
@


1.5
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
@


1.4
log
@Reclaim the 48k used by the first bootstrap stage by adding it to the malloc
pool.
@
text
@d31 1
d52 1
a52 1
	${CC} -c -DPRIMARY_BOOTBLOCK $<
@


1.3
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
@d19 1
a19 2
# Verbose ls causes extra heap usage
CFLAGS+=	-DVERBOSE_LS
@


1.2
log
@Minor tweaks to track a couple of i386 changes and to make it compile.
@
text
@d18 1
a27 3
# XXX fix to use "standard" versions
LIBSTANDDIR=	/home/dfr/FreeBSD/alpha/src/lib/libstand
LIBSTAND=	-lstand
a28 1
LIBALPHA=	${.OBJDIR}/../libalpha/libalpha.a
@


1.1
log
@Initial revision
@
text
@d29 1
a29 1
LIBSTAND=	${LIBSTANDDIR}/obj/libstand.a
d31 1
a31 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
@@
