summaryrefslogtreecommitdiff
path: root/distrib/socppc/ramdisk
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-16 22:55:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-16 22:55:50 +0000
commit0a6f92d842fa03f441e0bf5847d0f6a049adce1c (patch)
tree8257f57d87016a3fb9a7d3b0862a4ee02bb60b8e /distrib/socppc/ramdisk
parent372bdd10502454ce1e1c461bf0a99d6fafb99f4c (diff)
Create bsd.bin, which can be loaded directly using the U-Boot firmware.
Diffstat (limited to 'distrib/socppc/ramdisk')
-rw-r--r--distrib/socppc/ramdisk/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/distrib/socppc/ramdisk/Makefile b/distrib/socppc/ramdisk/Makefile
index 72c34047618..ba2b9c71c6c 100644
--- a/distrib/socppc/ramdisk/Makefile
+++ b/distrib/socppc/ramdisk/Makefile
@@ -1,10 +1,11 @@
-# $OpenBSD: Makefile,v 1.2 2008/05/15 22:10:46 kettenis Exp $
+# $OpenBSD: Makefile,v 1.3 2008/05/16 22:55:49 kettenis Exp $
REV= ${OSrev}
TOP= ${.CURDIR}/..
BSD_RD= bsd.rd
+BSD_BIN= bsd.bin
IMAGE= mr.fs
CBIN?= instbin
CRUNCHCONF?= ${CBIN}.conf
@@ -33,12 +34,15 @@ all ${IMAGE}:
.else
# mix config is not needed.
-all: ${BSD_RD}
+all: ${BSD_RD} ${BSD_BIN}
${BSD_RD}: ${CBIN} ${IMAGE} bsd rdsetroot
cp bsd ${BSD_RD}
${.OBJDIR}/rdsetroot ${BSD_RD} < ${IMAGE}
+${BSD_BIN}: ${BSD_RD}
+ objcopy -O binary ${BSD_RD} ${BSD_BIN}
+
${IMAGE}: rd_setup do_files rd_teardown
.endif
@@ -72,7 +76,7 @@ unconfig:
.PRECIOUS: ${IMAGE}
install:
- cp ${BSD_RD} ${DESTDIR}/snapshot/
+ cp ${BSD_RD} ${BSD_BIN} ${DESTDIR}/snapshot/
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@@ -97,7 +101,7 @@ clean cleandir:
rm -rf cd-dir
beforeinstall:
- cp ${BSD.RD} ${DESTDIR}/snapshot
+ cp ${BSD.RD} ${BSD_BIN} ${DESTDIR}/snapshot
.include <bsd.obj.mk>
.include <bsd.subdir.mk>