head	1.9;
access;
symbols
	RELENG_6_4_0_RELEASE:1.8.12.1
	RELENG_6_4:1.8.0.12
	RELENG_6_4_BP:1.8
	RELENG_6_3_0_RELEASE:1.8
	RELENG_6_3:1.8.0.10
	RELENG_6_3_BP:1.8
	RELENG_6_2_0_RELEASE:1.8
	RELENG_6_2:1.8.0.8
	RELENG_6_2_BP:1.8
	RELENG_5_5_0_RELEASE:1.7
	RELENG_5_5:1.7.0.14
	RELENG_5_5_BP:1.7
	RELENG_6_1_0_RELEASE:1.8
	RELENG_6_1:1.8.0.6
	RELENG_6_1_BP:1.8
	RELENG_6_0_0_RELEASE:1.8
	RELENG_6_0:1.8.0.4
	RELENG_6_0_BP:1.8
	RELENG_6:1.8.0.2
	RELENG_6_BP:1.8
	RELENG_5_4_0_RELEASE:1.7
	RELENG_5_4:1.7.0.12
	RELENG_5_4_BP:1.7
	RELENG_4_11_0_RELEASE:1.4.2.1
	RELENG_4_11:1.4.2.1.0.18
	RELENG_4_11_BP:1.4.2.1
	RELENG_5_3_0_RELEASE:1.7
	RELENG_5_3:1.7.0.10
	RELENG_5_3_BP:1.7
	RELENG_5:1.7.0.8
	RELENG_5_BP:1.7
	RELENG_4_10_0_RELEASE:1.4.2.1
	RELENG_4_10:1.4.2.1.0.16
	RELENG_4_10_BP:1.4.2.1
	RELENG_5_2_1_RELEASE:1.7
	RELENG_5_2_0_RELEASE:1.7
	RELENG_5_2:1.7.0.6
	RELENG_5_2_BP:1.7
	RELENG_4_9_0_RELEASE:1.4.2.1
	RELENG_4_9:1.4.2.1.0.14
	RELENG_4_9_BP:1.4.2.1
	RELENG_5_1_0_RELEASE:1.7
	RELENG_5_1:1.7.0.4
	RELENG_5_1_BP:1.7
	RELENG_4_8_0_RELEASE:1.4.2.1
	RELENG_4_8:1.4.2.1.0.12
	RELENG_4_8_BP:1.4.2.1
	RELENG_5_0_0_RELEASE:1.7
	RELENG_5_0:1.7.0.2
	RELENG_5_0_BP:1.7
	RELENG_4_7_0_RELEASE:1.4.2.1
	RELENG_4_7:1.4.2.1.0.10
	RELENG_4_7_BP:1.4.2.1
	RELENG_4_6_2_RELEASE:1.4.2.1
	RELENG_4_6_1_RELEASE:1.4.2.1
	RELENG_4_6_0_RELEASE:1.4.2.1
	RELENG_4_6:1.4.2.1.0.8
	RELENG_4_6_BP:1.4.2.1
	RELENG_4_5_0_RELEASE:1.4.2.1
	RELENG_4_5:1.4.2.1.0.6
	RELENG_4_5_BP:1.4.2.1
	RELENG_4_4_0_RELEASE:1.4.2.1
	RELENG_4_4:1.4.2.1.0.4
	RELENG_4_4_BP:1.4.2.1
	KSE_MILESTONE_2:1.6
	KSE_PRE_MILESTONE_2:1.6
	RELENG_4_3_0_RELEASE:1.4.2.1
	RELENG_4_3:1.4.2.1.0.2
	RELENG_4_3_BP:1.4.2.1
	RELENG_4_2_0_RELEASE:1.4.2.1
	RELENG_4_1_1_RELEASE:1.4.2.1
	PRE_SMPNG:1.5
	RELENG_4_1_0_RELEASE:1.4
	RELENG_4_0_0_RELEASE:1.4
	RELENG_4:1.4.0.2
	RELENG_4_BP:1.4
	initial:1.1.1.1
	SE:1.1.1;
locks; strict;
comment	@# @;


1.9
date	2006.05.11.22.25.26;	author jhb;	state dead;
branches;
next	1.8;

1.8
date	2004.12.21.08.47.12;	author ru;	state Exp;
branches
	1.8.2.1
	1.8.12.1;
next	1.7;

1.7
date	2002.05.10.09.26.30;	author obrien;	state Exp;
branches;
next	1.6;

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

1.5
date	2000.08.04.08.30.00;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	99.12.16.17.24.59;	author marcel;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.11.14.13.54.41;	author marcel;	state Exp;
branches;
next	1.2;

1.2
date	99.07.29.22.22.38;	author se;	state Exp;
branches;
next	1.1;

1.1
date	99.07.28.20.28.47;	author se;	state Exp;
branches
	1.1.1.1;
next	;

1.8.2.1
date	2012.11.17.07.42.33;	author svnexp;	state Exp;
branches;
next	;

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

1.4.2.1
date	2000.08.04.08.31.08;	author obrien;	state Exp;
branches;
next	1.4.2.2;

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

1.1.1.1
date	99.07.28.20.28.47;	author se;	state Exp;
branches;
next	;


desc
@@


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

BASE= 		loader
PROG= 		${BASE}.exe
NO_MAN=
NEWVERSWHAT=	"ARC disk boot" ${MACHINE_ARCH}

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

# i386-specific bootstrap sources
SRCS+=		main.c conf.c

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

CLEANFILES+=	setdef0.c setdef0.o setdef1.c setdef1.o setdefs.h start.o \
		vers.c vers.o ${BASE}.exe ${BASE}.sym ${BASE}.list
CLEANFILES+=	loader.help
CLEANFILES+=	machine

CFLAGS+=	-Wall

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

all: ${PROG}

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

${BASE}.exe: ${BASE}.sym ${BASE}.help
	elf2exe ${BASE}.sym ${BASE}.exe

${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBARC} ${CRT} vers.o
	${LD} -o ${BASE}.sym -M -N -Ttext ${LOAD_ADDRESS} \
	${CRT} ${OBJS} vers.o -L${DESTDIR}${LIBDIR} \
	${LIBSTAND} ${LIBARC} ${LIBSTAND} >${.OBJDIR}/${BASE}.list

${BASE}.help: help.common help.alpha
	cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}

beforeinstall:
.if exists(${.OBJDIR}/loader.help)
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
.else
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/${BASE}.help ${DESTDIR}/boot
.endif

# Other fragments still to be brought in from ../Makfile.booters?
start.o:	${.CURDIR}/../lib/arch/${MACHINE_ARCH}/start.S
	${CC} -c ${CFLAGS} $<

machine:
	ln -sf ${.CURDIR}/../../../alpha/include machine

.include <bsd.prog.mk>

beforedepend ${OBJS}: machine
@


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

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


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


1.8.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.7
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@d6 1
a6 1
NOMAN=
@


1.6
log
@Nuke old gensetdefs based linker sets with extreme prejudice
@
text
@d2 1
a2 1
# $FreeBSD: src/sys/boot/arc/loader/Makefile,v 1.5 2000/08/04 08:30:00 obrien Exp $
d17 1
a17 1
CFLAGS+=	-mno-fp-regs
@


1.5
log
@Fix this so it is a Makefile and not a shell script -- now issuing `make'
a second time does not rebuild the binary.
@
text
@d2 1
a2 1
# $FreeBSD: src/sys/boot/arc/loader/Makefile,v 1.4 1999/12/16 17:24:59 marcel Exp $
d45 1
a45 1
${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBARC} ${CRT} vers.o setdef0.o setdef1.o
d47 1
a47 1
	${CRT} setdef0.o ${OBJS} setdef1.o vers.o -L${DESTDIR}${LIBDIR} \
a65 4
setdef0.o: setdefs.h

setdef1.o: setdefs.h

a69 5

.ORDER: setdefs.h setdef0.c setdef1.c
setdefs.h setdef0.c setdef1.c: ${OBJS}
	@@echo Generating linker sets
	@@gensetdefs ${OBJS}
@


1.4
log
@Don't build gensetdefs when we can use /usr/bin/gensetdefs. The latter
also creates setdef{0|1}.c so there's no need to have those in the
repository. Using /usr/bin/gensetdefs has no consequences for the
output.
@
text
@d2 1
a2 1
# $FreeBSD: src/sys/boot/arc/loader/Makefile,v 1.3 1999/11/14 13:54:41 marcel Exp $
d23 1
a23 1
		vers.c vers.o ${BASE} ${BASE}.exe ${BASE}.sym ${BASE}.list
d42 1
a42 1
${BASE}.exe: ${BASE} ${BASE}.help
d45 1
a45 1
${BASE}: ${OBJS} ${LIBSTAND} ${LIBARC} ${CRT} vers.o setdef0.o setdef1.o
@


1.4.2.1
log
@MFC: rev 1.5 (fix rules so `make' can do its job properly)
@
text
@d2 1
a2 1
# $FreeBSD$
d23 1
a23 1
		vers.c vers.o ${BASE}.exe ${BASE}.sym ${BASE}.list
d42 1
a42 1
${BASE}.exe: ${BASE}.sym ${BASE}.help
d45 1
a45 1
${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBARC} ${CRT} vers.o setdef0.o setdef1.o
@


1.4.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/sys/boot/arc/loader/Makefile 64231 2000-08-04 08:31:08Z obrien $
@


1.3
log
@${MACHINE} -> ${MACHINE_ARCH}

All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
@
text
@d2 1
a2 1
# $FreeBSD$
d22 4
a25 3
CLEANFILES+=	vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
		setdefs.h start.o
CLEANFILES+=	${BASE} ${BASE}.sym ${BASE}.list
a44 5
#${BASE}: ${OBJS} ${LIBSTAND} ${LIBARC} ${CRT} vers.o setdef0.o setdef1.o
#	${LD} -o ${BASE}.sym -M -e __start -N -Ttext ${LOAD_ADDRESS} \
#	${CRT} setdef0.o ${OBJS} setdef1.o \
#	vers.o ${LIBSTAND} ${LIBARC} ${LIBSTAND} >${.OBJDIR}/${BASE}.list

d47 2
a48 2
	${CRT} setdef0.o ${OBJS} setdef1.o \
	vers.o ${LIBSTAND} ${LIBARC} ${LIBSTAND} >${.OBJDIR}/${BASE}.list
a72 2
CLEANFILES+=	machine setdefs.h gensetdefs ${BASE} ${BASE}.exe loader.help

d75 2
a76 1
setdefs.h: gensetdefs ${OBJS}
d78 1
a78 7
	@@./gensetdefs ${OBJS} >setdefs.h

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

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


1.2
log
@Fix install target (install loader.exe, not loader).
@
text
@d2 1
d67 1
a67 1
start.o:	${.CURDIR}/../lib/arch/${MACHINE}/start.S
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
PROG= 		${BASE}
d34 1
a34 1
all: ${BASE}.exe
@


1.1.1.1
log
@The ARC BIOS / AlphaBIOS specific primary boot loader. This code is the
result of a joined effort with parts contributed by Doug Rabson, Warner
Losh and Stefan Esser (hope I did not forget anybody). Part of the sources
is obtained from NetBSD with modifications.

This code is work in progress:

As of the time of the initial import, a loader.exe executable is built,
which can be loaded on an Alpha with NT only firmware, but no attempt is
made to switch to OSF PAL code as required to start an actual kernel.
@
text
@@
