head	1.42;
access;
symbols
	netbsd-11-0-RC4:1.42
	netbsd-11-0-RC3:1.42
	netbsd-11-0-RC2:1.42
	netbsd-11-0-RC1:1.42
	perseant-exfatfs-base-20250801:1.42
	netbsd-11:1.42.0.4
	netbsd-11-base:1.42
	netbsd-10-1-RELEASE:1.41
	perseant-exfatfs-base-20240630:1.42
	perseant-exfatfs:1.42.0.2
	perseant-exfatfs-base:1.42
	netbsd-8-3-RELEASE:1.40
	netbsd-9-4-RELEASE:1.41
	netbsd-10-0-RELEASE:1.41
	netbsd-10-0-RC6:1.41
	netbsd-10-0-RC5:1.41
	netbsd-10-0-RC4:1.41
	netbsd-10-0-RC3:1.41
	netbsd-10-0-RC2:1.41
	netbsd-10-0-RC1:1.41
	netbsd-10:1.41.0.10
	netbsd-10-base:1.41
	netbsd-9-3-RELEASE:1.41
	cjep_sun2x-base1:1.41
	cjep_sun2x:1.41.0.8
	cjep_sun2x-base:1.41
	cjep_staticlib_x-base1:1.41
	netbsd-9-2-RELEASE:1.41
	cjep_staticlib_x:1.41.0.6
	cjep_staticlib_x-base:1.41
	netbsd-9-1-RELEASE:1.41
	phil-wifi-20200421:1.41
	phil-wifi-20200411:1.41
	is-mlppp:1.41.0.4
	is-mlppp-base:1.41
	phil-wifi-20200406:1.41
	netbsd-8-2-RELEASE:1.40
	netbsd-9-0-RELEASE:1.41
	netbsd-9-0-RC2:1.41
	netbsd-9-0-RC1:1.41
	phil-wifi-20191119:1.41
	netbsd-9:1.41.0.2
	netbsd-9-base:1.41
	phil-wifi-20190609:1.41
	netbsd-8-1-RELEASE:1.40
	netbsd-8-1-RC1:1.40
	pgoyette-compat-merge-20190127:1.40
	pgoyette-compat-20190127:1.40
	pgoyette-compat-20190118:1.40
	pgoyette-compat-1226:1.40
	pgoyette-compat-1126:1.40
	pgoyette-compat-1020:1.40
	pgoyette-compat-0930:1.40
	pgoyette-compat-0906:1.40
	netbsd-7-2-RELEASE:1.38
	pgoyette-compat-0728:1.40
	netbsd-8-0-RELEASE:1.40
	phil-wifi:1.40.0.12
	phil-wifi-base:1.40
	pgoyette-compat-0625:1.40
	netbsd-8-0-RC2:1.40
	pgoyette-compat-0521:1.40
	pgoyette-compat-0502:1.40
	pgoyette-compat-0422:1.40
	netbsd-8-0-RC1:1.40
	pgoyette-compat-0415:1.40
	pgoyette-compat-0407:1.40
	pgoyette-compat-0330:1.40
	pgoyette-compat-0322:1.40
	pgoyette-compat-0315:1.40
	netbsd-7-1-2-RELEASE:1.38
	pgoyette-compat:1.40.0.10
	pgoyette-compat-base:1.40
	netbsd-7-1-1-RELEASE:1.38
	matt-nb8-mediatek:1.40.0.8
	matt-nb8-mediatek-base:1.40
	perseant-stdc-iso10646:1.40.0.6
	perseant-stdc-iso10646-base:1.40
	netbsd-8:1.40.0.4
	netbsd-8-base:1.40
	prg-localcount2-base3:1.40
	prg-localcount2-base2:1.40
	prg-localcount2-base1:1.40
	prg-localcount2:1.40.0.2
	prg-localcount2-base:1.40
	pgoyette-localcount-20170426:1.40
	bouyer-socketcan-base1:1.40
	pgoyette-localcount-20170320:1.40
	netbsd-7-1:1.38.0.32
	netbsd-7-1-RELEASE:1.38
	netbsd-7-1-RC2:1.38
	netbsd-7-nhusb-base-20170116:1.38
	bouyer-socketcan:1.39.0.4
	bouyer-socketcan-base:1.39
	pgoyette-localcount-20170107:1.39
	netbsd-7-1-RC1:1.38
	pgoyette-localcount-20161104:1.39
	netbsd-7-0-2-RELEASE:1.38
	localcount-20160914:1.39
	netbsd-7-nhusb:1.38.0.30
	netbsd-7-nhusb-base:1.38
	pgoyette-localcount-20160806:1.39
	pgoyette-localcount-20160726:1.39
	pgoyette-localcount:1.39.0.2
	pgoyette-localcount-base:1.39
	netbsd-7-0-1-RELEASE:1.38
	netbsd-7-0:1.38.0.28
	netbsd-7-0-RELEASE:1.38
	netbsd-7-0-RC3:1.38
	netbsd-7-0-RC2:1.38
	netbsd-7-0-RC1:1.38
	netbsd-5-2-3-RELEASE:1.36
	netbsd-5-1-5-RELEASE:1.36
	netbsd-6-0-6-RELEASE:1.38
	netbsd-6-1-5-RELEASE:1.38
	netbsd-7:1.38.0.26
	netbsd-7-base:1.38
	yamt-pagecache-base9:1.38
	yamt-pagecache-tag8:1.38
	netbsd-6-1-4-RELEASE:1.38
	netbsd-6-0-5-RELEASE:1.38
	tls-earlyentropy:1.38.0.24
	tls-earlyentropy-base:1.38
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.38
	riastradh-drm2-base3:1.38
	netbsd-6-1-3-RELEASE:1.38
	netbsd-6-0-4-RELEASE:1.38
	netbsd-5-2-2-RELEASE:1.36
	netbsd-5-1-4-RELEASE:1.36
	netbsd-6-1-2-RELEASE:1.38
	netbsd-6-0-3-RELEASE:1.38
	netbsd-5-2-1-RELEASE:1.36
	netbsd-5-1-3-RELEASE:1.36
	netbsd-6-1-1-RELEASE:1.38
	riastradh-drm2-base2:1.38
	riastradh-drm2-base1:1.38
	riastradh-drm2:1.38.0.16
	riastradh-drm2-base:1.38
	netbsd-6-1:1.38.0.22
	netbsd-6-0-2-RELEASE:1.38
	netbsd-6-1-RELEASE:1.38
	khorben-n900:1.38.0.20
	netbsd-6-1-RC4:1.38
	netbsd-6-1-RC3:1.38
	agc-symver:1.38.0.18
	agc-symver-base:1.38
	netbsd-6-1-RC2:1.38
	netbsd-6-1-RC1:1.38
	yamt-pagecache-base8:1.38
	netbsd-5-2:1.36.0.14
	netbsd-6-0-1-RELEASE:1.38
	yamt-pagecache-base7:1.38
	netbsd-5-2-RELEASE:1.36
	netbsd-5-2-RC1:1.36
	matt-nb6-plus-nbase:1.38
	yamt-pagecache-base6:1.38
	netbsd-6-0:1.38.0.14
	netbsd-6-0-RELEASE:1.38
	netbsd-6-0-RC2:1.38
	tls-maxphys:1.38.0.12
	tls-maxphys-base:1.38
	matt-nb6-plus:1.38.0.10
	matt-nb6-plus-base:1.38
	netbsd-6-0-RC1:1.38
	yamt-pagecache-base5:1.38
	yamt-pagecache-base4:1.38
	netbsd-6:1.38.0.8
	netbsd-6-base:1.38
	netbsd-5-1-2-RELEASE:1.36
	netbsd-5-1-1-RELEASE:1.36
	yamt-pagecache-base3:1.38
	yamt-pagecache-base2:1.38
	yamt-pagecache:1.38.0.6
	yamt-pagecache-base:1.38
	cherry-xenmp:1.38.0.4
	cherry-xenmp-base:1.38
	bouyer-quota2-nbase:1.38
	bouyer-quota2:1.38.0.2
	bouyer-quota2-base:1.38
	matt-mips64-premerge-20101231:1.38
	matt-nb5-mips64-premerge-20101231:1.36
	matt-nb5-pq3:1.36.0.12
	matt-nb5-pq3-base:1.36
	netbsd-5-1:1.36.0.10
	GWR:1.1.1
	netbsd-5-1-RELEASE:1.36
	netbsd-5-1-RC4:1.36
	matt-nb5-mips64-k15:1.36
	netbsd-5-1-RC3:1.36
	netbsd-5-1-RC2:1.36
	netbsd-5-1-RC1:1.36
	netbsd-5-0-2-RELEASE:1.36
	matt-nb5-mips64-premerge-20091211:1.36
	matt-premerge-20091211:1.38
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.36
	matt-nb4-mips64-k7-u2a-k9b:1.36
	matt-nb5-mips64-u1-k1-k5:1.36
	matt-nb5-mips64:1.36.0.8
	netbsd-5-0-1-RELEASE:1.36
	jym-xensuspend-nbase:1.36
	netbsd-5-0:1.36.0.6
	netbsd-5-0-RELEASE:1.36
	netbsd-5-0-RC4:1.36
	netbsd-5-0-RC3:1.36
	netbsd-5-0-RC2:1.36
	jym-xensuspend:1.36.0.4
	jym-xensuspend-base:1.36
	netbsd-5-0-RC1:1.36
	netbsd-5:1.36.0.2
	netbsd-5-base:1.36
	matt-mips64-base2:1.36
	matt-mips64:1.35.0.18
	netbsd-4-0-1-RELEASE:1.34
	wrstuden-revivesa-base-3:1.36
	wrstuden-revivesa-base-2:1.36
	wrstuden-fixsa-newbase:1.34
	wrstuden-revivesa-base-1:1.36
	yamt-pf42-base4:1.36
	yamt-pf42-base3:1.36
	hpcarm-cleanup-nbase:1.36
	yamt-pf42-baseX:1.35
	yamt-pf42-base2:1.36
	wrstuden-revivesa:1.35.0.16
	wrstuden-revivesa-base:1.36
	yamt-pf42:1.35.0.14
	yamt-pf42-base:1.35
	mjf-devfs2:1.35.0.12
	mjf-devfs2-base:1.36
	keiichi-mipv6:1.35.0.10
	keiichi-mipv6-base:1.35
	mjf-devfs:1.35.0.8
	mjf-devfs-base:1.35
	matt-armv6-nbase:1.35
	matt-armv6-prevmlocking:1.35
	wrstuden-fixsa-base-1:1.34
	netbsd-4-0:1.34.0.20
	netbsd-4-0-RELEASE:1.34
	cube-autoconf:1.35.0.6
	cube-autoconf-base:1.35
	netbsd-4-0-RC5:1.34
	netbsd-4-0-RC4:1.34
	netbsd-4-0-RC3:1.34
	netbsd-4-0-RC2:1.34
	netbsd-4-0-RC1:1.34
	matt-armv6:1.35.0.4
	matt-armv6-base:1.35
	matt-mips64-base:1.35
	hpcarm-cleanup:1.35.0.2
	hpcarm-cleanup-base:1.35
	netbsd-3-1-1-RELEASE:1.34
	netbsd-3-0-3-RELEASE:1.34
	wrstuden-fixsa:1.34.0.18
	wrstuden-fixsa-base:1.34
	abandoned-netbsd-4-base:1.34
	abandoned-netbsd-4:1.34.0.12
	netbsd-3-1:1.34.0.14
	netbsd-3-1-RELEASE:1.34
	netbsd-3-0-2-RELEASE:1.34
	netbsd-3-1-RC4:1.34
	netbsd-3-1-RC3:1.34
	netbsd-3-1-RC2:1.34
	netbsd-3-1-RC1:1.34
	netbsd-4:1.34.0.16
	netbsd-4-base:1.34
	netbsd-3-0-1-RELEASE:1.34
	netbsd-3-0:1.34.0.10
	netbsd-3-0-RELEASE:1.34
	netbsd-3-0-RC6:1.34
	netbsd-3-0-RC5:1.34
	netbsd-3-0-RC4:1.34
	netbsd-3-0-RC3:1.34
	netbsd-3-0-RC2:1.34
	netbsd-3-0-RC1:1.34
	netbsd-2-0-3-RELEASE:1.34
	netbsd-2-1:1.34.0.8
	netbsd-2-1-RELEASE:1.34
	netbsd-2-1-RC6:1.34
	netbsd-2-1-RC5:1.34
	netbsd-2-1-RC4:1.34
	netbsd-2-1-RC3:1.34
	netbsd-2-1-RC2:1.34
	netbsd-2-1-RC1:1.34
	netbsd-2-0-2-RELEASE:1.34
	netbsd-3:1.34.0.6
	netbsd-3-base:1.34
	netbsd-2-0-1-RELEASE:1.34
	netbsd-2:1.34.0.4
	netbsd-2-base:1.34
	netbsd-2-0-RELEASE:1.34
	netbsd-2-0-RC5:1.34
	netbsd-2-0-RC4:1.34
	netbsd-2-0-RC3:1.34
	netbsd-2-0-RC2:1.34
	netbsd-2-0-RC1:1.34
	netbsd-2-0:1.34.0.2
	netbsd-2-0-base:1.34
	netbsd-1-6-PATCH002-RELEASE:1.30
	netbsd-1-6-PATCH002:1.30
	netbsd-1-6-PATCH002-RC4:1.30
	netbsd-1-6-PATCH002-RC3:1.30
	netbsd-1-6-PATCH002-RC2:1.30
	netbsd-1-6-PATCH002-RC1:1.30
	netbsd-1-6-PATCH001:1.30
	netbsd-1-6-PATCH001-RELEASE:1.30
	netbsd-1-6-PATCH001-RC3:1.30
	netbsd-1-6-PATCH001-RC2:1.30
	netbsd-1-6-PATCH001-RC1:1.30
	fvdl_fs64_base:1.30
	netbsd-1-6-RELEASE:1.30
	netbsd-1-6-RC3:1.30
	netbsd-1-6-RC2:1.30
	netbsd-1-6-RC1:1.30
	netbsd-1-6:1.30.0.2
	netbsd-1-6-base:1.30
	netbsd-1-5-PATCH003:1.14
	netbsd-1-5-PATCH002:1.14
	netbsd-1-5-PATCH001:1.14
	netbsd-1-5-RELEASE:1.14
	netbsd-1-5-BETA2:1.14
	netbsd-1-5-BETA:1.14
	netbsd-1-4-PATCH003:1.7.2.2
	netbsd-1-5-ALPHA2:1.14
	netbsd-1-5:1.14.0.2
	netbsd-1-5-base:1.14
	minoura-xpg4dl:1.11.0.6
	minoura-xpg4dl-base:1.11
	netbsd-1-4-PATCH002:1.7.2.2
	wrstuden-devbsize-19991221:1.11
	wrstuden-devbsize:1.11.0.4
	wrstuden-devbsize-base:1.11
	comdex-fall-1999:1.11.0.2
	comdex-fall-1999-base:1.11
	netbsd-1-4-PATCH001:1.7.2.1
	netbsd-1-4-RELEASE:1.7
	netbsd-1-4:1.7.0.2
	netbsd-1-4-base:1.7
	netbsd-1-3-PATCH003:1.3.4.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.3.4.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.3.4.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.3.4.2
	netbsd-1-3-PATCH002:1.3.4.2
	netbsd-1-3-PATCH001:1.3.4.1
	netbsd-1-3-RELEASE:1.3.4.1
	netbsd-1-3-BETA:1.3
	netbsd-1-3:1.3.0.4
	netbsd-1-3-base:1.3
	netbsd-1-2-PATCH001:1.3
	netbsd-1-2-RELEASE:1.3
	netbsd-1-2-BETA:1.3
	netbsd-1-2-base:1.3
	netbsd-1-2:1.3.0.6
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3;
locks; strict;
comment	@# @;


1.42
date	2024.05.17.20.27.09;	author christos;	state Exp;
branches;
next	1.41;
commitid	p65qitTUmyTUpoaF;

1.41
date	2019.02.07.04.33.58;	author mrg;	state Exp;
branches;
next	1.40;
commitid	4qtQYIAgc4mh3NaB;

1.40
date	2017.01.24.18.04.05;	author christos;	state Exp;
branches
	1.40.12.1;
next	1.39;
commitid	kdLAgdCEWzeUrfDz;

1.39
date	2014.08.27.04.30.25;	author christos;	state Exp;
branches
	1.39.2.1
	1.39.4.1;
next	1.38;
commitid	CKlX6MLmXWYogXNx;

1.38
date	2009.09.20.22.46.14;	author abs;	state Exp;
branches;
next	1.37;

1.37
date	2009.09.20.19.41.35;	author abs;	state Exp;
branches;
next	1.36;

1.36
date	2008.05.16.15.16.15;	author he;	state Exp;
branches;
next	1.35;

1.35
date	2007.06.24.05.41.53;	author isaki;	state Exp;
branches
	1.35.12.1
	1.35.14.1
	1.35.16.1;
next	1.34;

1.34
date	2003.11.02.16.02.09;	author chs;	state Exp;
branches;
next	1.33;

1.33
date	2003.10.26.10.59.57;	author mycroft;	state Exp;
branches;
next	1.32;

1.32
date	2003.10.26.10.03.45;	author mycroft;	state Exp;
branches;
next	1.31;

1.31
date	2003.04.02.10.39.21;	author fvdl;	state Exp;
branches;
next	1.30;

1.30
date	2002.05.17.17.52.36;	author lukem;	state Exp;
branches;
next	1.29;

1.29
date	2002.05.02.18.02.59;	author lukem;	state Exp;
branches;
next	1.28;

1.28
date	2002.04.26.15.50.49;	author lukem;	state Exp;
branches;
next	1.27;

1.27
date	2002.04.18.15.36.58;	author bouyer;	state Exp;
branches;
next	1.26;

1.26
date	2002.04.06.18.16.12;	author tsutsui;	state Exp;
branches;
next	1.25;

1.25
date	2002.03.28.04.33.24;	author lukem;	state Exp;
branches;
next	1.24;

1.24
date	2002.03.25.07.43.48;	author lukem;	state Exp;
branches;
next	1.23;

1.23
date	2002.03.06.12.15.20;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	2002.02.23.17.27.42;	author chs;	state Exp;
branches;
next	1.21;

1.21
date	2001.11.09.21.00.04;	author tsutsui;	state Exp;
branches;
next	1.20;

1.20
date	2001.10.21.23.23.23;	author jmc;	state Exp;
branches;
next	1.19;

1.19
date	2001.10.13.06.15.21;	author jmc;	state Exp;
branches;
next	1.18;

1.18
date	2001.10.04.08.17.42;	author chs;	state Exp;
branches;
next	1.17;

1.17
date	2001.07.30.00.09.08;	author chs;	state Exp;
branches;
next	1.16;

1.16
date	2001.05.19.03.30.22;	author chs;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.13.03.11.26;	author jmc;	state Exp;
branches;
next	1.14;

1.14
date	2000.06.19.23.46.08;	author tsutsui;	state Exp;
branches;
next	1.13;

1.13
date	2000.06.10.03.01.14;	author tsutsui;	state Exp;
branches;
next	1.12;

1.12
date	2000.06.09.15.03.34;	author tsutsui;	state Exp;
branches;
next	1.11;

1.11
date	99.05.21.04.06.20;	author gwr;	state Exp;
branches;
next	1.10;

1.10
date	99.05.18.07.31.56;	author gwr;	state Exp;
branches;
next	1.9;

1.9
date	99.05.16.08.21.53;	author gwr;	state Exp;
branches;
next	1.8;

1.8
date	99.04.22.04.32.12;	author gwr;	state Exp;
branches;
next	1.7;

1.7
date	99.03.04.20.32.21;	author wrstuden;	state Exp;
branches
	1.7.2.1;
next	1.6;

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

1.5
date	98.02.12.19.56.25;	author gwr;	state Exp;
branches;
next	1.4;

1.4
date	97.12.12.03.46.59;	author gwr;	state Exp;
branches;
next	1.3;

1.3
date	95.11.21.21.19.14;	author gwr;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	95.10.13.16.51.30;	author gwr;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	95.10.08.23.07.53;	author gwr;	state Exp;
branches
	1.1.1.1;
next	;

1.40.12.1
date	2019.06.10.21.42.35;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.39.2.1
date	2017.03.20.06.52.10;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.39.4.1
date	2017.04.21.16.51.15;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.35.12.1
date	2008.06.02.13.21.18;	author mjf;	state Exp;
branches;
next	1.35.12.2;

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

1.35.14.1
date	2008.05.18.12.29.41;	author yamt;	state Exp;
branches;
next	;

1.35.16.1
date	2008.06.23.04.29.00;	author wrstuden;	state Exp;
branches;
next	;

1.7.2.1
date	99.06.21.03.19.34;	author perry;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2000.03.01.00.28.02;	author he;	state Exp;
branches;
next	;

1.3.2.1
date	95.11.21.21.19.14;	author gwr;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	95.11.21.21.19.15;	author gwr;	state Exp;
branches;
next	;

1.3.4.1
date	97.12.12.22.59.47;	author gwr;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	98.05.29.17.41.22;	author mycroft;	state Exp;
branches;
next	;

1.2.2.1
date	95.11.21.22.15.14;	author gwr;	state Exp;
branches;
next	;

1.1.1.1
date	95.10.08.23.07.53;	author gwr;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	95.10.12.00.01.33;	author gwr;	state Exp;
branches;
next	;


desc
@@


1.42
log
@Add /dev/pipe to the spec list using IMAGESPECEXTRA
@
text
@#	$NetBSD: Makefile,v 1.41 2019/02/07 04:33:58 mrg Exp $

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

IMAGE=		ramdisk.fs
IMAGESIZE=	660k
IMAGESPECEXTRA=	dev/pipe
MAKEFS_FLAGS+=	-f 6 -o density=3500

WARNS=		1
DBG=		-Os

CRUNCHBIN=	rd_bin
LISTS=		${.CURDIR}/list
MTREECONF=	${.CURDIR}/mtree.conf
IMAGEENDIAN=	be
MAKEDEVTARGETS=	std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 fd0
IMAGEDEPENDS=	${CRUNCHBIN} \
		fstab passwd protocols ${DISTRIBDIR}/common/services \
		sshrc welcome ${NETBSDSRCDIR}/etc/netconfig

MDSETTARGETS=		RAMDISK		ramdisk.fs	- \
			RAMDISK3X	ramdisk.fs	-
MDSET_RELEASEDIR=	binary/kernel

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

fstab: .PHONY

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

.include <bsd.prog.mk>
@


1.41
log
@bump ramdisk sizes to cope with GCC 7 bloat.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/01/24 18:04:05 christos Exp $
d9 1
@


1.40
log
@+= for MAKEFS_FLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2014/08/27 04:30:25 christos Exp $
d8 1
a8 1
IMAGESIZE=	600k
@


1.40.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2019/02/07 04:33:58 mrg Exp $
d8 1
a8 1
IMAGESIZE=	660k
@


1.39
log
@mark fstab .PHONY to prevent it being re-made from fstab.c in suffix rules.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2009/09/20 22:46:14 abs Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 6 -o density=3500
@


1.39.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/01/24 18:04:05 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 6 -o density=3500
@


1.39.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/01/24 18:04:05 christos Exp $
d9 1
a9 1
MAKEFS_FLAGS+=	-f 6 -o density=3500
@


1.38
log
@Nothing needs disktab anymore, so we'd rather have an inode and
slightly over 1K of space on install media...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2009/09/20 19:41:35 abs Exp $
d32 2
@


1.37
log
@Move sun2, sun3 & x68k across to the common distrib etc/services, and
while here reduce it from 1180 to 794 bytes (whitespace & comment cleanup)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2008/05/16 15:16:15 he Exp $
d20 1
a20 1
		disktab fstab passwd protocols ${DISTRIBDIR}/common/services \
@


1.36
log
@Bump ramdisk size from 500k to 600k to compensate for recent bloat,
probably caused by ifconfig now needing proplib.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2007/06/24 05:41:53 isaki Exp $
d20 2
a21 2
		disktab fstab passwd protocols services sshrc welcome \
		${NETBSDSRCDIR}/etc/netconfig
@


1.35
log
@Remove a duplicated option in MAKEFS_FLAGS.
"minfree=0,optimization=space" is defined at
../../common/Makefile.image.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2003/11/02 16:02:09 chs Exp $
d8 1
a8 1
IMAGESIZE=	500k
@


1.35.16.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2007/06/24 05:41:53 isaki Exp $
d8 1
a8 1
IMAGESIZE=	600k
@


1.35.12.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d8 1
a8 1
IMAGESIZE=	600k
@


1.35.12.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35.12.1 2008/06/02 13:21:18 mjf Exp $
@


1.35.14.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2007/06/24 05:41:53 isaki Exp $
d8 1
a8 1
IMAGESIZE=	600k
@


1.34
log
@commands have grown, make the ramdisk bigger.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2003/10/26 10:59:57 mycroft Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 6 -o minfree=0,optimization=space,density=3500
@


1.33
log
@Carefully tweak some makefs parameters so this builds.
XXX This is very fragile and has absolutely no slop space right now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2003/10/26 10:03:45 mycroft Exp $
d8 1
a8 1
IMAGESIZE=	400k
@


1.32
log
@MAKEDEV no longer supports __ramdisk.  However, now we have too many device
nodes and the ramdisk overflows.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2003/04/02 10:39:21 fvdl Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 15 -o minfree=0,optimization=space,density=4096
@


1.31
log
@Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2002/05/17 17:52:36 lukem Exp $
d18 1
a18 1
MAKEDEVTARGETS=	__ramdisk std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 fd0
@


1.30
log
@convert to NDWO, a la sun2.

XXX:	untested.
	also needs sun3 converted to sun68k/stand/bootxx so that
	the ${INSTALLBOOT} in miniroot can be enabled.

XXX^2:	sun2 & sun3 should share distrib dirs since they're extremely similar...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2002/05/02 18:02:57 lukem Exp $
d9 1
a9 1
MAKEFS_FLAGS=	-f 15 -o minfree=0,optimization=space,density=4096,cpg=20
@


1.29
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.28 2002/04/26 15:50:49 lukem Exp $
d5 1
d7 19
a25 72
TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"

DBG=	-Os

IMAGE=	ramdisk
CBIN=	rd_bin

TREE=	${TOP}/common/${IMAGE}.tree

LISTS=	${TOP}/common/${CBIN}.list \
	${TOP}/common/${IMAGE}.list

KERNEL3  = ${KERNOBJDIR}/RAMDISK/netbsd
KERNEL3X = ${KERNOBJDIR}/RAMDISK3X/netbsd

MOUNT_POINT?=	/mnt
VND?=		vnd1
VND_DEV?=	/dev/${VND}a
VND_RDEV?=	/dev/r${VND}a

# These are all the parameters for the root fs:
DISKTYPE=	rdroot
SIZE=		400k
# bigendian, minfree, opt, b/i , cpg
NEWFSARGS= -B be -m 0 -o space -i 4096 -c 20
MDSETIMAGE?=	mdsetimage
MTREE?=		mtree

KERNELS= netbsd.RAMDISK netbsd.RAMDISK3X
CLEANFILES= $(KERNELS) ${IMAGE}.fs netbsd-tmp

all: $(KERNELS)

netbsd.RAMDISK : ${IMAGE}.fs
	cp ${KERNEL3} netbsd-tmp
	${MDSETIMAGE} -v netbsd-tmp ${IMAGE}.fs
	-mv -f netbsd-tmp $@@

netbsd.RAMDISK3X : ${IMAGE}.fs
	cp ${KERNEL3X} netbsd-tmp
	${MDSETIMAGE} -v netbsd-tmp ${IMAGE}.fs
	-mv -f netbsd-tmp $@@

${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN}
	dd if=/dev/zero of=${IMAGE}.fs bs=${SIZE} count=1
	vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}.fs
	disklabel -rw ${VND} ${DISKTYPE}
	newfs ${NEWFSARGS} ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	${MTREE} -def ${TREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} DESTDIR=${DESTDIR} \
	  OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
	  sh ${TOP}/common/RunList.sh ${LISTS}
	sync
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}

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

# Do not delete this if I change my mind and kill make...
.PRECIOUS: ${IMAGE}.fs

# Rules for making ${CBIN} ...
.include "${TOP}/common/Make.crunch"
d30 1
a30 7
${CBIN}:	libhack.o

release: check_RELEASEDIR .WAIT $(KERNELS)
.for x in ${KERNELS}
	gzip -c -9 < ${x} > \
	 ${RELEASEDIR}/binary/kernel/${x}.gz
.endfor # KERNELS
d32 4
a35 1
.INTERRUPT: unconfig
@


1.28
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 2
#	$NetBSD: Makefile,v 1.27 2002/04/18 15:36:58 bouyer Exp $

d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d84 1
a84 10
clean cleandir distclean:
	-rm -f a.out core *.core *.o *.cro *.c
	-rm -f ${CLEANFILES}

.if !defined(RELEASEDIR)
release:
	@@echo setenv RELEASEDIR before doing that!
	@@false
.else	# RELEASEDIR
release: $(KERNELS)
a88 1
.endif	# RELEASEDIR
a91 2
# Standard rules needed by the above...
.include <bsd.own.mk>
a92 2
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
@


1.27
log
@Include .include <bsd.own.mk> to get ${_SRC_TOP_}, and
${_SRC_TOP_}/distrib/Makefile.inc to get DISTRIBDIR & al.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2002/04/06 18:16:12 tsutsui Exp $
d5 1
a5 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.26
log
@Set DBG=-Os for libhack.
@
text
@d1 5
a5 1
#	$NetBSD: Makefile,v 1.25 2002/03/28 04:33:24 lukem Exp $
a8 1
# This include just sets DISTRIBREV=XX
@


1.25
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.24 2002/03/25 07:43:48 lukem Exp $
d7 2
@


1.24
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.23 2002/03/06 12:15:20 lukem Exp $
a74 3
# This is listed in rd_bin.conf but is built here.
${CBIN} : libhack.o

d76 3
a78 3
HACKSRC=${TOP}/../utils/libhack
.include "${HACKSRC}/Makefile.inc"
HACKOBJS+=	gethost.o
@


1.23
log
@replace local ${REV} with ${DISTRIBREV} from distrib/Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2002/02/23 17:27:42 chs Exp $
d81 1
@


1.22
log
@make this work in the new build system.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2001/11/09 21:00:04 tsutsui Exp $
d5 1
a5 1
# This include just sets REV=XX
@


1.21
log
@Use ${VND} (not ${VND_DEV}) for vnconfig in unconfig target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2001/10/21 23:23:23 jmc Exp $
a6 1
.include <bsd.own.mk>
d98 2
d101 2
a103 1
.include <bsd.sys.mk>
@


1.20
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.19 2001/10/13 06:15:21 jmc Exp $
d67 1
a67 1
	-vnconfig -u ${VND_DEV}
@


1.19
log
@Add MTREE?= to add Makefiles and use  when running mtree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2001/10/04 08:17:42 chs Exp $
d7 1
d30 1
d40 1
a40 1
	mdsetimage -v netbsd-tmp ${IMAGE}.fs
d45 1
a45 1
	mdsetimage -v netbsd-tmp ${IMAGE}.fs
@


1.18
log
@reduce ramdisk size back to what it was before.
everything fits since tsutsui fixed libhack.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2001/07/30 00:09:08 chs Exp $
d29 1
d52 1
a52 1
	mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
@


1.17
log
@increase the memory disk size, it needs to be bigger with ELF.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2001/05/19 03:30:22 chs Exp $
d26 1
a26 1
SIZE=		500k
@


1.16
log
@include bsd.sys.mk for DESTDIR builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2001/02/13 03:11:26 jmc Exp $
d26 1
a26 1
SIZE=		400k
@


1.15
log
@Add an unconfig rule
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2000/06/19 23:46:08 tsutsui Exp $
d98 1
@


1.14
log
@Rename netbsd-RAMDISK{,3X}.gz -> netbsd.RAMDISK{,3X}.gz for consistency.
etc/Makefile uses ${KERNEL}.${CONFIGFILE}.gz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2000/06/10 03:01:14 tsutsui Exp $
d61 5
@


1.13
log
@- Pass ${DESTDIR} to RunList.sh.
- Remove *.cro and *.c on make clean.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2000/06/09 15:03:34 tsutsui Exp $
d30 1
a30 1
KERNELS= netbsd-RAMDISK netbsd-RAMDISK3X
d35 1
a35 1
netbsd-RAMDISK : ${IMAGE}.fs
d40 1
a40 1
netbsd-RAMDISK3X : ${IMAGE}.fs
@


1.12
log
@- Use vnd instead of sd1b to build ramdisk image.
- Adjust ramdisk size.
- Switch to MI mdsetimage(8) from home-grown rdsetroot.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1999/05/21 04:06:20 gwr Exp $
d52 1
a52 1
	TOPDIR=${TOP} CURDIR=${.CURDIR} \
d76 1
a76 1
	-rm -f a.out core *.core *.o
a78 3
# Standard rules needed by the above...
.include <bsd.obj.mk>

d90 4
@


1.11
log
@Add a release target to automate building release snapshots.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1999/05/18 07:31:56 gwr Exp $
d20 3
a22 2
BDEV?=		/dev/sd1b
CDEV?=		/dev/rsd1b
d24 1
a24 1
# These are all the parameters for the root fs: (320K)
d26 3
a28 3
NBLKS=		640
# bigendian, old format, minfree, opt, b/i  trks, sects, cpg
NEWFSARGS= -B be -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
d31 1
a31 1
CLEANFILES= $(KERNELS) rdsetroot ${IMAGE}.fs
d35 1
a35 1
netbsd-RAMDISK : rdsetroot ${IMAGE}.fs
d37 1
a37 1
	./rdsetroot  netbsd-tmp < ${IMAGE}.fs
d40 1
a40 1
netbsd-RAMDISK3X : rdsetroot ${IMAGE}.fs
d42 1
a42 1
	./rdsetroot  netbsd-tmp < ${IMAGE}.fs
a44 3
rdsetroot: ${TOP}/common/rdsetroot.c
	$(CC) -o $@@ -DDEBUG ${TOP}/common/rdsetroot.c

d46 5
a50 2
	-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
	mount ${BDEV} ${MOUNT_POINT}
d59 2
a60 3
	-umount ${MOUNT_POINT}
	dd if=${CDEV} of=$@@ bs=16b \
	  count=`expr ${NBLKS} / 16`
@


1.10
log
@Increase ramdisk size
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1999/05/16 08:21:53 gwr Exp $
d29 2
a30 1
CLEANFILES= netbsd-rd.sun3 netbsd-rd.sun3x rdsetroot ${IMAGE}.fs
d32 1
a32 1
all: netbsd-rd.sun3 netbsd-rd.sun3x
d34 1
a34 1
netbsd-rd.sun3 : rdsetroot ${IMAGE}.fs
d39 1
a39 1
netbsd-rd.sun3x : rdsetroot ${IMAGE}.fs
d81 12
@


1.9
log
@updates for the 1.4 release
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/04/22 04:32:12 gwr Exp $
d23 1
a23 1
# These are all the parameters for the root fs: (256K)
d25 1
a25 1
NBLKS=		512
@


1.8
log
@Put -B be in NEWFSARGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/03/04 20:32:21 wrstuden Exp $
d16 2
a17 2
KERNEL3 = ${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd
KERNEL3X= ${SRCSYSDIR}/arch/sun3/compile/RAMDISK3X/netbsd
d19 3
a21 5
MOUNT_POINT=	/mnt
#BDEV=		/dev/md0
#CDEV=		/dev/md0
BDEV=		/dev/sd1b
CDEV=		/dev/rsd1b
d26 1
a26 1
# old format, minfree, opt, b/i  trks, sects, cpg
@


1.7
log
@Modify all calls to newfs in ramdisk/miniroot creation to include
the needed endianism of the architecture. One step towards cross-building
releases.

Not touched are newfs calls in install scripts as they run on the desired
machine and thus default correctly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1998/09/05 14:46:17 lukem Exp $
d29 1
a29 1
NEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
d49 1
a49 1
	-newfs -B be ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
@


1.7.2.1
log
@pullup 1.7->1.11 (gwr)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1999/05/21 04:06:20 gwr Exp $
d16 2
a17 2
KERNEL3  = ${KERNOBJDIR}/RAMDISK/netbsd
KERNEL3X = ${KERNOBJDIR}/RAMDISK3X/netbsd
d19 5
a23 3
MOUNT_POINT?=	/mnt
BDEV?=		/dev/sd1b
CDEV?=		/dev/rsd1b
d25 1
a25 1
# These are all the parameters for the root fs: (320K)
d27 3
a29 3
NBLKS=		640
# bigendian, old format, minfree, opt, b/i  trks, sects, cpg
NEWFSARGS= -B be -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
d31 1
a31 2
KERNELS= netbsd-RAMDISK netbsd-RAMDISK3X
CLEANFILES= $(KERNELS) rdsetroot ${IMAGE}.fs
d33 1
a33 1
all: $(KERNELS)
d35 1
a35 1
netbsd-RAMDISK : rdsetroot ${IMAGE}.fs
d40 1
a40 1
netbsd-RAMDISK3X : rdsetroot ${IMAGE}.fs
d49 1
a49 1
	-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
a81 12

.if !defined(RELEASEDIR)
release:
	@@echo setenv RELEASEDIR before doing that!
	@@false
.else	# RELEASEDIR
release: $(KERNELS)
.for x in ${KERNELS}
	gzip -c -9 < ${x} > \
	 ${RELEASEDIR}/binary/kernel/${x}.gz
.endfor # KERNELS
.endif	# RELEASEDIR
@


1.7.2.2
log
@Apply patch (requested by toddpw):
  Convert sun3 miniroot/ramdisk build process to use vnd devices
  instead of requiring a scratch partition on some local disk. Also
  remove dependency on /etc/disktab entry.  Support recursive
  ``depend'' makes (do nothing though).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7.2.1 1999/06/21 03:19:34 perry Exp $
d20 4
a23 11
# DEV/RDEV file system device, CDEV/CRDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c

CYLS=		20
SECS=		16
TRKS=		2
TOTALSECT !=	expr ${CYLS} '*' ${SECS} '*' ${TRKS}
d25 3
a27 3
DISKTAB=	./${DISKTYPE}.disktab
GEOM=		512/${SECS}/${TRKS}/${CYLS}
INO_BYTES=	2048
d30 1
a30 1
CLEANFILES= $(KERNELS) rdsetroot ${IMAGE}.fs ${DISKTAB}
d47 3
a49 11
${DISKTAB}:
	echo "${DISKTYPE}:ty=simulated:se#512:nt#${TRKS}:ns#${SECS}:nc#${CYLS}:pa#${TOTALSECT}:oa#0:ba#4096:fa#512:ta=4.2BSD:pc#${TOTALSECT}:oc#0:" > $@@

${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} ${DISKTAB}
	dd if=/dev/zero of=$@@ bs=512 count=${TOTALSECT}
	vnconfig -v -c ${VND_CDEV} $@@ ${GEOM}
	disklabel -rw -f ${DISKTAB} ${VND_CDEV} ${DISKTYPE}
	disklabel -W ${VND_CDEV}
	# bigendian, old format, minfree, opt, b/i, cpg, device
	newfs -B be -O -m 0 -o space -i ${INO_BYTES} -c ${CYLS} ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
d58 3
a60 2
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}
d63 1
a63 2
# Yes delete the durn thing, in case the make fails because vnd is busy!!
#.PRECIOUS: ${IMAGE}.fs
d76 1
a76 1
	-rm -f a.out core *.core *.o *.cro
a77 3

# XXX -- prevent 'make depend' from bombing out
depend:
@


1.6
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1998/02/12 19:56:25 gwr Exp $
d49 1
a49 1
	-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
@


1.5
log
@Build two ramdisk kernels: netbsd-rd.sun3 and netbsd-rd.sun3x
(one for each machine architecture)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1997/12/12 03:46:59 gwr Exp $
d76 1
a76 1
clean cleandir:
@


1.4
log
@Do the dd with a larger block size.
Use /dev/sd1b as the tmp space.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1995/11/21 21:19:14 gwr Exp $
d16 2
a17 1
KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd
d31 1
a31 1
CLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs
d33 9
a41 2
netbsd-rd : rdsetroot ${IMAGE}.fs
	cp ${KERNEL} netbsd-tmp
@


1.3
log
@Ready for release
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1995/10/13 16:51:30 gwr Exp $
d19 4
a22 2
BDEV=		/dev/rd0
CDEV=		/dev/rd0
d52 2
a53 1
	dd if=${CDEV} of=$@@ count=${NBLKS}
@


1.3.2.1
log
@file Makefile was added on branch netbsd-1-1 on 1995-11-21 21:19:15 +0000
@
text
@d1 70
@


1.3.2.2
log
@Ready for release
@
text
@a0 70
#	$NetBSD: Makefile,v 1.3 1995/11/21 21:19:14 gwr Exp $

TOP=		${.CURDIR}/..

# This include just sets REV=XX
.include "${TOP}/Makefile.inc"

IMAGE=	ramdisk
CBIN=	rd_bin

TREE=	${TOP}/common/${IMAGE}.tree

LISTS=	${TOP}/common/${CBIN}.list \
	${TOP}/common/${IMAGE}.list

KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd

MOUNT_POINT=	/mnt
BDEV=		/dev/rd0
CDEV=		/dev/rd0

# These are all the parameters for the root fs: (256K)
DISKTYPE=	rdroot
NBLKS=		512
# old format, minfree, opt, b/i  trks, sects, cpg
NEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16

CLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs

netbsd-rd : rdsetroot ${IMAGE}.fs
	cp ${KERNEL} netbsd-tmp
	./rdsetroot  netbsd-tmp < ${IMAGE}.fs
	-mv -f netbsd-tmp $@@

rdsetroot: ${TOP}/common/rdsetroot.c
	$(CC) -o $@@ -DDEBUG ${TOP}/common/rdsetroot.c

${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN}
	-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
	mount ${BDEV} ${MOUNT_POINT}
	mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} \
	  OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
	  sh ${TOP}/common/RunList.sh ${LISTS}
	sync
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	-umount ${MOUNT_POINT}
	dd if=${CDEV} of=$@@ count=${NBLKS}

# Do not delete this if I change my mind and kill make...
.PRECIOUS: ${IMAGE}.fs

# Rules for making ${CBIN} ...
.include "${TOP}/common/Make.crunch"

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

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

clean cleandir:
	-rm -f a.out core *.core *.o
	-rm -f ${CLEANFILES}

# Standard rules needed by the above...
.include <bsd.obj.mk>
@


1.3.4.1
log
@Ready for 1.3_BETA
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1997/12/12 03:46:59 gwr Exp $
d19 2
a20 4
#BDEV=		/dev/md0
#CDEV=		/dev/md0
BDEV=		/dev/sd1b
CDEV=		/dev/rsd1b
d50 1
a50 2
	dd if=${CDEV} of=$@@ bs=16b \
	  count=`expr ${NBLKS} / 16`
@


1.3.4.2
log
@Pull up patch from gwr.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.4.1 1997/12/12 22:59:47 gwr Exp $
a30 2

all: netbsd-rd
@


1.2
log
@Minor cleanup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1.2.1 1995/10/12 00:01:33 gwr Exp $
d16 2
a18 1
DISKTYPE=	rdroot
d20 1
a20 3
CDEV?=		/dev/rd0

KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd
d23 1
d25 1
a25 1
# args: old fmt, minfree, opt, b/i  trks, sects, cpg
d28 1
a28 1
CLEANFILES= netbsd-rd rdsetroot
d38 12
a49 1
${IMAGE}.fs: ${CBIN} do_mount do_files do_umount
a54 3
# Rules used making ${IMAGE}.fs (do_*)
.include "${TOP}/common/Make.fsimage"

d58 1
@


1.2.2.1
log
@From HEAD: Ready for release
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1995/11/21 21:19:14 gwr Exp $
a15 2
KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd

d17 1
d19 3
a21 1
CDEV=		/dev/rd0
a23 1
DISKTYPE=	rdroot
d25 1
a25 1
# old format, minfree, opt, b/i  trks, sects, cpg
d28 1
a28 1
CLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs
d38 1
a38 12
${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN}
	-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
	mount ${BDEV} ${MOUNT_POINT}
	mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} \
	  OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
	  sh ${TOP}/common/RunList.sh ${LISTS}
	sync
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	-umount ${MOUNT_POINT}
d44 3
a49 1
# This is listed in rd_bin.conf but is built here.
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD$
d28 1
a28 3
CLEANFILES+= rdsetroot

.PRECIOUS: ${IMAGE}.fs
d41 3
d57 2
a58 1
	echo rm -f core ${CLEANFILES} *.o
@


1.1.1.1
log
@Support for making sun3 installation media.
@
text
@@


1.1.1.1.2.1
log
@Minor cleanup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 1995/10/08 23:07:53 gwr Exp $
d28 3
a30 1
CLEANFILES= netbsd-rd rdsetroot
a42 3
# Do not delete this if I change my mind and kill make...
.PRECIOUS: ${IMAGE}.fs

d56 1
a56 2
	-rm -f a.out core *.core *.o
	-rm -f ${CLEANFILES}
@
