cvs commit: src/release/alpha dokern.sh drivers.conf
Ruslan Ermilov
ru at FreeBSD.org
Wed May 21 10:22:49 PDT 2003
On Wed, May 21, 2003 at 10:36:24AM -0600, Scott Long wrote:
> Ruslan Ermilov wrote:
> >On Wed, May 21, 2003 at 08:28:05AM -0300, Daniel C. Sobral wrote:
> >
> >>And I can't say I'm happy to discover I'm
> >>wrong, since my plans call for an increase of 40Kb on i386 for the
> >>loader on i386 (rather more on 64 bits archs). I counted on not being
> >>encumbered by floppy's loader.
> >>
> >
> >FWIW, recompiling loader without FICL, saved me 100K on the kern.flp
> >for Alpha! The patch that does this isn't ready for committing yet,
> >but I will make sure to polish it to the required shape.
> >
>
> I have plans for FICL and boot media. I'd rather not reduce the
> functionality of the loader, and instead do easy things like compress
> the .ko files like has been suggested before.
>
Whatever. Here's a working patch that recompiles boot loaders
without FICL for the purposes of boot floppies.
I'm real sorry, but that well-known change that split release.9
into release.9 and release.9.alpha now gets in the way, so its
reversion is also included in the patch.
%%%
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.778
diff -u -r1.778 Makefile
--- Makefile 20 May 2003 01:46:09 -0000 1.778
+++ Makefile 21 May 2003 17:08:15 -0000
@@ -493,7 +493,7 @@
mkdir ${RD}/floppies
mkdir ${RD}/trees
mkdir ${RD}/kernels
- for i in ${DISTRIBUTIONS} ; do \
+ for i in ${DISTRIBUTIONS} special; do \
mkdir ${RD}/trees/$$i && \
mtree -deU -f ${MTREEFILES}/BSD.root.dist \
-p ${RD}/trees/$$i > /dev/null && \
@@ -651,117 +651,13 @@
release.9:
.if ${TARGET_ARCH} != "ia64" || ${TARGET_ARCH} == ${MACHINE_ARCH}
- cp ${RD}/trees/base/etc/disktab /etc
- rm -rf ${RD}/mfsfd
- mkdir ${RD}/mfsfd
- cd ${RD}/mfsfd && \
- mkdir -p etc/defaults dev mnt stand/etc/defaults stand/help
- @cd ${.CURDIR} && $(MAKE) installCRUNCH CRUNCH=boot \
- DIR=${RD}/mfsfd/stand ZIP=false
- ( cd ${RD}/mfsfd && \
- for dir in bin sbin ; do \
- ln -sf /stand $$dir; \
- done )
- cp ${RD}/trees/base/sbin/dhclient-script ${RD}/mfsfd/stand
-.if ${TARGET} == "pc98"
- cp ${.CURDIR}/../etc/defaults/pccard.conf ${RD}/mfsfd/etc/defaults/pccard.conf
+.if exists(${.CURDIR}/../sys/boot/${TARGET}/loader)
+ cd ${.CURDIR}/../sys/boot/${TARGET}/loader; \
+ ${WMAKE} cleandir; \
+ ${WMAKE} obj; \
+ ${WMAKE} -DNOMAN -DNOFORTH all; \
+ ${WMAKE} -DNOMAN -DNOFORTH install DESTDIR=${RD}/trees/special
.endif
- cp ${.CURDIR}/../etc/usbd.conf ${RD}/mfsfd/etc/usbd.conf
- ( for F in defaults/rc.conf netconfig protocols ; do \
- sed -e '/^#.*$$/d' -e 's/[:space:]*#.*$$//g' \
- ${RD}/trees/base/etc/$$F > ${RD}/mfsfd/stand/etc/$$F ; \
- done )
- grep -E '^(ftp|nameserver|domain|sunrpc|cmd|nfsd)[^-\w]' \
- ${RD}/trees/base/etc/services | \
- sed -e '/^#.*$$/d' -e 's/[:space:]*#.*$$//g' \
- > ${RD}/mfsfd/stand/etc/services
- ln ${RD}/mfsfd/stand/etc/services ${RD}/mfsfd/etc/services
- ln ${RD}/mfsfd/stand/etc/netconfig ${RD}/mfsfd/etc/netconfig
- cp ${RD}/trees/base/COPYRIGHT ${RD}/mfsfd/stand/help/COPYRIGHT.hlp
-.if !defined(NODOC)
- @for i in ${DIST_DOCS_ARCH_INDEP}; do \
- cp ${RND}/${RELNOTES_LANG}/$$i/article.txt ${RD}/mfsfd/stand/help/`echo $${i} | tr 'a-z' 'A-Z'`.TXT; \
- done
- @for i in ${DIST_DOCS_ARCH_DEP}; do \
- cp ${RND}/${RELNOTES_LANG}/$$i/${TARGET}/article.txt ${RD}/mfsfd/stand/help/`echo $${i} | tr 'a-z' 'A-Z'`.TXT; \
- done
- @mv ${RD}/mfsfd/stand/help/INSTALLATION.TXT ${RD}/mfsfd/stand/help/INSTALL.TXT
- @mv ${RD}/mfsfd/stand/help/EARLY-ADOPTER.TXT ${RD}/mfsfd/stand/help/EARLY.TXT
-.endif
- -test -f ${.CURDIR}/install.cfg && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
- @mkdir -p ${RD}/mfsfd/boot
-.if ${TARGET_ARCH} != "ia64"
- @cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot
-.endif
-.if ${TARGET} == "i386"
- @cp ${RD}/trees/base/boot/mbr ${RD}/mfsfd/boot
-.endif
- @echo "Making the regular boot floppy."
- @tar --exclude CVS -cf - -C ${.CURDIR}/../usr.sbin/sysinstall help | \
- tar xf - -C ${RD}/mfsfd/stand
-.if ${TARGET_ARCH} == "alpha" && !defined(NO_FLOPPIES)
- rm -rf ${RD}/mfsfd/stand/help/*
-.endif
-.if defined(SMALLBOOTSIZE)
-.if exists(${.CURDIR}/${TARGET}/drivers-small.conf)
- @rm -rf ${RD}/mfsfd/modules
- @mkdir -p ${RD}/mfsfd/modules
- @awk -f ${.CURDIR}/scripts/driver-copy2.awk 2 \
- ${.CURDIR}/${TARGET}/drivers-small.conf \
- ${RD}/trees/base/boot/kernel ${RD}/mfsfd/modules
-.endif
- sh -e ${DOFS_SH} mfsroot ${RD} ${MNT} \
- ${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL}
- @gzip -9vc mfsroot > mfsroot.gz
- @sh -e ${DOFS_SH} ${RD}/floppies/mfsroot-small.flp \
- ${RD} ${MNT} ${SMALLBOOTSIZE} mfsroot.gz \
- ${BOOTINODE} ${SMALLBOOTLABEL}
-.endif
-.if exists(${.CURDIR}/${TARGET}/drivers.conf)
- @rm -rf ${RD}/mfsfd/modules
- @mkdir -p ${RD}/mfsfd/modules
- @awk -f ${.CURDIR}/scripts/driver-copy2.awk 2 \
- ${.CURDIR}/${TARGET}/drivers.conf \
- ${RD}/trees/base/boot/kernel ${RD}/mfsfd/modules
- @rm -rf ${RD}/driversfd
- @mkdir ${RD}/driversfd
- @awk -f ${.CURDIR}/scripts/driver-copy2.awk 3 \
- ${.CURDIR}/${TARGET}/drivers.conf \
- ${RD}/trees/base/boot/kernel ${RD}/driversfd
- - at rmdir ${RD}/driversfd
- if [ -d ${RD}/driversfd ]; then \
- sh -e ${DOFS_SH} \
- ${RD}/floppies/drivers.flp ${RD} ${MNT} ${DRIVERSIZE} \
- ${RD}/driversfd ${DRIVERINODE} ${DRIVERLABEL}; \
- cd ${RD}/driversfd && awk -f ${.CURDIR}/scripts/driver-desc.awk \
- *.dsc >> ${RD}/floppies/DRIVERS.TXT; \
- fi
-.endif
- sh -e ${DOFS_SH} mfsroot ${RD} ${MNT} \
- ${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL}
- @gzip -9vc mfsroot > mfsroot.gz
- @mkdir -p ${RD}/mfsroot
- @cp mfsroot.gz ${RD}/mfsroot
-.if !defined(NO_FLOPPIES)
-.if defined(BOOTSIZE)
- @sh -e ${DOFS_SH} ${RD}/floppies/mfsroot.flp \
- ${RD} ${MNT} ${BOOTSIZE} mfsroot.gz ${BOOTINODE} ${BOOTLABEL}
- @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern
-.endif
-.if defined(SMALLBOOTSIZE)
- @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=kern-small FDSIZE=SMALL
-.endif
-.if defined(BIGBOOTSIZE)
- @cd ${.CURDIR} && ${MAKE} doMFSKERN FSIMAGE=boot FDSIZE=BIG
-.endif
-.endif
- @rm mfsroot mfsroot.gz
- @echo "Regular and MFS boot floppies made."
-.endif
- touch release.9
-
-release.9.alpha:
-.if ${TARGET_ARCH} != "ia64" || ${TARGET_ARCH} == ${MACHINE_ARCH}
cp ${RD}/trees/base/etc/disktab /etc
rm -rf ${RD}/mfsfd
mkdir ${RD}/mfsfd
@@ -869,7 +765,7 @@
@rm mfsroot mfsroot.gz
@echo "Regular and MFS boot floppies made."
.endif
- touch release.9.alpha
+ touch release.9
#
# --==## Create a fixit floppy ##==--
@@ -1087,14 +983,8 @@
md5 * > CHECKSUM.MD5) \
)
-.if ${TARGET_ARCH} == "alpha"
-RELEASE9=release.9.${TARGET_ARCH}
-.else
-RELEASE9=release.9
-.endif
-
doRELEASE: release.1 release.2 release.3 ${DOCREL} release.4 release.5 \
- release.6 release.7 release.8 ${RELEASE9} ${FIXIT_TARGET}
+ release.6 release.7 release.8 release.9 ${FIXIT_TARGET}
@cd ${.CURDIR} && ${MAKE} ${EXTRAS}
@echo "Release done"
@@ -1176,11 +1066,11 @@
@mkdir -p ${RD}/image.${FSIMAGE}/boot
.if ${TARGET} == "i386"
@${WMAKEENV} kgzip -v -l ${RD}/trees/base/usr/lib/kgzldr.o \
- -o ${RD}/image.${FSIMAGE}/boot/loader ${RD}/trees/base/boot/loader
+ -o ${RD}/image.${FSIMAGE}/boot/loader ${RD}/trees/special/boot/loader
.elif ${TARGET_ARCH} == "ia64"
@cp ${RD}/trees/base/boot/loader.efi ${RD}/image.${FSIMAGE}/boot
.else
- @cp ${RD}/trees/base/boot/loader ${RD}/image.${FSIMAGE}/boot
+ @cp ${RD}/trees/special/boot/loader ${RD}/image.${FSIMAGE}/boot
.endif
@[ -r ${RD}/kernels/BOOTMFS.${FSIMAGE}.hints ] && \
sed -e '/^hint/s/^/set /' -e '/^#/d' \
%%%
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software AG,
ru at FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030521/bc096f0e/attachment.bin
More information about the cvs-src
mailing list