summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/stand/boot64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-05-14 18:57:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-05-14 18:57:44 +0000
commitb24bc96a46b94d88c0d988562ee681b83827df5c (patch)
treee7c78288659e6e3c5e5d3c85282e4e7f7ea16c97 /sys/arch/sgi/stand/boot64
parent410d6152bc3883e0e4df720eb78f599ce6531fce (diff)
In addition to the existing IP32 boot block, build a real 64 bit boot block
as a relocatable object, suitable for IP27/IP30/IP35. Boot blocks are now found is /usr/mdec/boot{32,64}, with boot-IP## being hard links to them for easy boot block pick.
Diffstat (limited to 'sys/arch/sgi/stand/boot64')
-rw-r--r--sys/arch/sgi/stand/boot64/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/arch/sgi/stand/boot64/Makefile b/sys/arch/sgi/stand/boot64/Makefile
new file mode 100644
index 00000000000..a1fe2430a8c
--- /dev/null
+++ b/sys/arch/sgi/stand/boot64/Makefile
@@ -0,0 +1,19 @@
+# $OpenBSD: Makefile,v 1.1 2009/05/14 18:57:43 miod Exp $
+
+LDFLAGS+= ${SALDFLAGS} -r --oformat=elf64-tradbigmips -e __start
+STRIP= strip
+INSTALL_STRIP=
+
+PROG= boot64
+.PATH: ${.CURDIR}/../boot
+.include "${.CURDIR}/../boot/Makefile"
+
+${PROG}: $(OBJS) $(LDADD)
+ $(LD) $(LDFLAGS) -o ${PROG} $(OBJS) -L${LIBSADIR} ${LIBSA} \
+ -L${LIBZDIR} ${LIBZ}
+ $(STRIP) --strip-unneeded ${PROG}
+
+LINKS= ${BINDIR}/${PROG} ${BINDIR}/boot-IP27
+LINKS+= ${BINDIR}/${PROG} ${BINDIR}/boot-IP30
+
+.include <bsd.prog.mk>