head	1.13;
access;
symbols
	RELENG_5_5_0_RELEASE:1.12
	RELENG_5_5:1.12.0.8
	RELENG_5_5_BP:1.12
	RELENG_5_4_0_RELEASE:1.12
	RELENG_5_4:1.12.0.6
	RELENG_5_4_BP:1.12
	RELENG_5_3_0_RELEASE:1.12
	RELENG_5_3:1.12.0.4
	RELENG_5_3_BP:1.12
	RELENG_5:1.12.0.2
	RELENG_5_BP:1.12
	RELENG_5_2_1_RELEASE:1.10
	RELENG_5_2_0_RELEASE:1.10
	RELENG_5_2:1.10.0.2
	RELENG_5_2_BP:1.10
	RELENG_5_1_0_RELEASE:1.9
	RELENG_5_1:1.9.0.2
	RELENG_5_1_BP:1.9
	RELENG_5_0_0_RELEASE:1.8
	RELENG_5_0:1.8.0.2
	RELENG_5_0_BP:1.8
	KSE_MILESTONE_2:1.1;
locks; strict;
comment	@# @;


1.13
date	2004.09.24.04.48.09;	author marcel;	state dead;
branches;
next	1.12;

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

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

1.10
date	2003.07.02.11.47.33;	author ru;	state Exp;
branches;
next	1.9;

1.9
date	2003.02.01.22.50.08;	author marcel;	state Exp;
branches;
next	1.8;

1.8
date	2002.05.13.11.09.06;	author ru;	state Exp;
branches;
next	1.7;

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

1.6
date	2002.05.11.18.02.32;	author obrien;	state Exp;
branches;
next	1.5;

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

1.4
date	2002.04.06.04.33.53;	author peter;	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.15.09.53.55;	author dfr;	state Exp;
branches;
next	1.1;

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


desc
@@


1.13
log
@Remove. This file was repocopied to ../ski.
@
text
@# $FreeBSD: src/sys/boot/ia64/libski/Makefile,v 1.12 2004/02/13 04:43:41 marcel Exp $

LIB=		ski
INTERNALLIB=	true

SRCS=	skiconsole.c time.c copy.c devicename.c module.c exit.c
SRCS+=	delay.c skifs.c elf_freebsd.c bootinfo.c ssc.c
SRCS+=	acpi_stub.c efi_stub.c pal_stub.S sal_stub.c

CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand
CFLAGS+=	-I${.CURDIR}/../../efi/include
CFLAGS+=	-I${.CURDIR}/../../efi/include/${MACHINE_ARCH}

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../..

.if defined(BOOT_DISK_DEBUG)
# Make the disk code more talkative
CFLAGS+= -DDISK_DEBUG
.endif

.include <bsd.lib.mk>
@


1.12
log
@o  Don't build with -fpic. It's not needed and inconsistent with how
   other constributions are compiled.
o  Remove powerpc specific additions to CFLAGS.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.11
log
@Tidy up makefiles.

Tested by:	marcel
@
text
@a9 1
CFLAGS+=	-fpic
a15 4

.if ${MACHINE_ARCH} == "powerpc"
CFLAGS+=	-msoft-float
.endif
@


1.10
log
@pal_stub.s has been repo-copied to pal_stub.S.

Approved by:	marcel
Repocopied by:	joe
@
text
@d10 2
a11 4
CFLAGS+=	-ffreestanding -fpic -g
CFLAGS+=	-I${.CURDIR}/../include
CFLAGS+=	-I${.CURDIR}/../include/${MACHINE_ARCH}
CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
d16 1
a16 1
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
d22 1
a22 1
.ifdef(BOOT_DISK_DEBUG)
a26 5
machine:
	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine

CLEANFILES+=	machine

a27 2

beforedepend ${OBJS}: machine
@


1.9
log
@Remove special casing for running in the simulator from the kernel
and instead add platform, firmware and EFI stubs to the loader.
The net effect of this change is that besides a special console and
disk driver, the kernel has no knowledge of the simulator. This has
the following advantages:
o  Simulator support is much harder to break,
o  It's easier to make use of more feature complete simulators.
   This would only need a change in the simulator specific loader,
o  Running SMP kernels within the simulator. Note that ski at this
   time does not simulate IPIs, so there's no way to start APs.

The platform, firmware and EFI stubs describe the following hardware:
o  4 CPU Itanium,
o  128 MB RAM within the 4GB address space,
o  64 MB RAM above the 4GB address space.

NOTE: The stubs in the skiloader describe a machine that should in
parts be defined by the simulator. Things like processor interrupt
block and AP wakeup vector cannot be choosen at random because they
require interpretation by the simulator. Currently the simulator is
ignorant of this.

This change introduces an unofficial SSC call SSC_SAL_SET_VECTORS
which is ignored by the simulator.

Tested with: ski (version 0.943 for linux)
@
text
@d8 1
a8 1
SRCS+=	acpi_stub.c efi_stub.c pal_stub.s sal_stub.c
@


1.8
log
@Removed now unused INTERNALSTATICLIB.
INTERNALLIB now implies NOPIC and NOPROFILE.
Removed gratuitous NOMAN.
@
text
@d8 1
@


1.7
log
@Back out last commit.  I expect our bsd.*.mk gods to remove the need for
defining so many extra things in addition to INTERNALLIB.  We don't like
repetitive C code and we shouldn't for make code either.
@
text
@a3 2
NOPIC=		true
NOPROFILE=	true
a4 1
INTERNALSTATICLIB=	true
@


1.6
log
@NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when using
INTERNALLIB now.
@
text
@d4 2
d7 1
@


1.5
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@a3 2
NOPIC=		true
NOPROFILE=	true
a4 1
INTERNALSTATICLIB=	true
@


1.4
log
@Make it a bit closer to the EFI build and tie up some loose ends.
@
text
@d12 1
a12 1
CFLAGS+=	-fpic -g
@


1.3
log
@Add -ffreestanding to avoid printf/puts/putchar conversions
@
text
@a17 1
CFLAGS+=	-ffreestanding
@


1.2
log
@Fill in the bootinfo's memory map.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/ia64/libski/Makefile,v 1.1 2001/09/12 08:34:26 dfr Exp $
d18 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$
d16 2
@

