Make a bootable CD on pc98.

This commit is contained in:
Yoshihiro Takahashi 2006-05-16 14:22:37 +00:00
parent 29aea9ec7d
commit ef6cf7f1f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158650
2 changed files with 5 additions and 6 deletions

View File

@ -265,9 +265,7 @@ RD= ${_R}/stage
RND= ${RD}/release.doc
FD= ${_R}/ftp
CD= ${_R}/cdrom
.if ${TARGET} != "pc98"
CD_BOOT= ${CD}/bootonly
.endif
CD_DISC1= ${CD}/disc1
CD_DISC2= ${CD}/disc2
.if defined(SEPARATE_LIVEFS)
@ -308,7 +306,7 @@ EXTRAS+= cdrom.1 cdrom.2 cdrom.3
EXTRAS+= iso.1
.endif
.if ${TARGET} == "pc98"
BOOTABLE=
BOOTABLE="-G"
.else
BOOTABLE="-b"
.endif
@ -945,7 +943,6 @@ cdrom.1:
@rm -f ${CD_LIVEFS}/.profile
@cp ${.CURDIR}/fixit.profile ${CD_LIVEFS}/.profile
@ln -sf /rescue ${CD_LIVEFS}/stand
.if ${TARGET} != "pc98"
@echo "Setting up CDROM boot area"
@rm -f ${CD_LIVEFS}/boot/loader.conf
@cp ${RD}/mfsroot/mfsroot.gz ${CD_LIVEFS}/boot/mfsroot.gz
@ -959,7 +956,6 @@ cdrom.1:
.if ${TARGET} == "i386" || ${TARGET_ARCH} == "amd64"
@echo 'hint.atkbd.0.flags="0x1"' >> ${CD_LIVEFS}/boot/device.hints
.endif
.endif
.endif
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_LIVEFS}/cdrom.inf
touch ${.TARGET}

View File

@ -28,12 +28,15 @@ publisher="The FreeBSD Project. http://www.freebsd.org/"
if [ "x$1" = "x-b" ]; then
bootable="-b boot/cdboot -no-emul-boot"
shift
elif [ "x$1" = "x-G" ]; then
bootable="-G /R/cdrom/bootonly/boot/cdboot"
shift
else
bootable=""
fi
if [ $# -lt 3 ]; then
echo Usage: $0 '[-b] image-label image-name base-bits-dir [extra-bits-dir]'
echo Usage: $0 '[-bG] image-label image-name base-bits-dir [extra-bits-dir]'
exit 1
fi