Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.pmax + Build (but don't install) INSTALL and RAMDISK...



details:   https://anonhg.NetBSD.org/src/rev/2551fb7ff866
branches:  trunk
changeset: 472304:2551fb7ff866
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Apr 27 04:36:25 1999 +0000

description:
+ Build (but don't install) INSTALL and RAMDISK kernels.

+ Make installation/diskimage installation/netboot in ${RELEASEDIR}

+ snap_md_post depends on the diskimage, the diskimage tar file and
  the install kernel, and installs these into the right places in
  ${RELEASEDIR}.

diffstat:

 etc/etc.pmax/Makefile.inc |  47 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 46 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r c0597e715f51 -r 2551fb7ff866 etc/etc.pmax/Makefile.inc
--- a/etc/etc.pmax/Makefile.inc Tue Apr 27 03:19:44 1999 +0000
+++ b/etc/etc.pmax/Makefile.inc Tue Apr 27 04:36:25 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.3 1999/02/05 03:01:52 cjs Exp $
+#      $NetBSD: Makefile.inc,v 1.4 1999/04/27 04:36:25 simonb Exp $
 #
 #      etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets
 #
@@ -6,3 +6,48 @@
 # Set this for any kernels beyond GENERIC you want to include
 # in the distribution.
 #EXTRA_KERNELS+=
+
+# Set this for any kernels beyond GENERIC and ${EXTRA_KERNELS} you
+# need to build to make installation tools/media.
+BUILD_KERNELS+=INSTALL RAMDISK
+
+# Add any extra release directories to be made
+INSTALLATION_DIRS+=installation/diskimage installation/netboot
+
+# location of the source diskimage
+DISKIMAGE_DIR!=                cd ${.CURDIR}/../distrib/pmax/instkernel && ${MAKE} -s print-objdir
+DISKIMAGE=             ${DISKIMAGE_DIR}/diskimage.gz
+
+# location of the source netboot diskimage tar file
+DISKIMAGE_TAR_DIR!=    cd ${.CURDIR}/../distrib/pmax/ramdisk && ${MAKE} -s print-objdir
+DISKIMAGE_TAR=         ${DISKIMAGE_TAR_DIR}/diskimage.tgz
+
+# location of the ramdisk install kernel
+INSTALLKERN_DIR!=      cd ${.CURDIR}/../distrib/pmax/instkernel && ${MAKE} -s print-objdir
+INSTALLKERN=           ${INSTALLKERN_DIR}/netbsd.gz
+INSTALLKERNNAME=       install.gz
+
+# location and name of the stripped down NFS install kernel
+NFSCONF=               INSTALL
+NFSKERNNAME=           nfsnetbsd
+# We don't know about ${KERNOBJDIR} yet ...
+NFSKERNDIR=            ${.CURDIR:C/[^\/]+$//}sys/arch/${MACHINE}/compile/${NFSCONF}
+NFSKERN=               ${NFSKERNDIR}/${NFSKERNNAME}
+
+snap_md_post: ${DISKIMAGE} ${DISKIMAGE_TAR} ${INSTALLKERN}
+       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
+               -m ${BINMODE} ${NFSKERN}.ecoff \
+               ${RELEASEDIR}/binary/kernel/${NFSKERNNAME}
+       gzip -9 ${RELEASEDIR}/binary/kernel/${NFSKERNNAME}
+       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
+               -m ${BINMODE} ${INSTALLKERN} \
+               ${RELEASEDIR}/binary/kernel/${INSTALLKERNNAME}
+       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
+               -m ${NONBINMODE} ${DISKIMAGE} \
+               ${RELEASEDIR}/installation/diskimage
+       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
+               -m ${NONBINMODE} ${DISKIMAGE_TAR} \
+               ${RELEASEDIR}/installation/netboot
+
+${DISKIMAGE} ${DISKIMAGE_TAR} ${INSTALLKERN}:
+       cd ${.CURDIR}/../distrib/pmax && ${MAKE} ${_J}



Home | Main Index | Thread Index | Old Index