diff options
author | nyan <nyan@FreeBSD.org> | 2002-10-14 16:30:39 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-10-14 16:30:39 +0000 |
commit | d60235e3922aa00e76be5c8ce10be87fd35e2b27 (patch) | |
tree | 59422ac2993adffe38878b75fd83dd5a6b83ea8c /release/Makefile | |
parent | 27ef305f7ec2b3c60b54d88505c154b4afb969e9 (diff) | |
download | FreeBSD-src-d60235e3922aa00e76be5c8ce10be87fd35e2b27.zip FreeBSD-src-d60235e3922aa00e76be5c8ce10be87fd35e2b27.tar.gz |
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.
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 43 |
1 files changed, 35 insertions, 8 deletions
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 |