diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-16 22:55:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-16 22:55:50 +0000 |
commit | 0a6f92d842fa03f441e0bf5847d0f6a049adce1c (patch) | |
tree | 8257f57d87016a3fb9a7d3b0862a4ee02bb60b8e /distrib | |
parent | 372bdd10502454ce1e1c461bf0a99d6fafb99f4c (diff) |
Create bsd.bin, which can be loaded directly using the U-Boot firmware.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/socppc/ramdisk/Makefile | 12 |
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> |