From 72a33f355e17b157029e99d95819f368e6396f63 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 26 Apr 2002 18:57:11 +0000 Subject: [PATCH] build release bsd.scsi3 from regular bsd file, by using config -e to clone sd0 out of sd*. my idea, initial hack by miod, my makefile hackery --- src/etc/etc.sparc/Makefile.inc | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/etc/etc.sparc/Makefile.inc b/src/etc/etc.sparc/Makefile.inc index 41b56c09..2e204646 100644 --- a/src/etc/etc.sparc/Makefile.inc +++ b/src/etc/etc.sparc/Makefile.inc @@ -1,22 +1,19 @@ -# $OpenBSD: Makefile.inc,v 1.9 1998/09/23 07:27:06 todd Exp $ +# $OpenBSD: Makefile.inc,v 1.10 2002/04/26 18:57:11 deraadt Exp $ # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets .ifdef DESTDIR -snap_md: bsd bsd.scsi3 bootblocks distrib - cp ${.CURDIR}/../sys/arch/sparc/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd - cp ${.CURDIR}/../sys/arch/sparc/compile/GENERIC_SCSI3/bsd \ - ${DESTDIR}/snapshot/bsd.scsi3 +snap_md: bsd bootblocks distrib bsd: cd ${.CURDIR}/../sys/arch/sparc/conf && config GENERIC cd ${.CURDIR}/../sys/arch/sparc/compile/GENERIC && \ make clean && make depend && make - -bsd.scsi3: - cd ${.CURDIR}/../sys/arch/sparc/conf && config GENERIC_SCSI3 - cd ${.CURDIR}/../sys/arch/sparc/compile/GENERIC_SCSI3 && \ - make clean && make depend && make + cp ${.CURDIR}/../sys/arch/sparc/compile/GENERIC/bsd \ + ${DESTDIR}/snapshot/bsd + s=`printf "find sd\nexit" | config -e ${DESTDIR}/snapshot/bsd | \ + grep "ukc> " | awk '{print $$2}'`; \ + printf "add sd0\n%s\n%s\nchange %s\ny\n3\n\n\nquit\n" $$s $$s $$s | \ + config -e -o ${DESTDIR}/snapshot/bsd.scsi3 ${DESTDIR}/snapshot/bsd bootblocks: cp ${DESTDIR}/usr/mdec/*boot* ${DESTDIR}/snapshot