summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-06 04:33:53 +0000
committerpeter <peter@FreeBSD.org>2002-04-06 04:33:53 +0000
commitcddc57f17164cdadac4b4c9bdf0c624b05d96bf2 (patch)
tree905a1a6e6ef20215539f33df45ec8d6aa56ef73c
parent8eb1fab9daacb4dfd928651273bee3b45bb04755 (diff)
downloadFreeBSD-src-cddc57f17164cdadac4b4c9bdf0c624b05d96bf2.zip
FreeBSD-src-cddc57f17164cdadac4b4c9bdf0c624b05d96bf2.tar.gz
Make it a bit closer to the EFI build and tie up some loose ends.
-rw-r--r--sys/boot/ia64/Makefile.inc4
-rw-r--r--sys/boot/ia64/libski/Makefile1
-rw-r--r--sys/boot/ia64/ski/Makefile16
-rw-r--r--sys/boot/ia64/skiload/Makefile16
4 files changed, 12 insertions, 25 deletions
diff --git a/sys/boot/ia64/Makefile.inc b/sys/boot/ia64/Makefile.inc
new file mode 100644
index 0000000..81a6d5a
--- /dev/null
+++ b/sys/boot/ia64/Makefile.inc
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+# Options used when building standalone components
+CFLAGS+= -ffreestanding
diff --git a/sys/boot/ia64/libski/Makefile b/sys/boot/ia64/libski/Makefile
index 7b20910..30bb7e5 100644
--- a/sys/boot/ia64/libski/Makefile
+++ b/sys/boot/ia64/libski/Makefile
@@ -15,7 +15,6 @@ CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
CFLAGS+= -I${.CURDIR}/../../efi/include
CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH}
-CFLAGS+= -ffreestanding
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
diff --git a/sys/boot/ia64/ski/Makefile b/sys/boot/ia64/ski/Makefile
index 71a2263..d340c2e 100644
--- a/sys/boot/ia64/ski/Makefile
+++ b/sys/boot/ia64/ski/Makefile
@@ -24,13 +24,10 @@ LIBFICL=
.endif
# where to get libstand from
-#XXX need a better way to do this
-LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
-.if !exists(${LIBSTAND})
+.if exists(${.OBJDIR}/../../../../lib/libstand/libstand.a)
LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a
-.if !exists(${LIBSTAND})
-LIBSTAND= -lstand
-.endif
+.else
+LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
.endif
.if exists(${.OBJDIR}/../libski/libski.a)
@@ -50,7 +47,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../.. -I.
CFLAGS+= -I${.CURDIR}/../libski
CFLAGS+= -DLOADER
-CFLAGS+= -ffreestanding
LDFLAGS= -nostdlib -T ${.CURDIR}/ldscript.ia64
@@ -74,14 +70,10 @@ beforeinstall:
${.OBJDIR}/${PROG}.help ${DESTDIR}/boot
.endif
-# Other fragments still to be brought in from ../Makfile.booters?
-start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S
- ${CC} -c ${CFLAGS} ${.IMPSRC}
-
machine:
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
-${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o
+${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} ${LIBSTAND} vers.o
${LD} ${LDFLAGS} -o ${PROG} -M \
${OBJS} vers.o \
${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \
diff --git a/sys/boot/ia64/skiload/Makefile b/sys/boot/ia64/skiload/Makefile
index 71a2263..d340c2e 100644
--- a/sys/boot/ia64/skiload/Makefile
+++ b/sys/boot/ia64/skiload/Makefile
@@ -24,13 +24,10 @@ LIBFICL=
.endif
# where to get libstand from
-#XXX need a better way to do this
-LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
-.if !exists(${LIBSTAND})
+.if exists(${.OBJDIR}/../../../../lib/libstand/libstand.a)
LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a
-.if !exists(${LIBSTAND})
-LIBSTAND= -lstand
-.endif
+.else
+LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
.endif
.if exists(${.OBJDIR}/../libski/libski.a)
@@ -50,7 +47,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../.. -I.
CFLAGS+= -I${.CURDIR}/../libski
CFLAGS+= -DLOADER
-CFLAGS+= -ffreestanding
LDFLAGS= -nostdlib -T ${.CURDIR}/ldscript.ia64
@@ -74,14 +70,10 @@ beforeinstall:
${.OBJDIR}/${PROG}.help ${DESTDIR}/boot
.endif
-# Other fragments still to be brought in from ../Makfile.booters?
-start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S
- ${CC} -c ${CFLAGS} ${.IMPSRC}
-
machine:
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
-${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o
+${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} ${LIBSTAND} vers.o
${LD} ${LDFLAGS} -o ${PROG} -M \
${OBJS} vers.o \
${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \
OpenPOWER on IntegriCloud