summaryrefslogtreecommitdiff
path: root/distrib/armish
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-17 03:58:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-17 03:58:56 +0000
commite886d2ed5f458a1c669b7e01332cb294ae4cbdeb (patch)
treec2b4570421724d0f1f9b22228287ea4c64f5cb11 /distrib/armish
parentf4409ec46343690f2d8488e54a5731d75ae3a918 (diff)
For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid of DESTDIR/snapshot too, and simply install straight into RELEASEDIR. (This also ends up saving an astounding amount of traffic/latency in a nfs environment)
Diffstat (limited to 'distrib/armish')
-rw-r--r--distrib/armish/ramdisk/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/distrib/armish/ramdisk/Makefile b/distrib/armish/ramdisk/Makefile
index 777996ea6bb..6e7bf44d1ab 100644
--- a/distrib/armish/ramdisk/Makefile
+++ b/distrib/armish/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2008/12/02 03:20:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.7 2009/04/17 03:58:54 deraadt Exp $
REV= ${OSrev}
@@ -79,9 +79,6 @@ unconfig:
.PRECIOUS: ${IMAGE}
-install:
- cp ${BSD_RD} ${DESTDIR}/snapshot/
-
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@@ -95,7 +92,7 @@ do_files:
cat ${MTREE} | mtree -de -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
REV=${REV} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \
- sh ${TOP}/../miniroot/runlist.sh ${LISTS}
+ RELEASEDIR=${RELEASEDIR} sh ${UTILS}/runlist.sh ${LISTS}
rm ${MOUNT_POINT}/${CBIN}
clean cleandir:
@@ -104,8 +101,10 @@ clean cleandir:
rm -f instbin.conf
rm -rf cd-dir
-beforeinstall:
- cp ${BSD.RD} ${DESTDIR}/snapshot
+.ifdef RELEASEDIR
+install:
+ cp ${BSD_RD} ${RELEASEDIR}
+.endif
.include <bsd.obj.mk>
.include <bsd.subdir.mk>