aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>2001-07-23 09:01:46 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>2001-07-23 09:01:46 +0000
commit2ef74d2289d8131a12adc35be452368f29ed5767 (patch)
tree6b3227869c1d39bba544faeabf9c4a8b3df62fff /release/Makefile
parent814c95264f48874b2d089485bbdb7365c5414cdf (diff)
downloadsrc-2ef74d2289d8131a12adc35be452368f29ed5767.tar.gz
src-2ef74d2289d8131a12adc35be452368f29ed5767.zip
Add scripts and Makefile support for building ISO images automatically
as part of the release if MAKE_ISOS is set. Will also build the first CD with packages (in addition to the "minimal" CD) if CD_EXTRA_BITS points to them. This probably need a bit more work to get fully useful, but it at least covers the basics for now.
Notes
Notes: svn path=/head/; revision=80183
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/release/Makefile b/release/Makefile
index 9c4f9cacdb2e..654a43217bdc 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -219,6 +219,9 @@ EXTRAS= ftp.1
.else
EXTRAS= cdrom.1 ftp.1
.endif
+.if defined(MAKE_ISOS)
+EXTRAS+= iso.1
+.endif
.if !defined(NODOC)
DOCREL= doc.1 doc.2
@@ -336,6 +339,9 @@ rerelease release:
.if defined(NOPORTS)
echo "export NOPORTS=${NOPORTS}" >> ${CHROOTDIR}/mk
.endif
+.if defined(MAKE_ISOS)
+ echo "export MAKE_ISOS=${MAKE_ISOS}" >> ${CHROOTDIR}/mk
+.endif
.if defined(DOMINIMALDOCPORTS)
echo "export DOMINIMALDOCPORTS=${DOMINIMALDOCPORTS}" >> ${CHROOTDIR}/mk
.endif
@@ -761,6 +767,9 @@ cdrom.1:
@ln -f ${CD_DISC2}/boot/cdboot ${CD_DISC1}/boot
@ln -f ${CD_DISC1}/boot/loader.rc ${CD_DISC2}/boot
@ln -f ${CD_DISC1}/kernel ${CD_DISC2}/kernel
+.elif ${MACHINE_ARCH} == "i386"
+ @mkdir -p ${CD_DISC2}/floppies
+ @cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies
.endif
.if !defined(NOPORTS)
@-rm -rf /usr/ports/distfiles/*
@@ -771,6 +780,20 @@ cdrom.1:
.endif
touch cdrom.1
+iso.1:
+ @if [ -x ${.CURDIR}/${MACHINE_ARCH}/mkisoimages.sh ]; then \
+ echo "Creating ISO images..."; \
+ ${.CURDIR}/${MACHINE_ARCH}/mkisoimages.sh -b fbsd_miniboot \
+ ${CD}/miniboot.iso ${CD_DISC1}; \
+ ${.CURDIR}/${MACHINE_ARCH}/mkisoimages.sh -b fbsd_livefs \
+ ${CD}/disc2.iso ${CD_DISC2}; \
+ if [ "x${CD_EXTRA_BITS}" != "x" ]; then \
+ ${.CURDIR}/${MACHINE_ARCH}/mkisoimages.sh -b fbsd_boot \
+ ${CD}/disc1.iso ${CD_DISC1} ${CD_EXTRA_BITS}; \
+ fi \
+ fi
+ touch iso.1
+
#
# --==## Documentation Project files such as the Handbook and FAQ ##==--
#