head	1.15;
access;
symbols
	RELENG_5_5_0_RELEASE:1.14
	RELENG_5_5:1.14.0.8
	RELENG_5_5_BP:1.14
	RELENG_5_4_0_RELEASE:1.14
	RELENG_5_4:1.14.0.6
	RELENG_5_4_BP:1.14
	RELENG_5_3_0_RELEASE:1.14
	RELENG_5_3:1.14.0.4
	RELENG_5_3_BP:1.14
	RELENG_5:1.14.0.2
	RELENG_5_BP:1.14
	RELENG_5_2_1_RELEASE:1.12
	RELENG_5_2_0_RELEASE:1.12
	RELENG_5_2:1.12.0.2
	RELENG_5_2_BP:1.12
	RELENG_5_1_0_RELEASE:1.10
	RELENG_5_1:1.10.0.2
	RELENG_5_1_BP:1.10
	RELENG_5_0_0_RELEASE:1.9
	RELENG_5_0:1.9.0.2
	RELENG_5_0_BP:1.9
	KSE_MILESTONE_2:1.1;
locks; strict;
comment	@# @;


1.15
date	2004.09.24.04.49.32;	author marcel;	state dead;
branches;
next	1.14;

1.14
date	2004.02.13.04.45.41;	author marcel;	state Exp;
branches;
next	1.13;

1.13
date	2004.02.12.08.10.34;	author ru;	state Exp;
branches;
next	1.12;

1.12
date	2003.11.09.06.53.37;	author marcel;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.17.01.49.59;	author marcel;	state Exp;
branches;
next	1.10;

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

1.9
date	2002.05.10.09.26.32;	author obrien;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.07.04.26.42;	author peter;	state Exp;
branches;
next	1.7;

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

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

1.5
date	2002.03.29.22.53.56;	author marcel;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.28.06.52.10;	author marcel;	state Exp;
branches;
next	1.3;

1.3
date	2002.03.19.10.51.57;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	2001.09.26.00.13.08;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.12.08.34.27;	author dfr;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Remove. This file was repocopied to ../ski.
@
text
@# $FreeBSD: src/sys/boot/ia64/skiload/Makefile,v 1.14 2004/02/13 04:45:41 marcel Exp $

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

PROG= 		skiload
NOMAN=
NEWVERSWHAT=	"ia64 SKI boot" ${MACHINE_ARCH}
BINDIR?=	/boot
STRIP=		# We must not strip skiload at install time.

SRCS=		conf.c main.c start.S vers.c

.if !defined(NOFORTH)
# Enable BootForth
BOOT_FORTH=	yes
CFLAGS+=	-DBOOT_FORTH
CFLAGS+=	-I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
LIBFICL=	${.OBJDIR}/../../ficl/libficl.a
.endif

LIBSKI=		${.OBJDIR}/../libski/libski.a

# Always add MI sources 
.PATH: ${.CURDIR}/../../common
.include "${.CURDIR}/../../common/Makefile.inc"

CFLAGS+= -I${.CURDIR}/../../common
CFLAGS+= -I${.CURDIR}/../libski
CFLAGS+= -DLOADER

LDFLAGS=	-Wl,-T${.CURDIR}/ldscript.ia64

CLEANFILES=	vers.c ${PROG}.help

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

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

FILES=	${PROG}.help

DPADD=	${LIBFICL} ${LIBSKI} ${LIBSTAND}
LDADD=	${LIBFICL} ${LIBSKI} -lstand

.include <bsd.prog.mk>
@


1.14
log
@Don't create a mapfile during link. It's not needed for the build.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.13
log
@Tidy up makefiles.

Tested by:	marcel
@
text
@d31 1
a31 1
LDFLAGS=	-Wl,-T${.CURDIR}/ldscript.ia64 -Wl,-M,-Map,${PROG}.list
d33 1
a33 1
CLEANFILES=	vers.c ${PROG}.list ${PROG}.help
@


1.12
log
@Do not strip skiload when installed. The stripped binary does not load
in the simulator.
@
text
@d11 1
a11 3
SRCS+=		conf.c main.c start.S

CFLAGS+=	-ffreestanding
a17 1
.if exists(${.OBJDIR}/../../ficl/libficl.a)
a18 3
.else
LIBFICL=	${.CURDIR}/../../ficl/libficl.a
.endif
a20 8
# where to get libstand from
.if exists(${.OBJDIR}/../../../../lib/libstand/libstand.a)
LIBSTAND=       ${.OBJDIR}/../../../../lib/libstand/libstand.a
.else
LIBSTAND=       ${.CURDIR}/../../../../lib/libstand/libstand.a
.endif

.if exists(${.OBJDIR}/../libski/libski.a)
a21 3
.else
LIBSKI=		${.CURDIR}/../libski/libski.a
.endif
d25 1
a25 1
.include <${.CURDIR}/../../common/Makefile.inc>
d27 1
a27 5
CFLAGS+= -I-
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../.. -I.
d31 1
a31 1
LDFLAGS=	-nostdlib -T ${.CURDIR}/ldscript.ia64
d33 1
a33 3
CLEANFILES+=	vers.c vers.o ${PROG}.list
CLEANFILES+=	loader.help
CLEANFILES+=	machine
d35 1
a35 3
all: ${PROG}

vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
a36 1
	${CC} -c vers.c
d38 1
a38 1
${PROG}.help:	help.common help.efi
d42 1
a42 8
beforeinstall:
.if exists(${.OBJDIR}/${PROG}.help)
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.OBJDIR}/${PROG}.help ${DESTDIR}/boot
.endif

machine:
	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
d44 2
a45 5
${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} ${LIBSTAND} vers.o
	${LD} ${LDFLAGS} -o ${PROG} -M \
	    ${OBJS} vers.o \
	    ${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \
	    > ${.OBJDIR}/${PROG}.list
a47 2

beforedepend ${OBJS}: machine
@


1.11
log
@Fix the ski loader, broken by the gcc upgrade. Update the linker
script to match the one for the EFI loader and rewrite __start()
in assembly to have gp defined without getting in the way of the
compiler.
@
text
@d9 1
@


1.10
log
@Consistently use NOFORTH to control the usage of ficl.
@
text
@d10 1
a10 1
SRCS+=		main.c conf.c
@


1.9
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@d12 3
a16 4
CFLAGS+=	-ffreestanding
CFLAGS+=	-g
CFLAGS+=	-I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/ia64
.if BOOT_FORTH
d18 1
a23 2
.else
LIBFICL=
@


1.8
log
@Set BINDIR
@
text
@d14 1
@


1.7
log
@Make it a bit closer to the EFI build and tie up some loose ends.
@
text
@d8 1
@


1.6
log
@Do not add the ficl/alpha subdir to the ia64 include path.  Try ficl/ia64
instead.
@
text
@d27 3
a29 1
#XXX need a better way to do this
a30 5
.if !exists(${LIBSTAND})
LIBSTAND=       ${.OBJDIR}/../../../../lib/libstand/libstand.a
.if !exists(${LIBSTAND})
LIBSTAND=       -lstand
.endif
a49 1
CFLAGS+= -ffreestanding
a72 4
# Other fragments still to be brought in from ../Makfile.booters?
start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S
	${CC} -c ${CFLAGS} ${.IMPSRC}

d76 1
a76 1
${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o
@


1.5
log
@Fix the beforeinstall target. We install ${PROG}.help if loader.help
exists, otherwise we install it anyway. I interpret this as a very
high desire to install ${PROG}.help. Alas, ${PROG}.help doesn't exist
at the moment and neither does loader.help, so in practice this just
doesn't work, no matter how you interpret it. The compromise is to
install ${PROG}.help IFF it exists. I realize we lost creativity with
this commit, but style should have been preserved, AFAICT :-)
@
text
@d14 1
a14 1
CFLAGS+=	-I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/alpha
@


1.4
log
@Duplicate the logic used elsewhere to define LIBSTAND.
@
text
@d72 1
a72 1
.if exists(${.OBJDIR}/loader.help)
a74 3
.else
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.CURDIR}/${PROG}.help ${DESTDIR}/boot
@


1.3
log
@Add -ffreestanding to avoid printf/puts/putchar conversions
@
text
@d26 10
a35 1
LIBSTAND=	-lstand
d87 1
a87 1
${PROG}: ${OBJS} ${LIBFICL} ${LIBSTAND} ${LIBSKI} vers.o
@


1.2
log
@Make this 'make obj' safe
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/ia64/skiload/Makefile,v 1.1 2001/09/12 08:34:27 dfr Exp $
d44 1
@


1.1
log
@Add a version of the loader which runs under SKI, the HP ia64 simulator.
This loader is quite functional and can load and run kernels. The kernels
don't quite work right after loading but that should be easily fixable.
@
text
@d1 1
a1 1
# $FreeBSD$
d27 3
d31 1
d45 1
a45 1
LDFLAGS=	-nostdlib -T ldscript.ia64
@

