2002-04-14 05:41:24 +04:00
|
|
|
# $NetBSD: Makefile,v 1.26 2002/04/14 01:41:25 lukem Exp $
|
2000-05-02 20:06:45 +04:00
|
|
|
|
2000-06-01 10:54:57 +04:00
|
|
|
.include <bsd.own.mk>
|
2002-04-12 17:52:12 +04:00
|
|
|
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
|
|
|
|
2002-03-12 09:26:34 +03:00
|
|
|
.include <bsd.kernobj.mk>
|
1998-12-05 10:33:13 +03:00
|
|
|
|
2002-04-12 17:52:12 +04:00
|
|
|
IMAGE= diskimage
|
|
|
|
IMAGESIZE= 2m
|
|
|
|
LISTS= ${.CURDIR}/list
|
|
|
|
IMAGEENDIAN= le
|
2002-04-14 05:41:24 +04:00
|
|
|
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot
|
1998-12-05 10:33:13 +03:00
|
|
|
|
2002-03-12 09:26:34 +03:00
|
|
|
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
|
|
|
|
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
|
2002-04-14 05:41:24 +04:00
|
|
|
MDSETTARGETS= RAMDISK ${RAMDISK} install
|
2002-03-12 09:26:34 +03:00
|
|
|
|
2002-04-14 05:41:24 +04:00
|
|
|
MDSET.install.suffixes= ecoff
|
|
|
|
MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \
|
|
|
|
gzip -9f netbsd.ecoff
|
2002-04-12 17:52:12 +04:00
|
|
|
|
|
|
|
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
|
1999-04-16 20:01:33 +04:00
|
|
|
|
2002-04-12 17:52:12 +04:00
|
|
|
${IMAGE}.gz: ${IMAGE} ${PRIMARYBOOT}
|
|
|
|
${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
|
|
|
|
gzip -9f ${IMAGE}
|
1999-04-16 20:01:33 +04:00
|
|
|
|
2002-04-12 17:52:12 +04:00
|
|
|
CLEANFILES+= ${IMAGE}.gz
|
1998-12-05 10:33:13 +03:00
|
|
|
|
|
|
|
|
2002-04-12 17:52:12 +04:00
|
|
|
realall: ${KERNELS} ${IMAGE}.gz
|
1999-04-16 20:01:33 +04:00
|
|
|
|
2000-01-06 06:47:55 +03:00
|
|
|
|
2002-04-12 17:52:12 +04:00
|
|
|
DISKBINDIR= ${RELEASEDIR}/installation/diskimage
|
|
|
|
KERNBINDIR= ${RELEASEDIR}/binary/kernel
|
2002-03-12 09:26:34 +03:00
|
|
|
|
2002-04-14 05:41:24 +04:00
|
|
|
release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELS}
|
2002-04-12 17:52:12 +04:00
|
|
|
-mkdir -p ${DISKBINDIR} ${KERNBINDIR}
|
|
|
|
${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
|
2002-04-14 05:41:24 +04:00
|
|
|
${RELINSTALL} ${KERNELS} ${KERNBINDIR}
|
1999-04-27 16:03:39 +04:00
|
|
|
|
1998-12-05 10:33:13 +03:00
|
|
|
|
2002-03-12 09:26:34 +03:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
2002-04-12 17:52:12 +04:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.mdset"
|
1999-05-04 06:44:22 +04:00
|
|
|
|
2002-03-12 09:26:34 +03:00
|
|
|
.include <bsd.prog.mk>
|