From d60235e3922aa00e76be5c8ce10be87fd35e2b27 Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 14 Oct 2002 16:30:39 +0000 Subject: Fixed disk full problem for pc98 distribution. Now, it makes 4 installation floppies. kern-small.flp and mfsroot-small.flp are for old machines that don't support 1.44MB floppy. These floppies don't have pci related devices. kern.flp and mfsroot.flp are normal 1.44MB floppy images. --- release/Makefile | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'release/Makefile') diff --git a/release/Makefile b/release/Makefile index d859103..7fbd8cb 100644 --- a/release/Makefile +++ b/release/Makefile @@ -625,6 +625,35 @@ release.9: .if ${TARGET_ARCH} == "alpha" rm -rf ${RD}/mfsfd/stand/help/* .endif +.if ${TARGET} == "pc98" +.if exists(${.CURDIR}/${TARGET}/drivers-small.conf) + @rm -rf ${RD}/mfsfd/stand/modules + @mkdir -p ${RD}/mfsfd/stand/modules + @awk -f ${.CURDIR}/scripts/driver-copy2.awk 2 \ + ${.CURDIR}/${TARGET}/drivers-small.conf \ + ${RD}/trees/base/boot/kernel ${RD}/mfsfd/stand/modules +.endif + sh -e ${.CURDIR}/scripts/doFS.sh -s mfsroot-small ${RD} ${MNT} \ + ${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL} + @gzip -9vc mfsroot-small > mfsroot-small.gz + @sh -e ${.CURDIR}/scripts/doFS.sh ${RD}/floppies/mfsroot-small.flp \ + ${RD} ${MNT} ${SMALLBOOTSIZE} mfsroot-small.gz \ + ${BOOTINODE} ${SMALLBOOTLABEL} +.if exists(${.CURDIR}/${TARGET}/drivers.conf) + @rm -rf ${RD}/mfsfd/stand/modules + @mkdir -p ${RD}/mfsfd/stand/modules + @awk -f ${.CURDIR}/scripts/driver-copy2.awk 2 \ + ${.CURDIR}/${TARGET}/drivers.conf \ + ${RD}/trees/base/boot/kernel ${RD}/mfsfd/stand/modules +.endif + sh -e ${.CURDIR}/scripts/doFS.sh -s mfsroot ${RD} ${MNT} \ + ${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL} + @gzip -9vc mfsroot > mfsroot.gz + @sh -e ${.CURDIR}/scripts/doFS.sh ${RD}/floppies/mfsroot.flp \ + ${RD} ${MNT} ${BOOTSIZE} mfsroot.gz ${BOOTINODE} ${BOOTLABEL} + @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern-small FDSIZE=SMALL + @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern +.else .if exists(${.CURDIR}/${TARGET}/drivers.conf) @mkdir -p ${RD}/mfsfd/stand/modules @awk -f ${.CURDIR}/scripts/driver-copy2.awk 2 \ @@ -645,13 +674,6 @@ release.9: sh -e ${.CURDIR}/scripts/doFS.sh -s mfsroot ${RD} ${MNT} \ ${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL} @gzip -9vc mfsroot > mfsroot.gz -.if ${TARGET} == "pc98" - @sh -e ${.CURDIR}/scripts/doFS.sh ${RD}/floppies/mfsroot.flp \ - ${RD} ${MNT} ${SMALLBOOTSIZE} mfsroot.gz \ - ${BOOTINODE} ${SMALLBOOTLABEL} - @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern-small FDSIZE=SMALL - @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern -.else @sh -e ${.CURDIR}/scripts/doFS.sh ${RD}/floppies/mfsroot.flp \ ${RD} ${MNT} ${BOOTSIZE} mfsroot.gz ${BOOTINODE} ${BOOTLABEL} @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern @@ -912,7 +934,12 @@ doMFSKERN: @cd ${.CURDIR}/../sys/${TARGET}/conf && \ sh ${.CURDIR}/${TARGET}/dokern.sh ${FDSIZE} < GENERIC > BOOTMFS && \ [ -r GENERIC.hints ] && cp GENERIC.hints BOOTMFS.hints -.if exists(${.CURDIR}/${TARGET}/drivers.conf) +.if defined(FDSIZE) && ${FDSIZE} == "SMALL" && \ + exists(${.CURDIR}/${TARGET}/drivers-small.conf) + @awk -f ${.CURDIR}/scripts/driver-remove.awk \ + ${.CURDIR}/${TARGET}/drivers-small.conf \ + ${.CURDIR}/../sys/${TARGET}/conf/BOOTMFS +.elif exists(${.CURDIR}/${TARGET}/drivers.conf) @awk -f ${.CURDIR}/scripts/driver-remove.awk \ ${.CURDIR}/${TARGET}/drivers.conf \ ${.CURDIR}/../sys/${TARGET}/conf/BOOTMFS -- cgit v1.1