From 58e532b9cd1b0fab26732024d44a6393334d6fe9 Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 12 Apr 2002 13:52:12 +0000 Subject: [PATCH] - use Makefile.mdset to build md kernel and bootable image - use ${RELINSTALL} instead of ${INSTALL} ... --- distrib/pmax/instkernel/Makefile | 65 ++++++++++++++------------------ 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/distrib/pmax/instkernel/Makefile b/distrib/pmax/instkernel/Makefile index 541c4777077a..598f32c1c040 100644 --- a/distrib/pmax/instkernel/Makefile +++ b/distrib/pmax/instkernel/Makefile @@ -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 +.include "${_SRC_TOP_}/distrib/Makefile.inc" + .include -DISKBINDIR= /installation/diskimage -KERNBINDIR= /binary/kernel - -KERN= ${KERNOBJDIR}/RAMDISK/netbsd -RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} -RAMDISK= ${RAMDISKDIR}/ramdisk.fs - IMAGE= diskimage -IMAGESIZE= 4096b -# MAKEFS_FLAGS= -o density=32k # XXXDISTRIB - +IMAGESIZE= 2m LISTS= ${.CURDIR}/list IMAGEENDIAN= le -IMAGEDEPENDS= netbsd.gz ${DESTDIR}/usr/mdec/boot.pmax +IMAGEDEPENDS= netbsd.gz ${DESTDIR}/usr/mdec/boot -CLEANFILES+= netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz \ - ${IMAGE} ${IMAGE}.gz +RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} +RAMDISK= ${RAMDISKDIR}/ramdisk.fs +MDSETTARGETS= RAMDISK ${RAMDISK} netbsd + +netbsd.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && gzip -9f netbsd.ecoff + +CLEANFILES+= netbsd.ecoff netbsd.ecoff.gz + +PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs + +${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