Source-Changes-HG archive

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

[src/trunk]: src/etc Use bsd.kernobj.mk



details:   https://anonhg.NetBSD.org/src/rev/f8368d8e11c2
branches:  trunk
changeset: 485613:f8368d8e11c2
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue May 02 06:41:44 2000 +0000

description:
Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels.  Handy if re-spinning
due to errors in distrib later on.

diffstat:

 etc/Makefile |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r 96e1f3c052f5 -r f8368d8e11c2 etc/Makefile
--- a/etc/Makefile      Tue May 02 06:35:12 2000 +0000
+++ b/etc/Makefile      Tue May 02 06:41:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.144 2000/05/01 05:29:34 thorpej Exp $
+#      $NetBSD: Makefile,v 1.145 2000/05/02 06:41:44 sjg Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -40,6 +40,9 @@
 #      stuff for this target is found in etc.${MACHINE}/Makefile.inc.
 #    release: a synonym for `snapshot'
 
+# do this before bsd.own.mk so we get correct BSDSRCDIR
+.include "../Makefile.inc"
+
 # For NO_SENDMAIL and INSTPRIV and CRYPTOPATH
 .include <bsd.own.mk>
 SRCTOP= ..
@@ -255,11 +258,7 @@
        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}/${dir}
 .endfor
 
-# the regular expression does a basename(1) on .CURDIR so that we don't
-# have to keep looking up .. at compile time.
-KERNSRCDIR?=   ${.CURDIR:C/[^\/]+$//}sys
-KERNOBJDIR?=   ${KERNSRCDIR}/arch/${MACHINE}/compile
-KERNCONFDIR?=  ${KERNSRCDIR}/arch/${MACHINE}/conf
+.include <bsd.kernobj.mk>
 
 # This target builds the GENERIC kernel (which must exist for all
 # ports) and puts it in binary/sets/kern.tgz, and also builds any
@@ -276,6 +275,8 @@
 #
 .if !target(snap_kern)
 snap_kern:
+.ifndef KERNELS_DONE
+       mkdir -p ${KERNOBJDIR}
 .for configfile in GENERIC ${EXTRA_KERNELS} ${BUILD_KERNELS}
        cd ${KERNCONFDIR} && ${CONFIG} \
                -b ${KERNOBJDIR}/${configfile} -s ${KERNSRCDIR} ${configfile}
@@ -294,6 +295,7 @@
                gzip -c -9 < $${kernel} > \
                        ${RELEASEDIR}/binary/kernel/$${kernel}.${configfile}.gz ; }
 .endfor # EXTRA_KERNELS
+.endif # KERNELS_DONE
 .endif # no target(snap_kern)
 
 .endif # RELEASEDIR check



Home | Main Index | Thread Index | Old Index