summaryrefslogtreecommitdiff
path: root/distrib/sgi/ramdisk
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-05-25 17:32:39 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-05-25 17:32:39 +0000
commit8185b8edeaaec204637da013b2fd6fb3a891df55 (patch)
tree355eadb624ef39e9dfaa6fd333de69859bbdc8da /distrib/sgi/ramdisk
parent058567e2df5e9e80d9ee2c847df71989405848b7 (diff)
Hook sgi IP28 kernels into the build. While there, update the iso images to
provide IP22 and IP28 kernels, as well as the ECOFF bootblock. No objection from deraadt@
Diffstat (limited to 'distrib/sgi/ramdisk')
-rw-r--r--distrib/sgi/ramdisk/Makefile76
-rw-r--r--distrib/sgi/ramdisk/list5
2 files changed, 25 insertions, 56 deletions
diff --git a/distrib/sgi/ramdisk/Makefile b/distrib/sgi/ramdisk/Makefile
index 545f5d5f453..fe6614257b6 100644
--- a/distrib/sgi/ramdisk/Makefile
+++ b/distrib/sgi/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.17 2012/03/29 20:27:53 miod Exp $
+# $OpenBSD: Makefile,v 1.18 2012/05/25 17:32:38 miod Exp $
REV= ${OSrev}
@@ -33,59 +33,32 @@ all ${IMAGE}:
@false
.else
-all: ${BSD_RD}.IP22 ${BSD_RD}.IP27 ${BSD_RD}.IP30 ${BSD_RD}.IP32
-
-${BSD_RD}.IP22: ${CBIN} ${IMAGE} bsd.IP22 rdsetroot
- cp bsd.IP22 ${BSD_RD}.IP22
- ${.OBJDIR}/rdsetroot ${BSD_RD}.IP22 ${IMAGE}
-
-${BSD_RD}.IP27: ${CBIN} ${IMAGE} bsd.IP27 rdsetroot
- cp bsd.IP27 ${BSD_RD}.IP27
- ${.OBJDIR}/rdsetroot ${BSD_RD}.IP27 ${IMAGE}
-
-${BSD_RD}.IP30: ${CBIN} ${IMAGE} bsd.IP30 rdsetroot
- cp bsd.IP30 ${BSD_RD}.IP30
- ${.OBJDIR}/rdsetroot ${BSD_RD}.IP30 ${IMAGE}
-
-${BSD_RD}.IP32: ${CBIN} ${IMAGE} bsd.IP32 rdsetroot
- cp bsd.IP32 ${BSD_RD}.IP32
- ${.OBJDIR}/rdsetroot ${BSD_RD}.IP32 ${IMAGE}
-
-${IMAGE}: rd_setup do_files rd_teardown
-
-.endif
-
-bsd.IP22:
+ALLIP= 22 27 28 30 32
+ALLBSD=
+ALLBSDRD=
+.for IP in ${ALLIP}
+ALLBSD+= bsd.IP${IP}
+ALLBSDRD+= ${BSD_RD}.IP${IP}
+all: ${ALLBSDRD}
+.endfor
+
+.for IP in ${ALLIP}
+bsd.IP${IP}:
.ifndef NOBUILD
- cd ${.TOP}/../../sys/arch/sgi/conf && config RAMDISK-IP22
- cd ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP22 && \
+ cd ${.TOP}/../../sys/arch/sgi/conf && config RAMDISK-IP${IP}
+ cd ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP${IP} && \
${MAKE} clean && exec ${MAKE}
.endif
- cp ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP22/bsd bsd.IP22
+ cp ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP${IP}/bsd bsd.IP${IP}
-bsd.IP27:
-.ifndef NOBUILD
- cd ${.TOP}/../../sys/arch/sgi/conf && config RAMDISK-IP27
- cd ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP27 && \
- ${MAKE} clean && exec ${MAKE}
-.endif
- cp ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP27/bsd bsd.IP27
+${BSD_RD}.IP${IP}: ${CBIN} ${IMAGE} bsd.IP${IP} rdsetroot
+ cp bsd.IP${IP} ${BSD_RD}.IP${IP}
+ ${.OBJDIR}/rdsetroot ${BSD_RD}.IP${IP} ${IMAGE}
+.endfor
-bsd.IP30:
-.ifndef NOBUILD
- cd ${.TOP}/../../sys/arch/sgi/conf && config RAMDISK-IP30
- cd ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP30 && \
- ${MAKE} clean && ${MAKE}
-.endif
- cp ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP30/bsd bsd.IP30
+${IMAGE}: rd_setup do_files rd_teardown
-bsd.IP32:
-.ifndef NOBUILD
- cd ${.TOP}/../../sys/arch/sgi/conf && config RAMDISK-IP32
- cd ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP32 && \
- ${MAKE} clean && ${MAKE}
.endif
- cp ${.TOP}/../../sys/arch/sgi/compile/RAMDISK-IP32/bsd bsd.IP32
rd_setup:
dd if=/dev/zero of=${IMAGE} bs=512 count=${NBLKS}
@@ -129,16 +102,11 @@ do_files:
clean cleandir:
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
- bsd.IP22 ${BSD_RD}.IP22 \
- bsd.IP27 ${BSD_RD}.IP27 \
- bsd.IP30 ${BSD_RD}.IP30 \
- bsd.IP32 ${BSD_RD}.IP32 \
- *.o *.lo *.c rdsetroot
+ ${ALLBSD} ${ALLBSDRD} *.o *.lo *.c rdsetroot
.ifdef RELEASEDIR
install:
- cp ${BSD_RD}.IP22 ${BSD_RD}.IP27 ${BSD_RD}.IP30 ${BSD_RD}.IP32 \
- ${RELEASEDIR}
+ cp ${ALLBSDRD} ${RELEASEDIR}
.endif
.include <bsd.obj.mk>
diff --git a/distrib/sgi/ramdisk/list b/distrib/sgi/ramdisk/list
index fb1a4c8121e..444b894ede1 100644
--- a/distrib/sgi/ramdisk/list
+++ b/distrib/sgi/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.31 2012/03/29 20:27:53 miod Exp $
+# $OpenBSD: list,v 1.32 2012/05/25 17:32:38 miod Exp $
SRCDIRS distrib/special
SRCDIRS bin sbin usr.bin usr.sbin
@@ -65,6 +65,7 @@ COPY ${DESTDIR}/usr/mdec/boot32 usr/mdec/boot32
SYMLINK /usr/mdec/boot32 usr/mdec/boot-IP32
COPY ${DESTDIR}/usr/mdec/boot64 usr/mdec/boot64
SYMLINK /usr/mdec/boot64 usr/mdec/boot-IP27
+SYMLINK /usr/mdec/boot64 usr/mdec/boot-IP28
SYMLINK /usr/mdec/boot64 usr/mdec/boot-IP30
COPY ${DESTDIR}/usr/mdec/bootecoff usr/mdec/bootecoff
SYMLINK /usr/mdec/bootecoff usr/mdec/boot-IP22
@@ -101,5 +102,5 @@ SCRIPT ${CURDIR}/../../miniroot/install.sh install
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SPECIAL chmod 755 install upgrade sbin/dhclient-script
-HASH var/hash bsd.IP22 bsd.IP27 bsd.IP30 bsd.mp.IP30 bsd.IP32
+HASH var/hash bsd.IP22 bsd.IP27 bsd.IP28 bsd.IP30 bsd.mp.IP30 bsd.IP32
TZ