Browse Source

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
OPENBSD_3_2
deraadt 22 years ago
parent
commit
72a33f355e
1 changed files with 8 additions and 11 deletions
  1. +8
    -11
      src/etc/etc.sparc/Makefile.inc

+ 8
- 11
src/etc/etc.sparc/Makefile.inc View File

@ -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


Loading…
Cancel
Save