Source-Changes-HG archive

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

[src/trunk]: src/distrib/pmax/instkernel - use Makefile.mdset to build md ker...



details:   https://anonhg.NetBSD.org/src/rev/907d0de8305d
branches:  trunk
changeset: 525505:907d0de8305d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Apr 12 13:52:12 2002 +0000

description:
- use Makefile.mdset to build md kernel and bootable image
- use ${RELINSTALL} instead of ${INSTALL} ...

diffstat:

 distrib/pmax/instkernel/Makefile |  61 +++++++++++++++++----------------------
 1 files changed, 27 insertions(+), 34 deletions(-)

diffs (85 lines):

diff -r dfd84e11093f -r 907d0de8305d distrib/pmax/instkernel/Makefile
--- a/distrib/pmax/instkernel/Makefile  Fri Apr 12 13:39:43 2002 +0000
+++ b/distrib/pmax/instkernel/Makefile  Fri Apr 12 13:52:12 2002 +0000
@@ -1,54 +1,47 @@
-#      $NetBSD: Makefile,v 1.24 2002/04/03 06:38:26 lukem Exp $
+#      $NetBSD: Makefile,v 1.25 2002/04/12 13:52:12 lukem Exp $
 
-.include "${.CURDIR}/../../Makefile.inc"
 .include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
+
 .include <bsd.kernobj.mk>
 
-DISKBINDIR=    /installation/diskimage
-KERNBINDIR=    /binary/kernel
+IMAGE=         diskimage
+IMAGESIZE=     2m
+LISTS=         ${.CURDIR}/list
+IMAGEENDIAN=   le
+IMAGEDEPENDS=  netbsd.gz ${DESTDIR}/usr/mdec/boot
 
-KERN=          ${KERNOBJDIR}/RAMDISK/netbsd
 RAMDISKDIR!=   cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
 RAMDISK=       ${RAMDISKDIR}/ramdisk.fs
+MDSETTARGETS=  RAMDISK ${RAMDISK} netbsd
 
-IMAGE=         diskimage
-IMAGESIZE=     4096b
-# MAKEFS_FLAGS=        -o density=32k                  # XXXDISTRIB
+netbsd.post=   ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && gzip -9f netbsd.ecoff
+
+CLEANFILES+=   netbsd.ecoff netbsd.ecoff.gz
 
-LISTS=         ${.CURDIR}/list
-IMAGEENDIAN=   le
-IMAGEDEPENDS=  netbsd.gz ${DESTDIR}/usr/mdec/boot.pmax
+PRIMARYBOOT=   ${DESTDIR}/usr/mdec/bootxx_ffs
 
-CLEANFILES+=   netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz \
-               ${IMAGE} ${IMAGE}.gz
+${IMAGE}.gz:   ${IMAGE} ${PRIMARYBOOT}
+       ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
+       gzip -9f ${IMAGE}
+
+CLEANFILES+=   ${IMAGE}.gz
 
 
-netbsd.gz: ${KERN} ${RAMDISK}
-       cp ${KERN} netbsd
-       ${MDSETIMAGE} -v netbsd ${RAMDISK}
-       elf2ecoff netbsd netbsd.ecoff           # XXXDISTRIB
-       rm -f netbsd.ecoff.gz
-       gzip -9 netbsd.ecoff
-       rm -f netbsd.gz
-       gzip -9 netbsd
-
-${IMAGE}.gz:   ${IMAGE}
-       ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs
-       rm -f ${IMAGE}.gz
-       gzip -9 ${IMAGE}
+realall: ${KERNELS} ${IMAGE}.gz
 
 
-realall: netbsd.gz ${IMAGE}.gz
+DISKBINDIR=    ${RELEASEDIR}/installation/diskimage
+KERNBINDIR=    ${RELEASEDIR}/binary/kernel
 
-release: check_RELEASEDIR .WAIT netbsd.gz ${IMAGE}.gz
-       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
-               ${IMAGE}.gz ${RELEASEDIR}${DISKBINDIR}
-       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
-               netbsd.gz ${RELEASEDIR}${KERNBINDIR}/install.gz
-       ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
-               netbsd.ecoff.gz ${RELEASEDIR}${KERNBINDIR}/install.ecoff.gz
+release: check_RELEASEDIR .WAIT ${KERNELS} ${IMAGE}.gz
+       -mkdir -p ${DISKBINDIR} ${KERNBINDIR}
+       ${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
+       ${RELINSTALL} netbsd.gz ${KERNBINDIR}/install.gz
+       ${RELINSTALL} netbsd.ecoff.gz ${KERNBINDIR}/install.ecoff.gz
 
 
 .include "${DISTRIBDIR}/common/Makefile.image"
+.include "${DISTRIBDIR}/common/Makefile.mdset"
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index