Source-Changes-HG archive

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

[src/trunk]: src/etc Let the main Makefile deal with building kernels.



details:   https://anonhg.NetBSD.org/src/rev/afbe9e15183f
branches:  trunk
changeset: 482718:afbe9e15183f
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sun Feb 20 03:52:22 2000 +0000

description:
Let the main Makefile deal with building kernels.

diffstat:

 etc/etc.mac68k/Makefile.inc |  30 ++++++------------------------
 etc/etc.sun3/Makefile.inc   |  28 +++++-----------------------
 2 files changed, 11 insertions(+), 47 deletions(-)

diffs (97 lines):

diff -r 75cb911db197 -r afbe9e15183f etc/etc.mac68k/Makefile.inc
--- a/etc/etc.mac68k/Makefile.inc       Sun Feb 20 03:48:40 2000 +0000
+++ b/etc/etc.mac68k/Makefile.inc       Sun Feb 20 03:52:22 2000 +0000
@@ -1,37 +1,19 @@
-#      $NetBSD: Makefile.inc,v 1.2 1999/12/24 15:14:29 fredb Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2000/02/20 03:52:22 mycroft Exp $
 #
 #      mac68k-specific release building goo
 #
 
-# This is commented out in the distribution, because
-#
-#  1) GENERICSBC isn't distributed
-#     (It's just GENERIC:s/ncrsci/sbc/),
+# This is commented out in the distribution, because GENERICSBC isn't
+# distributed (it's just GENERIC:s/ncrsci/sbc/).
 #
-# and
-#
-#  2) if we include GENERIC here without also setting
-#     UPDATE, we'll end up building GENERIC twice.
-#
-#EXTRA_KERNELS+=               GENERIC GENERICSBC
-EXTRA_INSTALL_KERNELS+=        INSTALL
+#EXTRA_KERNELS+=       GENERICSBC
+BUILD_KERNELS+=        INSTALL
 
 INSTALLATION_DIRS+=            installation/instkernel
 
 snap_md_post:
 #
-# Build the install kernels...
-#
-.for k in ${EXTRA_INSTALL_KERNELS}
-       cd ${KERNCONFDIR} && config \
-               -b ${KERNOBJDIR}/${k} -s ${KERNSRCDIR} ${k}
-.ifndef UPDATE
-       cd ${KERNOBJDIR}/${k} && ${MAKE} cleandir
-.endif
-       cd ${KERNOBJDIR}/${k} && ${MAKE} depend && ${MAKE} ${_J}
-.endfor
-#
-# the ramdisk...
+# Build the ramdisk...
 #
 .ifndef UPDATE
        cd ${.CURDIR}/../distrib/mac68k/instkernel/ramdisk && \
diff -r 75cb911db197 -r afbe9e15183f etc/etc.sun3/Makefile.inc
--- a/etc/etc.sun3/Makefile.inc Sun Feb 20 03:48:40 2000 +0000
+++ b/etc/etc.sun3/Makefile.inc Sun Feb 20 03:52:22 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.9 1999/05/21 04:02:02 gwr Exp $
+#      $NetBSD: Makefile.inc,v 1.10 2000/02/20 03:52:24 mycroft Exp $
 #
 #      etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets
 #
@@ -7,36 +7,18 @@
 
 # These are put in ${RELEASEDIR} by "make release" in distrib/sun3
 # after it builds and patches in the installation ramdisk image.
-RAMDISK_KERNELS= \
+BUILD_KERNELS= \
  RAMDISK RAMDISK3X
 
 # These are just built and copied to the release area.
-OTHER_KERNELS= \
- GENERIC GENERIC3X \
+EXTRA_KERNELS= \
+ GENERIC3X \
  INSTALL INSTALL3X \
  DISKLESS DISKLESS3X
 
-ALL_KERNELS = $(RAMDISK_KERNELS) $(OTHER_KERNELS)
-
-# 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
-
+snap_md_post:
 # 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



Home | Main Index | Thread Index | Old Index