summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-08-15 20:57:08 +0000
committerobrien <obrien@FreeBSD.org>2001-08-15 20:57:08 +0000
commitb088bbf8635a9e31a5f025bf97ab3011a17fc453 (patch)
tree278a7b1213e30b7f4a788e1b26d58d2aa9fc4bb3 /release
parentfa04b8c3cb05010a97e1d8bc04818d925ccb7390 (diff)
downloadFreeBSD-src-b088bbf8635a9e31a5f025bf97ab3011a17fc453.zip
FreeBSD-src-b088bbf8635a9e31a5f025bf97ab3011a17fc453.tar.gz
Add an `iso' target to create ISO images properly for each platform.
Diffstat (limited to 'release')
-rw-r--r--release/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/release/Makefile b/release/Makefile
index 654a432..4793da3 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -42,6 +42,16 @@ PORTSRELEASETAG?= ${AUXRELEASETAG}
KERNCONF=GENERIC
+ISO_DISC1?=${CHROOTDIR}/${_R}/${BUILDNAME}_disc1.iso
+ISO_DISC2?=${CHROOTDIR}/${_R}/${BUILDNAME}_disc2.iso
+ISOTITLE?="${BUILDNAME} ${MACHINE}"
+ISOCOPYRIGHT?="(c)2001 The FreeBSD Project"
+# for x86, et. al.
+.if ${MACHINE_ARCH} == "i386"
+ISOBOOTABLE=-b floppies/boot.flp -c floppies/boot.catalog
+.endif
+MKISOFLAGS=${ISOBOOTABLE} -d -N -D -R -T -V ${ISOTITLE} -P ${ISOCOPYRIGHT}
+
# If you want to pass flags to the world build such as -j X, use
# WORLD_FLAGS. Similarly, you can specify make flags for kernel
# builds via KERNEL_FLAGS.
@@ -1017,4 +1027,14 @@ doMFSKERN:
.endif
@echo "Created ${RD}/floppies/${FSIMAGE}.flp"
+iso:
+ mkisofs ${MKISOFLAGS} -o ${ISO_DISC1} ${CHROOTDIR}${CD_DISC1}
+ mkisofs ${MKISOFLAGS} -o ${ISO_DISC2} ${CHROOTDIR}${CD_DISC2}
+ # post-processing
+.for disc in ${ISO_DISC1} ${ISO_DISC2}
+.if ${MACHINE_ARCH} == "alpha"
+ setcdboot ${disc} /boot/cdboot
+.endif
+.endfor
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud