summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1998-03-22 18:39:42 +0000
committerjhay <jhay@FreeBSD.org>1998-03-22 18:39:42 +0000
commit4b4f1b5abdee7b870b666c9dff4474f767cd8022 (patch)
treeb0c12d7a02970cc8416ca78f3d75fee12000cac4 /release
parenta4f109814ddb7a1e53f54f0d8868d0de04ec2416 (diff)
downloadFreeBSD-src-4b4f1b5abdee7b870b666c9dff4474f767cd8022.zip
FreeBSD-src-4b4f1b5abdee7b870b666c9dff4474f767cd8022.tar.gz
Make the vn device that is being used to build the floppies configurable.
You can now do something like "make release VNDEVICE=vn1". This makes it possible to do something else with vn0, for instance building another release.
Diffstat (limited to 'release')
-rw-r--r--release/Makefile11
-rw-r--r--release/doFS.sh4
-rw-r--r--release/scripts/doFS.sh4
3 files changed, 13 insertions, 6 deletions
diff --git a/release/Makefile b/release/Makefile
index 5e46c43..5057583 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.344 1998/03/06 23:03:49 jkh Exp $
+# $Id: Makefile,v 1.345 1998/03/10 17:29:44 jkh Exp $
#
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
@@ -64,6 +64,8 @@ MFSINODE= 7000
FIXITINODE= 2000
BOOTINODE= 100000
+VNDEVICE?= vn0
+
# Things which may get you into trouble if you change them
MTREEFILES= ${.CURDIR}/../etc/mtree
RD= /R/stage
@@ -177,6 +179,7 @@ rerelease release:
echo "export CFLAGS='-O2 -pipe'" >> ${CHROOTDIR}/mk
echo "export DISTRIBUTIONS=\"${DISTRIBUTIONS}\"" >> ${CHROOTDIR}/mk
echo "export BUILDNAME=${BUILDNAME}" >> ${CHROOTDIR}/mk
+ echo "export VNDEVICE=${VNDEVICE}" >> ${CHROOTDIR}/mk
.if defined(RELEASETAG)
echo "export RELEASETAG=${RELEASETAG}" >> ${CHROOTDIR}/mk
.endif
@@ -650,12 +653,12 @@ doMFSKERN:
.if defined(BOOT_CONFIG)
@echo "${BOOT_CONFIG}" >${RD}/boot.${FSIMAGE}/boot.config
.endif
- @vnconfig /dev/vn0 fs-image.${FSIMAGE}
+ @vnconfig /dev/${VNDEVICE} fs-image.${FSIMAGE}
@mkdir -p /tmp/mnt_xx
- @mount /dev/vn0 /tmp/mnt_xx
+ @mount /dev/${VNDEVICE} /tmp/mnt_xx
./dumpnlist ${RD}/boot.${FSIMAGE}/kernel > /tmp/mnt_xx/stand/symbols
@umount /tmp/mnt_xx
- @vnconfig -u /dev/vn0
+ @vnconfig -u /dev/${VNDEVICE}
@rmdir /tmp/mnt_xx
./write_mfs_in_kernel ${RD}/boot.${FSIMAGE}/kernel \
fs-image.${FSIMAGE}
diff --git a/release/doFS.sh b/release/doFS.sh
index 61195fd..43b93eb 100644
--- a/release/doFS.sh
+++ b/release/doFS.sh
@@ -1,7 +1,9 @@
:
#set -ex
-VNDEVICE=vn0
+if [ "x$VNDEVICE" = "x" ] ; then
+ VNDEVICE=vn0
+fi
export BLOCKSIZE=512
RD=$1 ; shift
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index 61195fd..43b93eb 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -1,7 +1,9 @@
:
#set -ex
-VNDEVICE=vn0
+if [ "x$VNDEVICE" = "x" ] ; then
+ VNDEVICE=vn0
+fi
export BLOCKSIZE=512
RD=$1 ; shift
OpenPOWER on IntegriCloud