Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/etc.sun3 Define our own snap_kern target that builds all...



details:   https://anonhg.NetBSD.org/src/rev/35e03df4d297
branches:  trunk
changeset: 473130:35e03df4d297
user:      gwr <gwr%NetBSD.org@localhost>
date:      Fri May 21 04:02:02 1999 +0000

description:
Define our own snap_kern target that builds all the kernels, but
does not install the un-patched ramdisk kernels.  The snap_md_post
target builds the installation ramdisk image, patches that into the
ramdisk kernels, and installs them.  Also the miniroot.
Automated snapshot build works now.

diffstat:

 etc/etc.sun3/Makefile.inc |  45 ++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 8c0ea7ecf835 -r 35e03df4d297 etc/etc.sun3/Makefile.inc
--- a/etc/etc.sun3/Makefile.inc Fri May 21 03:45:50 1999 +0000
+++ b/etc/etc.sun3/Makefile.inc Fri May 21 04:02:02 1999 +0000
@@ -1,10 +1,45 @@
-#      $NetBSD: Makefile.inc,v 1.8 1999/02/05 03:01:53 cjs Exp $
+#      $NetBSD: Makefile.inc,v 1.9 1999/05/21 04:02:02 gwr Exp $
 #
 #      etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets
 #
 
-# Set this for any kernels beyond GENERIC you want to include
-# in the distribution.
-EXTRA_KERNELS+= GENERIC3X
+BIN3+= etc.sun3/ttyaction
+
+# These are put in ${RELEASEDIR} by "make release" in distrib/sun3
+# after it builds and patches in the installation ramdisk image.
+RAMDISK_KERNELS= \
+ RAMDISK RAMDISK3X
+
+# These are just built and copied to the release area.
+OTHER_KERNELS= \
+ GENERIC GENERIC3X \
+ INSTALL INSTALL3X \
+ DISKLESS DISKLESS3X
+
+ALL_KERNELS = $(RAMDISK_KERNELS) $(OTHER_KERNELS)
 
-BIN3+= etc.sun3/ttyaction
+# Build all the kernels, then copy all but ramdisk kernels
+# to the release area.  Those are done by snap_md_post.
+snap_kern:
+.for configfile in ${ALL_KERNELS}
+       cd ${KERNCONFDIR} && config \
+               -b ${KERNOBJDIR}/${configfile} -s ${KERNSRCDIR} ${configfile}
+.ifndef UPDATE
+       cd ${KERNOBJDIR}/${configfile} && ${MAKE} clean 
+.endif
+       cd ${KERNOBJDIR}/${configfile} && ${MAKE} depend && ${MAKE} ${_J}
+.endfor # EXTRA_KERNELS
+.for configfile in ${OTHER_KERNELS}
+       cd ${KERNOBJDIR}/${configfile} && gzip -c -9 < netbsd > \
+               ${RELEASEDIR}/binary/kernel/$${kernel}.${configfile}.gz
+.endfor # EXTRA_KERNELS
+
+# Build the ramdisk image and patch it into the ramdisk kernels.
+# Build the miniroot, etc. and copy all to the release area.
+snap_md_post:
+.ifndef UPDATE
+       cd ${.CURDIR}/../distrib/sun3 && ${MAKE} clean
+.endif
+       cd ${.CURDIR}/../distrib/sun3 && \
+         ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} release
+



Home | Main Index | Thread Index | Old Index