head	1.18;
access;
symbols
	netbsd-11-0-RC4:1.18
	netbsd-11-0-RC3:1.18
	netbsd-11-0-RC2:1.18
	netbsd-11-0-RC1:1.18
	perseant-exfatfs-base-20250801:1.18
	netbsd-11:1.18.0.14
	netbsd-11-base:1.18
	netbsd-10-1-RELEASE:1.18
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.12
	perseant-exfatfs-base:1.18
	netbsd-8-3-RELEASE:1.17
	netbsd-9-4-RELEASE:1.18
	netbsd-10-0-RELEASE:1.18
	netbsd-10-0-RC6:1.18
	netbsd-10-0-RC5:1.18
	netbsd-10-0-RC4:1.18
	netbsd-10-0-RC3:1.18
	netbsd-10-0-RC2:1.18
	netbsd-10-0-RC1:1.18
	netbsd-10:1.18.0.10
	netbsd-10-base:1.18
	netbsd-9-3-RELEASE:1.18
	cjep_sun2x-base1:1.18
	cjep_sun2x:1.18.0.8
	cjep_sun2x-base:1.18
	cjep_staticlib_x-base1:1.18
	netbsd-9-2-RELEASE:1.18
	cjep_staticlib_x:1.18.0.6
	cjep_staticlib_x-base:1.18
	netbsd-9-1-RELEASE:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	is-mlppp:1.18.0.4
	is-mlppp-base:1.18
	phil-wifi-20200406:1.18
	netbsd-8-2-RELEASE:1.17
	netbsd-9-0-RELEASE:1.18
	netbsd-9-0-RC2:1.18
	netbsd-9-0-RC1:1.18
	phil-wifi-20191119:1.18
	netbsd-9:1.18.0.2
	netbsd-9-base:1.18
	phil-wifi-20190609:1.18
	netbsd-8-1-RELEASE:1.17
	netbsd-8-1-RC1:1.17
	pgoyette-compat-merge-20190127:1.17.14.1
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.16
	pgoyette-compat-0728:1.17
	netbsd-8-0-RELEASE:1.17
	phil-wifi:1.17.0.16
	phil-wifi-base:1.17
	pgoyette-compat-0625:1.17
	netbsd-8-0-RC2:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	netbsd-8-0-RC1:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	netbsd-7-1-2-RELEASE:1.16
	pgoyette-compat:1.17.0.14
	pgoyette-compat-base:1.17
	netbsd-7-1-1-RELEASE:1.16
	matt-nb8-mediatek:1.17.0.12
	matt-nb8-mediatek-base:1.17
	perseant-stdc-iso10646:1.17.0.10
	perseant-stdc-iso10646-base:1.17
	netbsd-8:1.17.0.8
	netbsd-8-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.6
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	netbsd-7-1:1.16.0.32
	netbsd-7-1-RELEASE:1.16
	netbsd-7-1-RC2:1.16
	netbsd-7-nhusb-base-20170116:1.16
	bouyer-socketcan:1.17.0.4
	bouyer-socketcan-base:1.17
	pgoyette-localcount-20170107:1.17
	netbsd-7-1-RC1:1.16
	pgoyette-localcount-20161104:1.17
	netbsd-7-0-2-RELEASE:1.16
	localcount-20160914:1.17
	netbsd-7-nhusb:1.16.0.30
	netbsd-7-nhusb-base:1.16
	pgoyette-localcount-20160806:1.17
	pgoyette-localcount-20160726:1.17
	pgoyette-localcount:1.17.0.2
	pgoyette-localcount-base:1.17
	netbsd-7-0-1-RELEASE:1.16
	netbsd-7-0:1.16.0.28
	netbsd-7-0-RELEASE:1.16
	netbsd-7-0-RC3:1.16
	netbsd-7-0-RC2:1.16
	netbsd-7-0-RC1:1.16
	netbsd-5-2-3-RELEASE:1.15
	netbsd-5-1-5-RELEASE:1.15
	netbsd-6-0-6-RELEASE:1.16
	netbsd-6-1-5-RELEASE:1.16
	netbsd-7:1.16.0.26
	netbsd-7-base:1.16
	yamt-pagecache-base9:1.16
	yamt-pagecache-tag8:1.16
	netbsd-6-1-4-RELEASE:1.16
	netbsd-6-0-5-RELEASE:1.16
	tls-earlyentropy:1.16.0.24
	tls-earlyentropy-base:1.16
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.16
	riastradh-drm2-base3:1.16
	netbsd-6-1-3-RELEASE:1.16
	netbsd-6-0-4-RELEASE:1.16
	netbsd-5-2-2-RELEASE:1.15
	netbsd-5-1-4-RELEASE:1.15
	netbsd-6-1-2-RELEASE:1.16
	netbsd-6-0-3-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.15
	netbsd-5-1-3-RELEASE:1.15
	netbsd-6-1-1-RELEASE:1.16
	riastradh-drm2-base2:1.16
	riastradh-drm2-base1:1.16
	riastradh-drm2:1.16.0.16
	riastradh-drm2-base:1.16
	netbsd-6-1:1.16.0.22
	netbsd-6-0-2-RELEASE:1.16
	netbsd-6-1-RELEASE:1.16
	khorben-n900:1.16.0.20
	netbsd-6-1-RC4:1.16
	netbsd-6-1-RC3:1.16
	agc-symver:1.16.0.18
	agc-symver-base:1.16
	netbsd-6-1-RC2:1.16
	netbsd-6-1-RC1:1.16
	yamt-pagecache-base8:1.16
	netbsd-5-2:1.15.0.52
	netbsd-6-0-1-RELEASE:1.16
	yamt-pagecache-base7:1.16
	netbsd-5-2-RELEASE:1.15
	netbsd-5-2-RC1:1.15
	matt-nb6-plus-nbase:1.16
	yamt-pagecache-base6:1.16
	netbsd-6-0:1.16.0.14
	netbsd-6-0-RELEASE:1.16
	netbsd-6-0-RC2:1.16
	tls-maxphys:1.16.0.12
	tls-maxphys-base:1.16
	matt-nb6-plus:1.16.0.10
	matt-nb6-plus-base:1.16
	netbsd-6-0-RC1:1.16
	yamt-pagecache-base5:1.16
	yamt-pagecache-base4:1.16
	netbsd-6:1.16.0.8
	netbsd-6-base:1.16
	netbsd-5-1-2-RELEASE:1.15
	netbsd-5-1-1-RELEASE:1.15
	yamt-pagecache-base3:1.16
	yamt-pagecache-base2:1.16
	yamt-pagecache:1.16.0.6
	yamt-pagecache-base:1.16
	cherry-xenmp:1.16.0.4
	cherry-xenmp-base:1.16
	bouyer-quota2-nbase:1.16
	bouyer-quota2:1.16.0.2
	bouyer-quota2-base:1.16
	matt-mips64-premerge-20101231:1.16
	matt-nb5-mips64-premerge-20101231:1.15
	matt-nb5-pq3:1.15.0.50
	matt-nb5-pq3-base:1.15
	netbsd-5-1:1.15.0.48
	netbsd-5-1-RELEASE:1.15
	netbsd-5-1-RC4:1.15
	matt-nb5-mips64-k15:1.15
	netbsd-5-1-RC3:1.15
	netbsd-5-1-RC2:1.15
	netbsd-5-1-RC1:1.15
	netbsd-5-0-2-RELEASE:1.15
	matt-nb5-mips64-premerge-20091211:1.15
	matt-premerge-20091211:1.15
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.15
	matt-nb4-mips64-k7-u2a-k9b:1.15
	matt-nb5-mips64-u1-k1-k5:1.15
	matt-nb5-mips64:1.15.0.46
	netbsd-5-0-1-RELEASE:1.15
	jym-xensuspend-nbase:1.15
	netbsd-5-0:1.15.0.44
	netbsd-5-0-RELEASE:1.15
	netbsd-5-0-RC4:1.15
	netbsd-5-0-RC3:1.15
	netbsd-5-0-RC2:1.15
	jym-xensuspend:1.15.0.42
	jym-xensuspend-base:1.15
	netbsd-5-0-RC1:1.15
	netbsd-5:1.15.0.40
	netbsd-5-base:1.15
	matt-mips64-base2:1.15
	matt-mips64:1.15.0.38
	netbsd-4-0-1-RELEASE:1.15
	wrstuden-revivesa-base-3:1.15
	wrstuden-revivesa-base-2:1.15
	wrstuden-fixsa-newbase:1.15
	wrstuden-revivesa-base-1:1.15
	yamt-pf42-base4:1.15
	yamt-pf42-base3:1.15
	hpcarm-cleanup-nbase:1.15
	yamt-pf42-baseX:1.15
	yamt-pf42-base2:1.15
	wrstuden-revivesa:1.15.0.36
	wrstuden-revivesa-base:1.15
	yamt-pf42:1.15.0.34
	yamt-pf42-base:1.15
	mjf-devfs2:1.15.0.32
	mjf-devfs2-base:1.15
	keiichi-mipv6:1.15.0.30
	keiichi-mipv6-base:1.15
	mjf-devfs:1.15.0.28
	mjf-devfs-base:1.15
	matt-armv6-nbase:1.15
	matt-armv6-prevmlocking:1.15
	wrstuden-fixsa-base-1:1.15
	netbsd-4-0:1.15.0.26
	netbsd-4-0-RELEASE:1.15
	cube-autoconf:1.15.0.24
	cube-autoconf-base:1.15
	netbsd-4-0-RC5:1.15
	netbsd-4-0-RC4:1.15
	netbsd-4-0-RC3:1.15
	netbsd-4-0-RC2:1.15
	netbsd-4-0-RC1:1.15
	matt-armv6:1.15.0.22
	matt-armv6-base:1.15
	matt-mips64-base:1.15
	hpcarm-cleanup:1.15.0.20
	hpcarm-cleanup-base:1.15
	netbsd-3-1-1-RELEASE:1.15
	netbsd-3-0-3-RELEASE:1.15
	wrstuden-fixsa:1.15.0.18
	wrstuden-fixsa-base:1.15
	abandoned-netbsd-4-base:1.15
	abandoned-netbsd-4:1.15.0.12
	netbsd-3-1:1.15.0.14
	netbsd-3-1-RELEASE:1.15
	netbsd-3-0-2-RELEASE:1.15
	netbsd-3-1-RC4:1.15
	netbsd-3-1-RC3:1.15
	netbsd-3-1-RC2:1.15
	netbsd-3-1-RC1:1.15
	netbsd-4:1.15.0.16
	netbsd-4-base:1.15
	netbsd-3-0-1-RELEASE:1.15
	netbsd-3-0:1.15.0.10
	netbsd-3-0-RELEASE:1.15
	netbsd-3-0-RC6:1.15
	netbsd-3-0-RC5:1.15
	netbsd-3-0-RC4:1.15
	netbsd-3-0-RC3:1.15
	netbsd-3-0-RC2:1.15
	netbsd-3-0-RC1:1.15
	netbsd-2-0-3-RELEASE:1.15
	netbsd-2-1:1.15.0.8
	netbsd-2-1-RELEASE:1.15
	netbsd-2-1-RC6:1.15
	netbsd-2-1-RC5:1.15
	netbsd-2-1-RC4:1.15
	netbsd-2-1-RC3:1.15
	netbsd-2-1-RC2:1.15
	netbsd-2-1-RC1:1.15
	netbsd-2-0-2-RELEASE:1.15
	netbsd-3:1.15.0.6
	netbsd-3-base:1.15
	netbsd-2-0-1-RELEASE:1.15
	netbsd-2:1.15.0.4
	netbsd-2-base:1.15
	netbsd-2-0-RELEASE:1.15
	netbsd-2-0-RC5:1.15
	netbsd-2-0-RC4:1.15
	netbsd-2-0-RC3:1.15
	netbsd-2-0-RC2:1.15
	netbsd-2-0-RC1:1.15
	netbsd-2-0:1.15.0.2
	netbsd-2-0-base:1.15
	netbsd-1-6-PATCH002-RELEASE:1.14
	netbsd-1-6-PATCH002:1.14
	netbsd-1-6-PATCH002-RC4:1.14
	netbsd-1-6-PATCH002-RC3:1.14
	netbsd-1-6-PATCH002-RC2:1.14
	netbsd-1-6-PATCH002-RC1:1.14
	netbsd-1-6-PATCH001:1.14
	netbsd-1-6-PATCH001-RELEASE:1.14
	netbsd-1-6-PATCH001-RC3:1.14
	netbsd-1-6-PATCH001-RC2:1.14
	netbsd-1-6-PATCH001-RC1:1.14
	fvdl_fs64_base:1.15
	netbsd-1-6-RELEASE:1.14
	netbsd-1-6-RC3:1.14
	netbsd-1-6-RC2:1.14
	netbsd-1-6-RC1:1.14
	netbsd-1-6:1.14.0.2
	netbsd-1-6-base:1.14;
locks; strict;
comment	@# @;


1.18
date	2019.01.01.19.09.12;	author christos;	state Exp;
branches;
next	1.17;
commitid	p5qKj2TcH0wb576B;

1.17
date	2016.02.20.16.42.33;	author christos;	state Exp;
branches
	1.17.14.1
	1.17.16.1;
next	1.16;
commitid	lAQ4FP7gvwmzTFVy;

1.16
date	2009.12.20.19.53.36;	author mrg;	state Exp;
branches;
next	1.15;

1.15
date	2002.12.11.15.52.47;	author lukem;	state Exp;
branches
	1.15.32.1;
next	1.14;

1.14
date	2002.05.08.21.44.56;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2002.05.03.15.22.55;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.03.14.20.55;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2002.05.02.18.02.42;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	2002.04.26.15.50.38;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2002.04.14.06.18.13;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.14.01.41.24;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2002.04.12.13.54.50;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2002.02.09.13.56.51;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2001.11.04.06.18.26;	author wdk;	state Exp;
branches;
next	1.4;

1.4
date	2001.10.21.23.23.21;	author jmc;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.05.05.07.45;	author wdk;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.25.03.36.20;	author wdk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.19.07.45.39;	author wdk;	state Exp;
branches;
next	;

1.17.14.1
date	2019.01.18.08.48.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.17.16.1
date	2019.06.10.21.42.25;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.15.32.1
date	2008.10.05.20.10.23;	author mjf;	state dead;
branches;
next	;


desc
@@


1.18
log
@Rename ELF2ECOFF -> MIPS_ELF2ECOFF
@
text
@#	$NetBSD: Makefile,v 1.17 2016/02/20 16:42:33 christos Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

.include <bsd.kernobj.mk>

IMAGE=		diskimage
IMAGESIZE=	3m
LISTS=		${.CURDIR}/list
MTREECONF=	${DISTRIBDIR}/common/mtree.dot
IMAGEENDIAN=	be
PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootxx_ffs
IMAGEDEPENDS=	netbsd-INSTALL.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}

# XXXDISTRIB: disabled because it's not cross friendly...
# C.f, [port-mips/19349]
#
#IMAGEPOSTBUILD=	${DESTDIR}/usr/mdec/installboot ${IMAGE} ${PRIMARYBOOT}

RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK=	${RAMDISKDIR}/ramdisk.fs

MDSETTARGETS=		RAMDISK ${RAMDISK} netbsd-INSTALL
MDSET_RELEASEDIR=	binary/kernel

MDSET_SUFFIXES.netbsd-INSTALL=	ecoff create-ecoff
create-ecoff=			${MIPS_ELF2ECOFF} ${.TARGET:R} ${.TARGET}

IMAGE_RELEASEDIR=	installation/diskimage

.include "${DISTRIBDIR}/common/Makefile.image"
.include "${DISTRIBDIR}/common/Makefile.mdset"

.include <bsd.prog.mk>
@


1.17
log
@Bump size.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2009/12/20 19:53:36 mrg Exp $
d28 1
a28 1
create-ecoff=			${ELF2ECOFF} ${.TARGET:R} ${.TARGET}
@


1.17.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2019/01/01 19:09:12 christos Exp $
d28 1
a28 1
create-ecoff=			${MIPS_ELF2ECOFF} ${.TARGET:R} ${.TARGET}
@


1.17.14.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2016/02/20 16:42:33 christos Exp $
d28 1
a28 1
create-ecoff=			${MIPS_ELF2ECOFF} ${.TARGET:R} ${.TARGET}
@


1.16
log
@create the ecoff copy of the install kernel so the prom can boot it.
from PR 39915.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2002/12/11 15:52:47 lukem Exp $
d9 1
a9 1
IMAGESIZE=	2m
@


1.15
log
@Disable  IMAGEPOSTBUILD=${DESTDIR}/usr/mdec/installboot
since it's not cross friendly.
The release should now cross-build again...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2002/05/08 21:44:56 lukem Exp $
a26 1
.if defined(ECOFF_KERNEL)
a28 1
.endif # ECOFF_KERNEL
@


1.15.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2002/12/11 15:52:47 lukem Exp $
@


1.14
log
@- whitespace consistency cleanup
- build (mdset/nm/strip) into ${filename} as one rule, and move ${filename}.gz
  into separate rule
- rename MDSET.${filename}.nosymbols -> MDSET_NOSYMBOLS.${filename}
- rename MDSET.${filename}.post -> MDSET_POST.${filename}, and don't do
  suffix handling here
- rework suffix handling:
	- rename MDSET.${filename}.suffixes -> MDSET_SUFFIXES.${filename},
	  and change from list of suffixes to list of "suffix cmdtobuildsuffix",
  	  where cmdtobuildsuffix is the name of the variable containing the
	  command to build ${filename}.${suffix} (available as "${.TARGET}").
	- for each ${filename}.${suffix}, depend upon ${filename} and use
	  ${cmdtobuildsuffix} to create the former.
	- add separate ${filename}.${suffix}.gz rule
- mipsco & pmax: rename "install.gz" to "netbsd-INSTALL.gz", for
  consistency and so the target to build the mdset kernel doesn't get
  confused with general "install" target
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2002/05/03 15:22:55 lukem Exp $
d15 5
a19 1
IMAGEPOSTBUILD=	${DESTDIR}/usr/mdec/installboot ${IMAGE} ${PRIMARYBOOT}	# XXXDISTRIB
@


1.13
log
@rather than blocking parallel mdset builds with .WAIT, replace usage of
"netbsd.tmp" with "${.TARGET:R}" (et al)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/05/03 14:20:55 lukem Exp $
d14 1
a14 1
IMAGEDEPENDS=	install.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}
a18 1
MDSETTARGETS=	RAMDISK ${RAMDISK} install
d20 1
a21 1
IMAGE_RELEASEDIR=	installation/diskimage
d24 2
a25 3
MDSET.install.suffixes=	ecoff
MDSET.install.post=	${ELF2ECOFF} ${.TARGET:R} ${.TARGET:R}.ecoff && \
			gzip -9f ${.TARGET:R}.ecoff
d27 2
@


1.12
log
@provide common/mtree.dot (contains entry for ". type=dir ...") , and
use that rather than MTREE entry in the list, because Makefile.image
needs at least one mtree file anyway
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2002/05/02 18:02:42 lukem Exp $
d26 2
a27 2
MDSET.install.post=	${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \
			gzip -9f netbsd.ecoff
@


1.11
log
@yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2002/04/26 15:50:38 lukem Exp $
d11 1
@


1.10
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/04/14 06:18:13 lukem Exp $
d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d12 3
a14 1
IMAGEDEPENDS=	install.gz ${DESTDIR}/usr/mdec/boot
d20 3
a27 23

PRIMARYBOOT=	${DESTDIR}/usr/mdec/bootxx_ffs

${IMAGE}.gz:	${IMAGE} ${PRIMARYBOOT}
# XXX	${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
		# XXXDISTRIB
	${DESTDIR}/usr/mdec/installboot ${IMAGE} ${PRIMARYBOOT}
	gzip -9f ${IMAGE}

CLEANFILES+=	${IMAGE}.gz


realall: ${KERNELDEPS} ${IMAGE}.gz


DISKBINDIR=	${RELEASEDIR}/installation/diskimage
KERNBINDIR=	${RELEASEDIR}/binary/kernel

release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELDEPS}
	-mkdir -p ${DISKBINDIR} ${KERNBINDIR}
	${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
	${RELINSTALL} ${KERNELS} ${KERNBINDIR}

@


1.9
log
@Makefile.mdset: add ${KERNELDEPS} variable which is ${KERNELS} with
.WAIT between the items, and remove .WAIT from ${KERNELS}.
Use ${KERNELDEPS} in make dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2002/04/14 01:41:24 lukem Exp $
d4 1
a4 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.8
log
@- Rename Makefile.mdset variables:
	MDEXTRA_SUFFIXES.${KERNEL} 	-> MDSET.${FILENAME}.suffixes
	${KERNEL.${_K}}.post		-> MDSET.${FILENAME}.post
  This allows "default" rules for for MDSETTARGETS with FILENAMEs of "-"
  by defined MDSET.-.post & MDSET.-.suffixes
- Document the above
- Use the above appropriately in various Makefiles
- Be a be quieter when building these kernels
- Add .WAIT syncs so that multiple kernels aren't built in parallel, because
  the temporary filename is the same, and it also avoid hairy magic in
  syncing the targets generated from MDSET.${FILENAME}.suffixes with
  the master target for that ${FILENAME}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2002/04/12 13:54:50 lukem Exp $
d35 1
a35 1
realall: ${KERNELS} ${IMAGE}.gz
d41 1
a41 1
release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELS}
@


1.7
log
@migrate to NDWO using Makefile.mdset, based on pmax/instkernel/Makefile
XXX: untested
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/02/09 13:56:51 lukem Exp $
d12 1
a12 1
IMAGEDEPENDS=	${KERNELS} ${DESTDIR}/usr/mdec/boot
d16 1
a16 1
MDSETTARGETS=	RAMDISK ${RAMDISK} netbsd
d19 3
a21 3
netbsd.post=	${ELF2ECOFF} netbsd.tmp netbsd.ecoff && gzip -9f netbsd.ecoff

CLEANFILES+=	netbsd.ecoff netbsd.ecoff.gz
d41 1
a41 1
release: check_RELEASEDIR .WAIT ${KERNELS} ${IMAGE}.gz
d44 1
a44 4
	${RELINSTALL} netbsd.gz ${KERNBINDIR}/install.gz
.if defined(ECOFF_KERNEL)
	${RELINSTALL} netbsd.ecoff.gz ${KERNBINDIR}/install.ecoff.gz
.endif # ECOFF_KERNEL
@


1.6
log
@don't set the owner or group when installing into $RELEASEDIR
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/11/04 06:18:26 wdk Exp $
a2 2
.include "../../../Makefile.inc"
.include <bsd.kernobj.mk>
d4 1
d6 1
a6 3
DISKBINDIR=	${RELEASEDIR}/installation/diskimage
KERNBINDIR=	${RELEASEDIR}/binary/kernel
MDSETIMAGE?=	mdsetimage
d9 13
a21 31
IMAGESIZE=	4096 # 512 byte blocks, update disktab.diskimage if changed
DISKTAB=	${.CURDIR}/disktab.diskimage
DISKTYPE=	miniroot
NEWFSOPTS?=	-c 32 -B be -i 32768	# don't need many inodes!

MDEC?=		${DESTDIR}/usr/mdec
BOOT_PRIMARY=	${MDEC}/bootxx_ffs
BOOT_SECONDARY=	${MDEC}/boot
INSTALLBOOT?=	${MDEC}/installboot	

KERN=		${KERNOBJDIR}/RAMDISK/netbsd
RAMDISK!=	cd ${.CURDIR}/../ramdisk; ${MAKE} echoimage
CLEANFILES=	netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz ${IMAGE}.gz

# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}c
VND_RDEV=	/dev/r${VND}c
#VND_GEOM=	512/18/2/$$((${IMAGESIZE} / (18 * 2)))

MOUNT_POINT?=	/mnt

realall:	${IMAGE}.gz

netbsd.gz: ${KERN} ${RAMDISK}
	cp ${KERN} netbsd
	${MDSETIMAGE} -v netbsd ${RAMDISK}
.ifdef ECOFF_KERNEL
	elf2ecoff netbsd netbsd.ecoff
	rm -f netbsd.ecoff.gz
	gzip -9 netbsd.ecoff
a22 2
	rm -f netbsd.gz
	gzip -9 netbsd
d24 18
a41 28
${IMAGE}.gz: netbsd.gz ${BOOT_PRIMARY} ${BOOT_SECONDARY}
	dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE}
	vnconfig ${DISKTYPEARG} -v -c ${VND} ${IMAGE} ${VND_GEOM}
	disklabel -rw -f ${DISKTAB} ${VND} ${DISKTYPE}
	newfs -B be -m 0 -o space ${NEWFSOPTS} ${VND_RDEV}
	${INSTALLBOOT} ${VND_RDEV} ${BOOT_PRIMARY}
	mount ${VND_DEV} ${MOUNT_POINT}
	cp -p ${BOOT_SECONDARY} ${MOUNT_POINT}
	cp -p netbsd.gz ${MOUNT_POINT}/netbsd
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}
	rm -f ${IMAGE}.gz
	gzip -9 ${IMAGE}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}
	-/bin/rm -f ${IMAGE} ${IMAGE}.gz

.if !defined(RELEASEDIR)
release: .USE
	@@echo setenv RELEASEDIR first!
	@@false
.else
release: ${IMAGE}.gz
d43 2
a44 4
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
		${IMAGE}.gz ${DISKBINDIR}
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
		netbsd.gz ${KERNBINDIR}/install.gz
d46 1
a46 2
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
		netbsd.ecoff.gz ${KERNBINDIR}/install.ecoff.gz
a47 1
.endif # RELEASEDIR
a48 1
realinstall: release
d50 2
a51 2
clean cleandir distclean:
	rm -f ${CLEANFILES}
d53 1
a53 1
.include <bsd.obj.mk>
@


1.5
log
@Remove duplicate .include
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/10/21 23:23:21 jmc Exp $
d76 4
a79 4
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
		-m ${NONBINMODE} ${IMAGE}.gz ${DISKBINDIR}
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
		-m ${BINMODE} netbsd.gz ${KERNBINDIR}/install.gz
d81 2
a82 3
	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \
		-m ${BINMODE} netbsd.ecoff.gz \
		${KERNBINDIR}/install.ecoff.gz
@


1.4
log
@Convert to using ${MDSETIMAGE}.

Provide a default value for $MDSETIMAGE and pull in bsd.own.mk to have
it overriden as needed for cross/-current builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/03/05 05:07:45 wdk Exp $
a92 1
.include <bsd.depall.mk>
@


1.3
log
@Ensure RELEASEDIR is set before make release.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/02/25 03:36:20 wdk Exp $
d9 1
d38 1
a38 1
	mdsetimage -v netbsd ${RAMDISK}
@


1.2
log
@- Add "make release" target
- Create directories in release stage area before installing target
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/02/19 07:45:39 wdk Exp $
d16 5
a28 2
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c
a32 6
#
# install bootblock, so that we can boot from there
#
BOOTINSTALL= ${DESTDIR}/usr/mdec/installboot ${VND_CDEV} \
	${DESTDIR}/usr/mdec/bootxx_ffs

d46 1
a46 1
${IMAGE}.gz: netbsd.gz ${DESTDIR}/usr/mdec/boot
a48 2
.ifdef notyet
	-disklabel ${VND} > /dev/null
d50 2
a51 3
.endif
	newfs -B be -m 0 -o space ${NEWFSOPTS} ${VND_DEV}
	${BOOTINSTALL}
d53 1
a53 1
	cp -p ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}
d68 6
a73 1
realinstall release:
d79 1
a79 1
.ifdef ECOFF_KERNEL
d83 4
a86 1
.endif #ECOFF_KERNEL
@


1.1
log
@Installation bootimage for NetBSD/mipsco

Currently supports Hard Disk boot only.   Mips Firmware cannot boot to
read-only media suchas CDROM drive
@
text
@d1 1
a1 1
#	$NetBSD$
d7 2
a8 2
DISKBINDIR=	/installation/diskimage
KERNBINDIR=	/binary/kernel
d36 1
a36 1
all:	${IMAGE}.gz
d74 2
a75 1
realinstall:
d77 1
a77 1
		-m ${NONBINMODE} ${IMAGE}.gz ${RELEASEDIR}${DISKBINDIR}
d79 1
a79 1
		-m ${BINMODE} netbsd.gz ${RELEASEDIR}${KERNBINDIR}/install.gz
d83 1
a83 1
		${RELEASEDIR}${KERNBINDIR}/install.ecoff.gz
a88 3
# XXX
depend:

d90 1
@

