summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-04-27 12:36:30 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-04-27 12:36:30 +0000
commit47d7f4607cfaa400376a9d83dcd8f4dc1fe58c71 (patch)
treed708559bd50e6e39c3aa6378c0951cf88a9de42e /sys/arch
parent45326cbdbc3b6976a078d865d88040938bfa7e56 (diff)
Fixes to xcoff bootloader to allow it to execute and load kernels for OpenBSD.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/stand/boot.mac/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/arch/powerpc/stand/boot.mac/Makefile b/sys/arch/powerpc/stand/boot.mac/Makefile
index 07b7f041de6..59533e28a9b 100644
--- a/sys/arch/powerpc/stand/boot.mac/Makefile
+++ b/sys/arch/powerpc/stand/boot.mac/Makefile
@@ -1,22 +1,22 @@
-# $OpenBSD: Makefile,v 1.5 1999/11/09 06:30:15 rahnds Exp $
+# $OpenBSD: Makefile,v 1.6 2000/04/27 12:36:29 rahnds Exp $
# $NetBSD: Makefile,v 1.1 1996/09/30 16:35:05 ws Exp $
R= ..
.PATH: $(.CURDIR)/$(R)
-RELOC= 20000
+RELOC= 6c0000
ENTRY= _entry
-LOADADDR= 20000
PROG= boot.mac
SRCS= Locore.c boot.c ofdev.c net.c netif_of.c alloc.c
-CFLAGS+= -DDEBUG -DNETIF_DEBUG
-CFLAGS+= -DEXEC_ELF -DXCOFF_GLUE -DMAC
+CFLAGS+= -DDEBUG -DNETIF_DEBUG
+CFLAGS+= -DXCOFF_GLUE
NOMAN=
INSTALL_STRIP=
-MAKEELF= makeelf
BINDIR= /usr/mdec
OBJCOPY?= objcopy
OBJCOPY_ARGS= -O aixcoff-rs6000 -R .stab -R .stabstr -R .comment
-LDFLAGS= -X -Ttext $(RELOC) -e $(ENTRY) -T ${.CURDIR}/ld.script
+LDFLAGS= -X -Ttext ${RELOC} -e $(ENTRY) -T ${.CURDIR}/ld.script
+CPPFLAGS+= -DPOWERPC_BOOT_ELF
+
LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep
CLEANFILES= hack-coff
@@ -25,7 +25,6 @@ $(PROG): $(OBJS) $(LIBS) hack-coff
$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o ${.TARGET}
${OBJCOPY} ${OBJCOPY_ARGS} ${.TARGET}
${.OBJDIR}/hack-coff ${.TARGET}
-# ${MAKEELF} $(REAL_VIRT) a.out $(.TARGET)
hack-coff: hack-coff.c
${HOSTCC} -I${.CURDIR} -o hack-coff ${.CURDIR}/hack-coff.c