head	1.38;
access;
symbols
	netbsd-11-0-RC4:1.37
	netbsd-11-0-RC3:1.37
	netbsd-11-0-RC2:1.37
	netbsd-11-0-RC1:1.37
	perseant-exfatfs-base-20250801:1.37
	netbsd-11:1.37.0.2
	netbsd-11-base:1.37
	netbsd-10-1-RELEASE:1.34
	perseant-exfatfs-base-20240630:1.34
	perseant-exfatfs:1.34.0.18
	perseant-exfatfs-base:1.34
	netbsd-8-3-RELEASE:1.33
	netbsd-9-4-RELEASE:1.34
	netbsd-10-0-RELEASE:1.34
	netbsd-10-0-RC6:1.34
	netbsd-10-0-RC5:1.34
	netbsd-10-0-RC4:1.34
	netbsd-10-0-RC3:1.34
	netbsd-10-0-RC2:1.34
	netbsd-10-0-RC1:1.34
	netbsd-10:1.34.0.16
	netbsd-10-base:1.34
	netbsd-9-3-RELEASE:1.34
	cjep_sun2x-base1:1.34
	cjep_sun2x:1.34.0.14
	cjep_sun2x-base:1.34
	cjep_staticlib_x-base1:1.34
	netbsd-9-2-RELEASE:1.34
	cjep_staticlib_x:1.34.0.12
	cjep_staticlib_x-base:1.34
	netbsd-9-1-RELEASE:1.34
	phil-wifi-20200421:1.34
	phil-wifi-20200411:1.34
	is-mlppp:1.34.0.10
	is-mlppp-base:1.34
	phil-wifi-20200406:1.34
	netbsd-8-2-RELEASE:1.33
	netbsd-9-0-RELEASE:1.34
	netbsd-9-0-RC2:1.34
	netbsd-9-0-RC1:1.34
	phil-wifi-20191119:1.34
	netbsd-9:1.34.0.8
	netbsd-9-base:1.34
	phil-wifi-20190609:1.34
	netbsd-8-1-RELEASE:1.33
	netbsd-8-1-RC1:1.33
	pgoyette-compat-merge-20190127:1.34
	pgoyette-compat-20190127:1.34
	pgoyette-compat-20190118:1.34
	pgoyette-compat-1226:1.34
	pgoyette-compat-1126:1.34
	pgoyette-compat-1020:1.34
	pgoyette-compat-0930:1.34
	pgoyette-compat-0906:1.34
	netbsd-7-2-RELEASE:1.33
	pgoyette-compat-0728:1.34
	netbsd-8-0-RELEASE:1.33
	phil-wifi:1.34.0.6
	phil-wifi-base:1.34
	pgoyette-compat-0625:1.34
	netbsd-8-0-RC2:1.33
	pgoyette-compat-0521:1.34
	pgoyette-compat-0502:1.34
	pgoyette-compat-0422:1.34
	netbsd-8-0-RC1:1.33
	pgoyette-compat-0415:1.34
	pgoyette-compat-0407:1.34
	pgoyette-compat-0330:1.34
	pgoyette-compat-0322:1.34
	pgoyette-compat-0315:1.34
	netbsd-7-1-2-RELEASE:1.33
	pgoyette-compat:1.34.0.4
	pgoyette-compat-base:1.34
	netbsd-7-1-1-RELEASE:1.33
	matt-nb8-mediatek:1.33.0.18
	matt-nb8-mediatek-base:1.33
	perseant-stdc-iso10646:1.34.0.2
	perseant-stdc-iso10646-base:1.34
	netbsd-8:1.33.0.16
	netbsd-8-base:1.33
	prg-localcount2-base3:1.33
	prg-localcount2-base2:1.33
	prg-localcount2-base1:1.33
	prg-localcount2:1.33.0.14
	prg-localcount2-base:1.33
	pgoyette-localcount-20170426:1.33
	bouyer-socketcan-base1:1.33
	pgoyette-localcount-20170320:1.33
	netbsd-7-1:1.33.0.12
	netbsd-7-1-RELEASE:1.33
	netbsd-7-1-RC2:1.33
	netbsd-7-nhusb-base-20170116:1.33
	bouyer-socketcan:1.33.0.10
	bouyer-socketcan-base:1.33
	pgoyette-localcount-20170107:1.33
	netbsd-7-1-RC1:1.33
	pgoyette-localcount-20161104:1.33
	netbsd-7-0-2-RELEASE:1.33
	localcount-20160914:1.33
	netbsd-7-nhusb:1.33.0.8
	netbsd-7-nhusb-base:1.33
	pgoyette-localcount-20160806:1.33
	pgoyette-localcount-20160726:1.33
	pgoyette-localcount:1.33.0.6
	pgoyette-localcount-base:1.33
	netbsd-7-0-1-RELEASE:1.33
	netbsd-7-0:1.33.0.4
	netbsd-7-0-RELEASE:1.33
	netbsd-7-0-RC3:1.33
	netbsd-7-0-RC2:1.33
	netbsd-7-0-RC1:1.33
	netbsd-5-2-3-RELEASE:1.26
	netbsd-5-1-5-RELEASE:1.26
	netbsd-6-0-6-RELEASE:1.29
	netbsd-6-1-5-RELEASE:1.29
	netbsd-7:1.33.0.2
	netbsd-7-base:1.33
	yamt-pagecache-base9:1.30
	yamt-pagecache-tag8:1.29
	netbsd-6-1-4-RELEASE:1.29
	netbsd-6-0-5-RELEASE:1.29
	tls-earlyentropy:1.30.0.2
	tls-earlyentropy-base:1.32
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.30
	riastradh-drm2-base3:1.30
	netbsd-6-1-3-RELEASE:1.29
	netbsd-6-0-4-RELEASE:1.29
	netbsd-5-2-2-RELEASE:1.26
	netbsd-5-1-4-RELEASE:1.26
	netbsd-6-1-2-RELEASE:1.29
	netbsd-6-0-3-RELEASE:1.29
	netbsd-5-2-1-RELEASE:1.26
	netbsd-5-1-3-RELEASE:1.26
	netbsd-6-1-1-RELEASE:1.29
	riastradh-drm2-base2:1.29
	riastradh-drm2-base1:1.29
	riastradh-drm2:1.29.0.16
	riastradh-drm2-base:1.29
	netbsd-6-1:1.29.0.22
	netbsd-6-0-2-RELEASE:1.29
	netbsd-6-1-RELEASE:1.29
	khorben-n900:1.29.0.20
	netbsd-6-1-RC4:1.29
	netbsd-6-1-RC3:1.29
	agc-symver:1.29.0.18
	agc-symver-base:1.29
	netbsd-6-1-RC2:1.29
	netbsd-6-1-RC1:1.29
	yamt-pagecache-base8:1.29
	netbsd-5-2:1.26.0.40
	netbsd-6-0-1-RELEASE:1.29
	yamt-pagecache-base7:1.29
	netbsd-5-2-RELEASE:1.26
	netbsd-5-2-RC1:1.26
	matt-nb6-plus-nbase:1.29
	yamt-pagecache-base6:1.29
	netbsd-6-0:1.29.0.14
	netbsd-6-0-RELEASE:1.29
	netbsd-6-0-RC2:1.29
	tls-maxphys:1.29.0.12
	tls-maxphys-base:1.33
	matt-nb6-plus:1.29.0.10
	matt-nb6-plus-base:1.29
	netbsd-6-0-RC1:1.29
	yamt-pagecache-base5:1.29
	yamt-pagecache-base4:1.29
	netbsd-6:1.29.0.8
	netbsd-6-base:1.29
	netbsd-5-1-2-RELEASE:1.26
	netbsd-5-1-1-RELEASE:1.26
	yamt-pagecache-base3:1.29
	yamt-pagecache-base2:1.29
	yamt-pagecache:1.29.0.6
	yamt-pagecache-base:1.29
	cherry-xenmp:1.29.0.4
	cherry-xenmp-base:1.29
	bouyer-quota2-nbase:1.29
	bouyer-quota2:1.29.0.2
	bouyer-quota2-base:1.29
	matt-mips64-premerge-20101231:1.29
	matt-nb5-mips64-premerge-20101231:1.26
	matt-nb5-pq3:1.26.0.38
	matt-nb5-pq3-base:1.26
	netbsd-5-1:1.26.0.36
	netbsd-5-1-RELEASE:1.26
	netbsd-5-1-RC4:1.26
	matt-nb5-mips64-k15:1.26
	netbsd-5-1-RC3:1.26
	netbsd-5-1-RC2:1.26
	netbsd-5-1-RC1:1.26
	netbsd-5-0-2-RELEASE:1.26
	matt-nb5-mips64-premerge-20091211:1.26
	matt-premerge-20091211:1.27
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.26
	matt-nb4-mips64-k7-u2a-k9b:1.26
	matt-nb5-mips64-u1-k1-k5:1.26
	matt-nb5-mips64:1.26.0.34
	netbsd-5-0-1-RELEASE:1.26
	jym-xensuspend-nbase:1.27
	netbsd-5-0:1.26.0.32
	netbsd-5-0-RELEASE:1.26
	netbsd-5-0-RC4:1.26
	netbsd-5-0-RC3:1.26
	netbsd-5-0-RC2:1.26
	jym-xensuspend:1.26.0.30
	jym-xensuspend-base:1.27
	netbsd-5-0-RC1:1.26
	netbsd-5:1.26.0.28
	netbsd-5-base:1.26
	matt-mips64-base2:1.26
	matt-mips64:1.26.0.26
	netbsd-4-0-1-RELEASE:1.26
	wrstuden-revivesa-base-3:1.26
	wrstuden-revivesa-base-2:1.26
	wrstuden-fixsa-newbase:1.26
	wrstuden-revivesa-base-1:1.26
	yamt-pf42-base4:1.26
	yamt-pf42-base3:1.26
	hpcarm-cleanup-nbase:1.26
	yamt-pf42-baseX:1.26
	yamt-pf42-base2:1.26
	wrstuden-revivesa:1.26.0.24
	wrstuden-revivesa-base:1.26
	yamt-pf42:1.26.0.22
	yamt-pf42-base:1.26
	mjf-devfs2:1.26.0.20
	mjf-devfs2-base:1.26
	keiichi-mipv6:1.26.0.18
	keiichi-mipv6-base:1.26
	mjf-devfs:1.26.0.16
	mjf-devfs-base:1.26
	matt-armv6-nbase:1.26
	matt-armv6-prevmlocking:1.26
	wrstuden-fixsa-base-1:1.26
	netbsd-4-0:1.26.0.14
	netbsd-4-0-RELEASE:1.26
	cube-autoconf:1.26.0.12
	cube-autoconf-base:1.26
	netbsd-4-0-RC5:1.26
	netbsd-4-0-RC4:1.26
	netbsd-4-0-RC3:1.26
	netbsd-4-0-RC2:1.26
	netbsd-4-0-RC1:1.26
	matt-armv6:1.26.0.10
	matt-armv6-base:1.26
	matt-mips64-base:1.26
	hpcarm-cleanup:1.26.0.8
	hpcarm-cleanup-base:1.26
	netbsd-3-1-1-RELEASE:1.25
	netbsd-3-0-3-RELEASE:1.25
	wrstuden-fixsa:1.26.0.6
	wrstuden-fixsa-base:1.26
	abandoned-netbsd-4-base:1.26
	abandoned-netbsd-4:1.26.0.2
	netbsd-3-1:1.25.0.6
	netbsd-3-1-RELEASE:1.25
	netbsd-3-0-2-RELEASE:1.25
	netbsd-3-1-RC4:1.25
	netbsd-3-1-RC3:1.25
	netbsd-3-1-RC2:1.25
	netbsd-3-1-RC1:1.25
	netbsd-4:1.26.0.4
	netbsd-4-base:1.26
	netbsd-3-0-1-RELEASE:1.25
	netbsd-3-0:1.25.0.4
	netbsd-3-0-RELEASE:1.25
	netbsd-3-0-RC6:1.25
	netbsd-3-0-RC5:1.25
	netbsd-3-0-RC4:1.25
	netbsd-3-0-RC3:1.25
	netbsd-3-0-RC2:1.25
	netbsd-3-0-RC1:1.25
	netbsd-2-0-3-RELEASE:1.22.2.3
	netbsd-2-1:1.22.2.3.0.4
	netbsd-2-1-RELEASE:1.22.2.3
	netbsd-2-1-RC6:1.22.2.3
	netbsd-2-1-RC5:1.22.2.3
	netbsd-2-1-RC4:1.22.2.3
	netbsd-2-1-RC3:1.22.2.3
	netbsd-2-1-RC2:1.22.2.3
	netbsd-2-1-RC1:1.22.2.3
	netbsd-2-0-2-RELEASE:1.22.2.3
	netbsd-3:1.25.0.2
	netbsd-3-base:1.25
	netbsd-2-0-1-RELEASE:1.22.2.3
	netbsd-2:1.22.2.3.0.2
	netbsd-2-base:1.22.2.3
	netbsd-2-0-RELEASE:1.22.2.3
	netbsd-2-0-RC5:1.22.2.3
	netbsd-2-0-RC4:1.22.2.3
	netbsd-2-0-RC3:1.22.2.3
	netbsd-2-0-RC2:1.22.2.3
	netbsd-2-0-RC1:1.22.2.3
	netbsd-2-0:1.22.0.2
	netbsd-2-0-base:1.22
	netbsd-1-6-PATCH002-RELEASE:1.21
	netbsd-1-6-PATCH002:1.21
	netbsd-1-6-PATCH002-RC4:1.21
	netbsd-1-6-PATCH002-RC3:1.21
	netbsd-1-6-PATCH002-RC2:1.21
	netbsd-1-6-PATCH002-RC1:1.21
	netbsd-1-6-PATCH001:1.21
	netbsd-1-6-PATCH001-RELEASE:1.21
	netbsd-1-6-PATCH001-RC3:1.21
	netbsd-1-6-PATCH001-RC2:1.21
	netbsd-1-6-PATCH001-RC1:1.21
	fvdl_fs64_base:1.21
	netbsd-1-6-RELEASE:1.21
	netbsd-1-6-RC3:1.21
	netbsd-1-6-RC2:1.21
	netbsd-1-6-RC1:1.21
	netbsd-1-6:1.21.0.2
	netbsd-1-6-base:1.21
	netbsd-1-5-PATCH003:1.2.2.3
	netbsd-1-5-PATCH002:1.2.2.2
	netbsd-1-5-PATCH001:1.2.2.2
	netbsd-1-5:1.2.0.2;
locks; strict;
comment	@# @;


1.38
date	2026.04.10.15.04.42;	author christos;	state Exp;
branches;
next	1.37;
commitid	TikjSb9D28shmqBG;

1.37
date	2025.07.24.13.10.27;	author christos;	state Exp;
branches;
next	1.36;
commitid	r9LtVtjeRkBa504G;

1.36
date	2025.02.01.12.40.54;	author martin;	state Exp;
branches;
next	1.35;
commitid	uMMOFL6KiKsMtLHF;

1.35
date	2025.01.09.19.09.47;	author martin;	state Exp;
branches;
next	1.34;
commitid	v3HAhAfcB441nQEF;

1.34
date	2017.07.17.14.36.13;	author hannken;	state Exp;
branches
	1.34.2.1
	1.34.18.1;
next	1.33;
commitid	13IgXoQXSIMPHAZz;

1.33
date	2014.08.10.14.42.33;	author martin;	state Exp;
branches;
next	1.32;
commitid	XGMPZHBB3EzpcPLx;

1.32
date	2014.08.05.15.40.58;	author apb;	state Exp;
branches;
next	1.31;
commitid	1Qp6Y0KwxUnrGbLx;

1.31
date	2014.05.27.19.04.29;	author palle;	state Exp;
branches;
next	1.30;
commitid	xoZzirJgJNEL3dCx;

1.30
date	2014.01.27.08.18.07;	author apb;	state Exp;
branches
	1.30.2.1;
next	1.29;
commitid	wwPlzP7Kwl0vkJmx;

1.29
date	2010.03.12.23.07.13;	author martin;	state Exp;
branches
	1.29.6.1
	1.29.12.1;
next	1.28;

1.28
date	2010.01.05.18.36.16;	author he;	state Exp;
branches;
next	1.27;

1.27
date	2009.04.03.22.36.35;	author perry;	state Exp;
branches;
next	1.26;

1.26
date	2006.05.09.19.10.43;	author he;	state Exp;
branches
	1.26.20.1
	1.26.30.1;
next	1.25;

1.25
date	2004.07.02.03.11.26;	author jmc;	state Exp;
branches;
next	1.24;

1.24
date	2004.05.24.18.17.45;	author hannken;	state Exp;
branches;
next	1.23;

1.23
date	2004.04.21.21.19.51;	author dsl;	state Exp;
branches;
next	1.22;

1.22
date	2003.07.10.10.34.15;	author lukem;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2002.05.14.06.21.22;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2002.05.08.23.11.57;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	2002.05.08.07.57.10;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2002.05.07.14.44.06;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2002.05.07.14.41.37;	author lukem;	state Exp;
branches;
next	1.16;

1.16
date	2002.05.02.18.02.56;	author lukem;	state Exp;
branches;
next	1.15;

1.15
date	2002.03.28.14.47.10;	author rafal;	state Exp;
branches;
next	1.14;

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

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

1.12
date	2002.01.21.13.46.26;	author mrg;	state Exp;
branches;
next	1.11;

1.11
date	2002.01.20.05.57.10;	author mrg;	state Exp;
branches;
next	1.10;

1.10
date	2001.12.26.15.18.24;	author mason;	state Exp;
branches;
next	1.9;

1.9
date	2001.12.04.18.14.20;	author jmc;	state Exp;
branches;
next	1.8;

1.8
date	2001.10.21.23.23.23;	author jmc;	state Exp;
branches;
next	1.7;

1.7
date	2001.10.13.06.15.20;	author jmc;	state Exp;
branches;
next	1.6;

1.6
date	2001.10.10.05.13.55;	author enami;	state Exp;
branches;
next	1.5;

1.5
date	2001.08.23.17.19.49;	author mrg;	state Exp;
branches;
next	1.4;

1.4
date	2001.08.23.17.14.40;	author eeh;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.21.06.01.03;	author eeh;	state Exp;
branches;
next	1.2;

1.2
date	2001.01.07.09.33.17;	author mrg;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2001.01.07.09.30.19;	author mrg;	state Exp;
branches;
next	;

1.34.2.1
date	2017.07.17.14.36.13;	author hannken;	state dead;
branches;
next	1.34.2.2;

1.34.2.2
date	2017.07.17.14.36.14;	author hannken;	state Exp;
branches;
next	;

1.34.18.1
date	2025.08.02.05.20.40;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.30.2.1
date	2014.08.10.06.48.45;	author tls;	state Exp;
branches;
next	;
commitid	tnOltPFlB36UzMLx;

1.29.6.1
date	2014.05.22.12.01.34;	author yamt;	state Exp;
branches;
next	;
commitid	yqlfOuaAhYmASwBx;

1.29.12.1
date	2014.08.19.23.45.45;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.26.20.1
date	2008.10.05.20.10.38;	author mjf;	state dead;
branches;
next	;

1.26.30.1
date	2009.05.13.19.17.55;	author jym;	state Exp;
branches;
next	;

1.22.2.1
date	2004.04.22.07.47.42;	author tron;	state Exp;
branches;
next	1.22.2.2;

1.22.2.2
date	2004.05.25.01.30.35;	author jmc;	state Exp;
branches;
next	1.22.2.3;

1.22.2.3
date	2004.07.02.18.07.23;	author he;	state Exp;
branches;
next	;

1.2.2.1
date	2001.01.07.09.33.17;	author he;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2001.02.03.20.21.26;	author he;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2002.03.25.17.33.03;	author he;	state Exp;
branches;
next	;


desc
@@


1.38
log
@bump
@
text
@#	$NetBSD: Makefile,v 1.37 2025/07/24 13:10:27 christos Exp $

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

.include <bsd.kernobj.mk>

.include "${.CURDIR}/../instfs/Makefile.instfs"
IMAGE=		miniroot.fs
NUMCYLS=	20 	# size of image in MB, tune this if we need more space
			# (slightly bigger than ../instfs IMGSIZE)
SECSPERCYL=	2048
CYLSIZE=	$$(( ${SECSPERCYL} * 512 ))
IMAGESIZE=	$$(( ${NUMCYLS} * ${CYLSIZE} ))
IMAGEPOSTBUILD=	\
	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
		${DESTDIR}/usr/mdec/bootblk && \
	echo "Creating disklabel" && \
	printf 'V nsect %d\nV nhead 1\nV rpm 7200\nV pcyl %d\nV ncyl %d\na 0 %d/0/0\nc 0 %d/0/0\nd 0 %d/0/0\nW\nL\nP\n' \
		${SECSPERCYL} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} | \
	${TOOL_SUNLABEL} -nq ${IMAGE}

IMAGE_RELEASEDIR=	installation/miniroot

CRUNCHBINDIR!=		cd ${INSTFSDIR} && ${PRINTOBJDIR}
LISTS+=			${.CURDIR}/list.miniroot
IMAGEDEPENDS+=		netbsd.gz

${CRUNCHBIN}: ${CRUNCHBINDIR}/${CRUNCHBIN}
	mkdir -p sysinst
	cp -p ${CRUNCHBINDIR}/sysinst/sysinstmsgs.* sysinst
	cp ${.ALLSRC} ${.TARGET}

netbsd.gz: ${KERNOBJDIR}/GENERIC/netbsd
	-rm -f ${.TARGET}
	${TOOL_GZIP_N} -9c ${.ALLSRC} > ${.TARGET}

clean:	localclean

localclean:
	rm -rf sysinst

CLEANFILES+=	${CRUNCHBIN} netbsd.gz

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

.include <bsd.prog.mk>
@


1.37
log
@bump for clang/llvm
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2025/02/01 12:40:54 martin Exp $
d10 1
a10 1
NUMCYLS=	19 	# size of image in MB, tune this if we need more space
@


1.36
log
@Bump image to 18MB, llvm generates larger code that won't fit otherwise
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2025/01/09 19:09:47 martin Exp $
d10 1
a10 1
NUMCYLS=	18 	# size of image in MB, tune this if we need more space
@


1.35
log
@Bump ramdisk size to deal with bigger image for new pppd
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2017/07/17 14:36:13 hannken Exp $
d10 1
a10 1
NUMCYLS=	17 	# size of image in MB, tune this if we need more space
@


1.34
log
@Bump image size.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2014/08/10 14:42:33 martin Exp $
d10 2
a11 1
NUMCYLS=	14 	# size of image in MB, tune this if we need more space
@


1.34.18.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2025/07/24 13:10:27 christos Exp $
d10 1
a10 2
NUMCYLS=	19 	# size of image in MB, tune this if we need more space
			# (slightly bigger than ../instfs IMGSIZE)
@


1.34.2.1
log
@file Makefile was added on branch perseant-stdc-iso10646 on 2017-07-17 14:36:14 +0000
@
text
@d1 47
@


1.34.2.2
log
@309866
@
text
@a0 47
#	$NetBSD: Makefile,v 1.34 2017/07/17 14:36:13 hannken Exp $

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

.include <bsd.kernobj.mk>

.include "${.CURDIR}/../instfs/Makefile.instfs"
IMAGE=		miniroot.fs
NUMCYLS=	14 	# size of image in MB, tune this if we need more space
SECSPERCYL=	2048
CYLSIZE=	$$(( ${SECSPERCYL} * 512 ))
IMAGESIZE=	$$(( ${NUMCYLS} * ${CYLSIZE} ))
IMAGEPOSTBUILD=	\
	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
		${DESTDIR}/usr/mdec/bootblk && \
	echo "Creating disklabel" && \
	printf 'V nsect %d\nV nhead 1\nV rpm 7200\nV pcyl %d\nV ncyl %d\na 0 %d/0/0\nc 0 %d/0/0\nd 0 %d/0/0\nW\nL\nP\n' \
		${SECSPERCYL} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} | \
	${TOOL_SUNLABEL} -nq ${IMAGE}

IMAGE_RELEASEDIR=	installation/miniroot

CRUNCHBINDIR!=		cd ${INSTFSDIR} && ${PRINTOBJDIR}
LISTS+=			${.CURDIR}/list.miniroot
IMAGEDEPENDS+=		netbsd.gz

${CRUNCHBIN}: ${CRUNCHBINDIR}/${CRUNCHBIN}
	mkdir -p sysinst
	cp -p ${CRUNCHBINDIR}/sysinst/sysinstmsgs.* sysinst
	cp ${.ALLSRC} ${.TARGET}

netbsd.gz: ${KERNOBJDIR}/GENERIC/netbsd
	-rm -f ${.TARGET}
	${TOOL_GZIP_N} -9c ${.ALLSRC} > ${.TARGET}

clean:	localclean

localclean:
	rm -rf sysinst

CLEANFILES+=	${CRUNCHBIN} netbsd.gz

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

.include <bsd.prog.mk>
@


1.33
log
@Bump image size
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2014/08/05 15:40:58 apb Exp $
d10 1
a10 1
NUMCYLS=	13 	# size of image in MB, tune this if we need more space
@


1.32
log
@Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2014/05/27 19:04:29 palle Exp $
d10 1
a10 1
NUMCYLS=	12 	# size of image in MB, tune this if we need more space
@


1.31
log
@Ensure a disklabel is present since sun4v OpenBoot requires a valid disklabel in the disk file image. With this change the miniroot.fs can be used as a virtual disk when using sun4v LDOMs. OK martin@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2014/01/27 08:18:07 apb Exp $
d35 1
a35 1
	${TOOL_GZIP} -9nc ${.ALLSRC} > ${.TARGET}
@


1.30
log
@Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2010/03/12 23:07:13 martin Exp $
d9 13
a21 4
IMAGE=			miniroot.fs
IMAGESIZE=	12m
IMAGEPOSTBUILD=		${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
			    ${DESTDIR}/usr/mdec/bootblk
@


1.30.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2014/08/05 15:40:58 apb Exp $
d9 4
a12 13
IMAGE=		miniroot.fs
NUMCYLS=	12 	# size of image in MB, tune this if we need more space
SECSPERCYL=	2048
CYLSIZE=	$$(( ${SECSPERCYL} * 512 ))
IMAGESIZE=	$$(( ${NUMCYLS} * ${CYLSIZE} ))
IMAGEPOSTBUILD=	\
	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
		${DESTDIR}/usr/mdec/bootblk && \
	echo "Creating disklabel" && \
	printf 'V nsect %d\nV nhead 1\nV rpm 7200\nV pcyl %d\nV ncyl %d\na 0 %d/0/0\nc 0 %d/0/0\nd 0 %d/0/0\nW\nL\nP\n' \
		${SECSPERCYL} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} | \
	${TOOL_SUNLABEL} -nq ${IMAGE}

d26 1
a26 1
	${TOOL_GZIP_N} -9c ${.ALLSRC} > ${.TARGET}
@


1.29
log
@Provide full terminfo.db on install media
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2010/01/05 18:36:16 he Exp $
d26 1
a26 1
	gzip -9nc ${.ALLSRC} > ${.TARGET}
@


1.29.12.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 4
a12 13
IMAGE=		miniroot.fs
NUMCYLS=	13 	# size of image in MB, tune this if we need more space
SECSPERCYL=	2048
CYLSIZE=	$$(( ${SECSPERCYL} * 512 ))
IMAGESIZE=	$$(( ${NUMCYLS} * ${CYLSIZE} ))
IMAGEPOSTBUILD=	\
	${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
		${DESTDIR}/usr/mdec/bootblk && \
	echo "Creating disklabel" && \
	printf 'V nsect %d\nV nhead 1\nV rpm 7200\nV pcyl %d\nV ncyl %d\na 0 %d/0/0\nc 0 %d/0/0\nd 0 %d/0/0\nW\nL\nP\n' \
		${SECSPERCYL} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} ${NUMCYLS} | \
	${TOOL_SUNLABEL} -nq ${IMAGE}

d26 1
a26 1
	${TOOL_GZIP_N} -9c ${.ALLSRC} > ${.TARGET}
@


1.29.6.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2010/03/12 23:07:13 martin Exp $
d26 1
a26 1
	${TOOL_GZIP} -9nc ${.ALLSRC} > ${.TARGET}
@


1.28
log
@Bump the miniroot size from 8m to 9m, so that the contents fits again.
OK'ed by mrg@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2009/04/03 22:36:35 perry Exp $
d10 1
a10 1
IMAGESIZE=		9m
@


1.27
log
@Consistently use gzip with the -n flag so dates are not embedded.

Not tested on all platforms.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2006/05/09 19:10:43 he Exp $
d10 1
a10 1
IMAGESIZE=		8m
@


1.26
log
@Bump the miniroot size from 7MB to 8MB so that it fits again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2004/07/02 03:11:26 jmc Exp $
d26 1
a26 1
	gzip -9c ${.ALLSRC} > ${.TARGET}
@


1.26.30.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2009/04/03 22:36:35 perry Exp $
d26 1
a26 1
	gzip -9nc ${.ALLSRC} > ${.TARGET}
@


1.26.20.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2006/05/09 19:10:43 he Exp $
@


1.25
log
@Don't remove sysinst via CLEANFILES. It's a directory..Provide a new clean rule
for it
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2004/05/24 18:17:45 hannken Exp $
d10 1
a10 1
IMAGESIZE=		7m
@


1.24
log
@Do not fail if directory sysinst exists. Makes update builds work again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2004/04/21 21:19:51 dsl Exp $
d28 6
a33 1
CLEANFILES+=	${CRUNCHBIN} netbsd.gz sysinst
@


1.23
log
@Copy the sysinst message files into the correct objdir at the same time
as copying the crunched program binary.
Fixes PR sparc64/25265
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2003/07/10 10:34:15 lukem Exp $
d20 1
a20 1
	mkdir sysinst
@


1.22
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2002/05/14 06:21:22 lukem Exp $
d20 2
d28 1
a28 1
CLEANFILES+=	${CRUNCHBIN} netbsd.gz
@


1.22.2.1
log
@Pull up revision 1.23 (requested by dsl in ticket #171):
Copy the sysinst message files into the correct objdir at the same time
as copying the crunched program binary.
Fixes PR sparc64/25265
@
text
@d1 1
a1 1
#	$NetBSD$
a19 2
	mkdir sysinst
	cp -p ${CRUNCHBINDIR}/sysinst/sysinstmsgs.* sysinst
d26 1
a26 1
CLEANFILES+=	${CRUNCHBIN} netbsd.gz sysinst
@


1.22.2.2
log
@Pullup rev 1.24 (requested by hannken in ticket #383)

Do not fail if directory sysinst exists.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.2.1 2004/04/22 07:47:42 tron Exp $
d20 1
a20 1
	mkdir -p sysinst
@


1.22.2.3
log
@Pull up revision 1.25 (requested by jmc in ticket #578):
  Do not remove sysinst via CLEANFILES, since it is a directory.
  Instead, provide a new clean rule for it.  Fixes PR#26137.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22.2.2 2004/05/25 01:30:35 jmc Exp $
d28 1
a28 6
clean:	localclean

localclean:
	rm -rf sysinst

CLEANFILES+=	${CRUNCHBIN} netbsd.gz
@


1.21
log
@consistently use "${INSTALLBOOT} -v ..."
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2002/05/08 23:11:57 lukem Exp $
d11 1
a11 1
IMAGEPOSTBUILD=		${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
@


1.20
log
@fix size of images
(i reduced them during testing and they worked then, but not when i
did a full make release. weird...)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2002/05/08 07:57:10 lukem Exp $
d11 1
a11 1
IMAGEPOSTBUILD=		${INSTALLBOOT} -m ${MACHINE} ${IMAGE} \
@


1.19
log
@improve how gzipping is done to reduce amount of temp files, etc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2002/05/07 14:44:06 lukem Exp $
d10 1
a10 1
IMAGESIZE=		5m
@


1.18
log
@this needs to be ${INSTALLBOOT}ed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2002/05/07 14:41:37 lukem Exp $
d23 2
a24 2
	cp ${.ALLSRC} ${.TARGET:R}
	gzip -9f ${.TARGET:R}
@


1.17
log
@major overhaul; convert to NDWO.
this needs to build two images and one gzipped tar file:
	- install.fs: to mdset into netbsd.INSTALL
	- inst.tgz: contents of install.fs
	- miniroot.fs: install.fs + gzipped GENERIC kernel.  created using a
	  copy of the crunched ramdiskbin built for install.fs
share much of the miniroot.fs build goop from ../instfs/*
@
text
@d1 1
a1 1
#	$NetBSD$
d11 2
@


1.16
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.15 2002/03/28 14:47:10 rafal Exp $
d8 15
a22 2
TOP=		${.CURDIR}/..
MINIROOT=	${TOP}/../miniroot
d24 1
a24 1
.include "${TOP}/Makefile.inc"
d26 2
a27 98
SRCROOT=	${TOP}/../..
WARNS=1
INSTKERN?=	${KERNOBJDIR}/INSTALL/netbsd
GENERICKERN?=	${KERNOBJDIR}/GENERIC/netbsd

AUXDEPENDS= 	dot.profile disktab.preinstall termcap.mini \
		dist/base_obsolete dist/comp_obsolete \
		dist/games_obsolete dist/man_obsolete dist/misc_obsolete \
		dist/secr_obsolete dist/xbase_obsolete dist/xserver_obsolete
AUXCLEAN=	list ${CBIN}.conf dot.profile

CBIN=		ramdiskbin


CSIZE?=		15360
IMAGE?=		miniroot.fs
INSTALLSIZE?=	10240
INSTALLIMAGE?=	install.fs
MDEC=		${DESTDIR}/usr/mdec
MOUNT_POINT?=	${.OBJDIR}/mountpoint

LISTS=		list
CRUNCHCONF=	${CBIN}.conf
MTREECONF=	mtree.conf

CRUNCHGEN?=	crunchgen
MDSETIMAGE?=	mdsetimage
MTREE?=		mtree
DISKTYPE?=	miniroot

MAKEFSOPTS?=	-o optimization=space,minfree=1,bsize=16k,fsize=2k

all: netbsd.INSTALL ${INSTALLIMAGE} ${IMAGE}

netbsd.gz: ${GENERICKERN}
	gzip -9 < ${GENERICKERN} > netbsd.gz

netbsd.INSTALL: ${INSTKERN} ${INSTALLIMAGE}
	cp ${INSTKERN} netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${INSTALLIMAGE}
	${STRIP} netbsd.tmp
	mv netbsd.tmp ${.TARGET}

${INSTALLIMAGE} ${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREECONF} ${LISTS} dot.profile netbsd.gz
	@@echo "Building miniroot tree..."
	-rm -rf ${MOUNT_POINT}
	mkdir -m 755 ${MOUNT_POINT}
	${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
	@@echo "Creating install image..."
	-rm -f ${INSTALLIMAGE}
	${MAKEFS} -t ffs -B be -s ${INSTALLSIZE}b ${MAKEFSOPTS} \
		-o nsectors=1,ntracks=${INSTALLSIZE} \
		${INSTALLIMAGE}.tmp ${MOUNT_POINT} && mv ${INSTALLIMAGE}.tmp ${INSTALLIMAGE}
	@@echo "Copying in GENERIC kernel..."
	cp netbsd.gz ${MOUNT_POINT}/netbsd
	@@echo "Creating miniroot image..."
	-rm -f ${IMAGE}
	${MAKEFS} -t ffs -B be -s ${CSIZE}b ${MAKEFSOPTS} \
		-o nsectors=1,ntracks=${CSIZE} \
		${IMAGE}.tmp ${MOUNT_POINT} && mv ${IMAGE}.tmp ${IMAGE}
	# use sunlabel?
	#-disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
	@@echo "installing new bootblocks"
	dd if=${MDEC}/bootblk of=${IMAGE} bs=512 count=15 conv=notrunc seek=1

dot.profile: dot.profile.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
				${.ALLSRC} > ${.TARGET}

${LISTS}: ${LISTS}.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
			-DSRCROOT=${SRCROOT} ${.ALLSRC} > ${.TARGET}

${CBIN}.conf: ${CBIN}.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
				${.ALLSRC} > ${.TARGET}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	${CRUNCHGEN} -D ${SRCROOT} -L ${DESTDIR}/usr/lib ${.ALLSRC}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${SRCROOT}/distrib/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CBIN}:	libhack.o

clean cleandir distclean:
	/bin/rm -f *.core ${AUXCLEAN} ${IMAGE} netbsd.INSTALL ${CBIN} \
		${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c

release: check_RELEASEDIR .WAIT miniroot.fs
	gzip -c -9 miniroot.fs \
		> $(RELEASEDIR)/installation/miniroot/miniroot.fs.gz
@


1.15
log
@Fix build; don't reference ${DISTRIBDIR} when it hasn't been defined; instead
define HACKSRC via ${SRCROOT}/distrib/utils/libhack
@
text
@d1 6
a6 1
#	$NetBSD: Makefile,v 1.14 2002/03/28 04:33:24 lukem Exp $
a12 3
.include <bsd.own.mk>	# So we use /etc/mk.conf.
.include <bsd.kernobj.mk>

d108 2
a109 8
.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release: $(IMAGE) netbsd.INSTALL
	@@mkdir -p $(RELEASEDIR)/installation/miniroot
	gzip -c -9 < $(.OBJDIR)/miniroot.fs \
a110 2
	@@mkdir -p $(RELEASEDIR)/binary/kernels
.endif	# RELEASEDIR check
a111 4
.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.sys.mk>
@


1.14
log
@- Be consistent how libhack is used: If extra HACKOBJS (e.g., gethost.o) are
  required, define them before pulling in libhack/Makefile.inc so that the
  dependencies work correctly.
- Other minor cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2002/03/25 07:43:47 lukem Exp $
d98 1
a98 1
HACKSRC=	${DISTRIBDIR}/utils/libhack
@


1.13
log
@Disable libhack's gethost.o (replacement gethostby{name,addr}()) by default,
as they only support reading /etc/hosts, and its the "least useful" of
the libhack routines.  Add gethost.o back to Really Small media which
appears to need the space savings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/01/21 13:46:26 mrg Exp $
a10 1
HACKSRC=	${TOP}/../utils/libhack
a96 3
# This is listed in ramdiskbin.conf but is built here.
${CBIN}: libhack.o

d98 3
a100 1
.include "${HACKSRC}/Makefile.inc"
@


1.12
log
@- don't put a copy of GENERIC in the netbsd.INSTALL kernel's embedded
filesystem's as /netbsd...

- reduce INSTALL size by 2.5MB.

- clean up list.m4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2002/01/20 05:57:10 mrg Exp $
a102 3

# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
@


1.11
log
@convert sparc64 to use `makefs' rather than vnd/newfs/mount.  this severely
cleans up a lot of the processing here.


XXX: note that the sparc64 "INSTALL" kernel's file system has a copy of
GENERIC in /netbsd.  fix this shortly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2001/12/26 15:18:24 mason Exp $
d14 2
a15 1
KERN?=		${KERNOBJDIR}/INSTALL/netbsd
d28 2
d42 1
a42 1
MAKEFSOPTS?=	-o optimization=space,minfree=1,nsectors=1,ntracks=${CSIZE},bsize=16k,fsize=2k
d44 1
a44 1
all: netbsd.INSTALL ${IMAGE}
d46 6
a51 3
netbsd.INSTALL: ${KERN} ${IMAGE}
	cp ${KERN} netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${IMAGE}
d55 1
a55 2

${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREECONF} ${LISTS} dot.profile
d63 7
d73 1
@


1.10
log
@vnconfig called incorrectly, breaks build
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/12/04 18:14:20 jmc Exp $
a15 14
.if ${MACHINE_ARCH} == "i386"
RAW_PART=	d
.else
RAW_PART=	c
.endif

# Need to add more cases
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "m68k" || \
    ${MACHINE_ARCH} == "sparc64"
FS_END=		be
.else		# i386, pmax
FS_END=		le
.endif

d25 1
a25 8
MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}c
VND_RDEV=	/dev/r${VND}c
VND_CDEV=	/dev/${VND}${RAW_PART}
VND_CRDEV=	/dev/r${VND}${RAW_PART}
CSIZE?=		14000
d28 1
d39 2
d46 1
a46 1
	strip netbsd.tmp
d51 3
a53 6
	dd if=/dev/zero of=${IMAGE} count=${CSIZE}
	vnconfig -v -c ${VND_CRDEV} ${IMAGE}
	-disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
	#newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
	newfs -B ${FS_END} -m 0 -o space ${VND_RDEV} ${DISKTYPE}
	mount -o softdep ${VND_DEV} ${MOUNT_POINT}
d58 6
a63 3
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
d65 1
a65 10
	#${MDEC}/binstall -m ${DESTDIR}/usr/mdec -u -v ffs ${MOUNT_POINT}
	umount ${MOUNT_POINT}
	dd if=${MDEC}/bootblk of=${VND_CDEV} bs=512 count=15 conv=notrunc seek=1
	#${MDEC}/installboot -v ${MDEC}/bootblk ${VND_CDEV}
	vnconfig -u ${VND_CRDEV}

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


1.9
log
@Add bsd.prog.mk for libhack components
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2001/10/21 23:23:23 jmc Exp $
d70 1
a70 1
	vnconfig -v -c ${VND_CDEV} ${IMAGE}
d87 1
a87 1
	vnconfig -u ${VND_CDEV}
d91 1
a91 1
	-vnconfig -u ${VND_DEV}
@


1.8
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.7 2001/10/13 06:15:20 jmc Exp $
d141 1
@


1.7
log
@Add MTREE?= to add Makefiles and use  when running mtree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2001/10/10 05:13:55 enami Exp $
d55 1
d63 1
a63 1
	mdsetimage -v netbsd.tmp ${IMAGE}
@


1.6
log
@Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts.  Pointed out by chs@@netbsd.org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/08/23 17:19:49 mrg Exp $
d55 1
d74 1
a74 1
	mtree -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u
@


1.5
log
@netbsd.INSTALL.gz is already install; back out part of previous.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/08/23 17:14:40 eeh Exp $
d52 1
a52 1
MTREE=		mtree.conf
d66 1
a66 1
${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
d73 1
a73 1
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
@


1.4
log
@Install INSTALL kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/07/21 06:01:03 eeh Exp $
a132 1
	cp netbsd.INSTALL $(RELEASEDIR)/binary/kernels
@


1.3
log
@Make the size of the miniroot more easily tuneable and install it in a kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/01/07 09:33:17 mrg Exp $
d120 2
a121 1
	/bin/rm -f *.core ${AUXCLEAN} ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c
d128 1
a128 1
release: $(IMAGE)
d132 2
@


1.2
log
@s/ramdisk/xminiroot/
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/01/07 09:30:19 mrg Exp $
d5 6
d14 1
a37 3
.if ${MACHINE_ARCH} == "sparc64"
CSIZE?=		10240
.endif
d46 1
a47 1
CSIZE?=         3312
d57 10
a66 1
all: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
d69 3
a71 2
	disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
	newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
d81 1
a81 1
	${MDEC}/binstall -m ${DESTDIR}/usr/mdec -u -v ffs ${MOUNT_POINT}
d83 2
@


1.2.2.1
log
@file Makefile was added on branch netbsd-1-5 on 2001-02-03 20:21:26 +0000
@
text
@d1 120
@


1.2.2.2
log
@Pull up revisions 1.1-1.2 (requested by mrg):
  Rename sparc64 ``ramdisk'' to ``xminiroot'' to avoid confusion
  about what it actually does.
@
text
@a0 120
#	$NetBSD: Makefile,v 1.2.2.1 2001/02/03 20:21:26 he Exp $

TOP=		${.CURDIR}/..
MINIROOT=	${TOP}/../miniroot
HACKSRC=	${TOP}/../utils/libhack
SRCROOT=	${TOP}/../..
WARNS=1

.if ${MACHINE_ARCH} == "i386"
RAW_PART=	d
.else
RAW_PART=	c
.endif

# Need to add more cases
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "m68k" || \
    ${MACHINE_ARCH} == "sparc64"
FS_END=		be
.else		# i386, pmax
FS_END=		le
.endif

AUXDEPENDS= 	dot.profile disktab.preinstall termcap.mini \
		dist/base_obsolete dist/comp_obsolete \
		dist/games_obsolete dist/man_obsolete dist/misc_obsolete \
		dist/secr_obsolete dist/xbase_obsolete dist/xserver_obsolete
AUXCLEAN=	list ${CBIN}.conf dot.profile

CBIN=		ramdiskbin

.if ${MACHINE_ARCH} == "sparc64"
CSIZE?=		10240
.endif

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}c
VND_RDEV=	/dev/r${VND}c
VND_CDEV=	/dev/${VND}${RAW_PART}
VND_CRDEV=	/dev/r${VND}${RAW_PART}
IMAGE?=		miniroot.fs
CSIZE?=         3312
MDEC=		${DESTDIR}/usr/mdec

LISTS=		list
CRUNCHCONF=	${CBIN}.conf
MTREE=		mtree.conf

CRUNCHGEN?=	crunchgen
DISKTYPE?=	miniroot

all: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
	dd if=/dev/zero of=${IMAGE} count=${CSIZE}
	vnconfig -v -c ${VND_CDEV} ${IMAGE}
	disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
	newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
	mount -o softdep ${VND_DEV} ${MOUNT_POINT}
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	@@echo "installing new bootblocks"
	${MDEC}/binstall -m ${DESTDIR}/usr/mdec -u -v ffs ${MOUNT_POINT}
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND_DEV}
	-/bin/rm -f ${IMAGE}

dot.profile: dot.profile.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
				${.ALLSRC} > ${.TARGET}

${LISTS}: ${LISTS}.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
			-DSRCROOT=${SRCROOT} ${.ALLSRC} > ${.TARGET}

${CBIN}.conf: ${CBIN}.m4
	m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
				${.ALLSRC} > ${.TARGET}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	${CRUNCHGEN} -D ${SRCROOT} -L ${DESTDIR}/usr/lib ${.ALLSRC}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

# This is listed in ramdiskbin.conf but is built here.
${CBIN}: libhack.o

# Use stubs to eliminate some large stuff from libc
.include "${HACKSRC}/Makefile.inc"

# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o

clean cleandir distclean:
	/bin/rm -f *.core ${AUXCLEAN} ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c

.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release: $(IMAGE)
	@@mkdir -p $(RELEASEDIR)/installation/miniroot
	gzip -c -9 < $(.OBJDIR)/miniroot.fs \
		> $(RELEASEDIR)/installation/miniroot/miniroot.fs.gz
.endif	# RELEASEDIR check

.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.sys.mk>
@


1.2.2.3
log
@Apply patch (requested by he):
  Introduce dependency between ramdisk/miniroot construction and
  osrelease.sh, to better support UPDATE builds of releases.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.2.2 2002/03/25 17:33:03 he Exp $
a8 2
VERDEP=		${SRCROOT}/sys/conf/osrelease.sh

d91 1
a91 1
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c ${VERDEP}
@


1.1
log
@rename sparc64 "ramdisk" to "xminiroot" to avoid confusion about what it actually does.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/11/01 07:58:01 garbled Exp $
d42 1
a42 1
IMAGE?=		ramdisk.fs
d112 3
a114 3
	@@mkdir -p $(RELEASEDIR)/installation/ramdisk
	gzip -c -9 < $(.OBJDIR)/ramdisk.fs \
		> $(RELEASEDIR)/installation/ramdisk/ramdisk.fs.gz
@
