summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-03-23 15:01:54 +0000
committerjhb <jhb@FreeBSD.org>2005-03-23 15:01:54 +0000
commitd9e318f46b2c280954bf8e92fb98efe5eaca983b (patch)
treeb6014eb4b2554b1f13a5a616725d7d8f0026fc28
parent4fa1581ab5455f552c5bb19ec85108fda265d3e3 (diff)
downloadFreeBSD-src-d9e318f46b2c280954bf8e92fb98efe5eaca983b.zip
FreeBSD-src-d9e318f46b2c280954bf8e92fb98efe5eaca983b.tar.gz
What should be the last major changes to the ISO layout:
- When a separate livefs ISO is used, change the name of the tree directory to be R/cdrom/livefs and change the name of the iso to livefs.iso rather than using disc2. Instead, disc2 is now always going to be the packages disc regardless of the presence of a separate livefs which makes things simpler. - Build a very simple disc2 tree under R/cdrom that just includes the cdrom.inf file that the packages need. Also, build a disc2.iso image in the iso.1 target. Disc 2's volume label is "FreeBSD_Packages". - Retire CD_EXTRA_BITS and replace it with CD_PACKAGE_TREE. CD_EXTRA_BITS was specific to disc1, but CD_PACKAGE_TREE instead should point to a directory that has disc1 and disc2 subdirectories that contain the extra bits for each image. - Rename the bootonly volume label to "FreeBSD_bootonly" and just hardcode the disc1 and livefs volume names and iso suffixes.
-rw-r--r--release/Makefile57
1 files changed, 34 insertions, 23 deletions
diff --git a/release/Makefile b/release/Makefile
index 9f35d3d..e5958fc 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -104,9 +104,9 @@ RELEASEPORTSMODULE?= ports
#HTTP_PROXY?= www.example.com
#FTP_PROXY?= ftp.example.com
-# When creating ISO images, point ${CD_EXTRA_BITS} to a directory containing
-# extra packages or other files. It will be appended to the disk 1 ISO.
-#CD_EXTRA_BITS= /path/to/pkg
+# When creating ISO images, point ${CD_PACKAGE_TREE} to a directory containing
+# the package split by an earlier invocation of the 'package-split' target.
+#CD_PACKAGE_TREE= /path/to/pkg
# Extra source tarballs; each argument is a pair of source dir and
# distribution name. The dist name should not exceed 7 characters
@@ -127,12 +127,6 @@ DOMINIMALDOCPORTS= YES
RELEASEPORTSMODULE= ${MINIMALDOCPORTS}
.endif
-# Make changing names of disc1/disc2 CD's possible.
-DISC1_LABEL?= FreeBSD_Install
-DISC1_NAME?= disc1
-DISC2_LABEL?= FreeBSD_LiveFS
-DISC2_NAME?= disc2
-
# Helper variable
.if defined(NOPORTS)
.if !defined(DOMINIMALDOCPORTS) || ${DOMINIMALDOCPORTS} != "YES"
@@ -250,9 +244,9 @@ CD= ${_R}/cdrom
CD_BOOT= ${CD}/bootonly
.endif
CD_DISC1= ${CD}/disc1
-.if defined(SEPARATE_LIVEFS)
CD_DISC2= ${CD}/disc2
-CD_LIVEFS= ${CD_DISC2}
+.if defined(SEPARATE_LIVEFS)
+CD_LIVEFS= ${CD}/livefs
.else
CD_LIVEFS= ${CD_DISC1}
.endif
@@ -449,11 +443,7 @@ release rerelease:
.for var in \
AUTO_KEYBOARD_DETECT \
BUILDNAME \
- CD_EXTRA_BITS \
- DISC1_LABEL \
- DISC1_NAME \
- DISC2_LABEL \
- DISC2_NAME \
+ CD_PACKAGE_TREE \
DISTRIBUTIONS \
DOC_LANG \
DOMINIMALDOCPORTS \
@@ -921,7 +911,7 @@ cdrom.1:
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_LIVEFS}/cdrom.inf
touch ${.TARGET}
-# Build disc1 cdrom image
+# Build disc1 and disc2 cdrom images
cdrom.2:
@echo "Building CDROM disc1 filesystem image"
@mkdir -p ${CD_DISC1}/${BUILDNAME}
@@ -946,10 +936,15 @@ cdrom.2:
@mv ${CD_DISC1}/INSTALLATION.TXT ${CD_DISC1}/INSTALL.TXT
@mv ${CD_DISC1}/INSTALLATION.HTM ${CD_DISC1}/INSTALL.HTM
.endif
+ @echo "CD_VOLUME = 1" >> ${CD_DISC1}/cdrom.inf
.if defined(SEPARATE_LIVEFS)
@cp -Rp ${CD_LIVEFS}/boot ${CD_DISC1}
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC1}/cdrom.inf
.endif
+ @echo "Building CDROM disc2 filesystem image"
+ @mkdir -p ${CD_DISC2}
+ @echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
+ @echo "CD_VOLUME = 2" >> ${CD_DISC2}/cdrom.inf
touch ${.TARGET}
#
@@ -960,6 +955,7 @@ cdrom.3:
@echo "Building bootonly CDROM filesystem image"
@mkdir -p ${CD_BOOT}
@cp -Rp ${CD_LIVEFS}/boot ${CD_BOOT}
+ @echo "CD_VERSION = ${BUILDNAME}" > ${CD_BOOT}/cdrom.inf
.if defined(MINIROOT)
@echo "Building bootonly UFS filesystem image"
@mkdir -p ${FD}/miniroot
@@ -970,22 +966,37 @@ cdrom.3:
.endif
touch ${.TARGET}
+.if make(iso.1)
+.if defined(CD_PACKAGE_TREE)
+.if exists(${CD_PACKAGE_TREE}/disc1)
+CD_DISC1_PKGS= ${CD_PACKAGE_TREE}/disc1
+.endif
+.if exists(${CD_PACKAGE_TREE}/disc2)
+CD_DISC2_PKGS= ${CD_PACKAGE_TREE}/disc2
+.endif
+.endif
+.endif
+
iso.1:
.if exists(${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh)
@echo "Creating ISO images..."
.if defined(CD_BOOT)
@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
- fbsd_bootonly \
+ FreeBSD_bootonly \
${CD}/${BUILDNAME}-${TARGET}-bootonly.iso ${CD_BOOT}
.endif
@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
- ${DISC1_LABEL} \
- ${CD}/${BUILDNAME}-${TARGET}-${DISC1_NAME}.iso ${CD_DISC1} \
- ${CD_EXTRA_BITS}
+ FreeBSD_Install \
+ ${CD}/${BUILDNAME}-${TARGET}-disc1.iso ${CD_DISC1} \
+ ${CD_DISC1_PKGS}
+ @sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh \
+ FreeBSD_Packages \
+ ${CD}/${BUILDNAME}-${TARGET}-disc2.iso ${CD_DISC2} \
+ ${CD_DISC2_PKGS}
.if defined(SEPARATE_LIVEFS)
@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
- ${DISC2_LABEL} \
- ${CD}/${BUILDNAME}-${TARGET}-${DISC2_NAME}.iso ${CD_DISC2}
+ FreeBSD_LiveFS \
+ ${CD}/${BUILDNAME}-${TARGET}-livefs.iso ${CD_LIVEFS}
.endif
@(cd ${CD} && md5 *.iso > ${BUILDNAME}-${TARGET}-iso.CHECKSUM.MD5)
touch ${.TARGET}
OpenPOWER on IntegriCloud