head	1.17;
access;
symbols
	netbsd-11-0-RC4:1.12
	netbsd-11-0-RC3:1.12
	netbsd-11-0-RC2:1.12
	netbsd-11-0-RC1:1.12
	perseant-exfatfs-base-20250801:1.12
	netbsd-11:1.12.0.4
	netbsd-11-base:1.12
	netbsd-10-1-RELEASE:1.10.8.1
	perseant-exfatfs-base-20240630:1.12
	perseant-exfatfs:1.12.0.2
	perseant-exfatfs-base:1.12
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.9
	netbsd-10-0-RELEASE:1.10
	netbsd-10-0-RC6:1.10
	netbsd-10-0-RC5:1.10
	netbsd-10-0-RC4:1.10
	netbsd-10-0-RC3:1.10
	netbsd-10-0-RC2:1.10
	netbsd-10-0-RC1:1.10
	netbsd-10:1.10.0.8
	netbsd-10-base:1.10
	netbsd-9-3-RELEASE:1.9
	cjep_sun2x-base1:1.10
	cjep_sun2x:1.10.0.6
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	netbsd-9-2-RELEASE:1.9
	cjep_staticlib_x:1.10.0.4
	cjep_staticlib_x-base:1.10
	netbsd-9-1-RELEASE:1.9
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	is-mlppp:1.10.0.2
	is-mlppp-base:1.10
	phil-wifi-20200406:1.10
	netbsd-8-2-RELEASE:1.8
	netbsd-9-0-RELEASE:1.9
	netbsd-9-0-RC2:1.9
	netbsd-9-0-RC1:1.9
	phil-wifi-20191119:1.10
	netbsd-9:1.9.0.2
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	pgoyette-compat-merge-20190127:1.8.48.1
	pgoyette-compat-20190127:1.9
	pgoyette-compat-20190118:1.9
	pgoyette-compat-1226:1.9
	pgoyette-compat-1126:1.9
	pgoyette-compat-1020:1.9
	pgoyette-compat-0930:1.9
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.8
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.8.0.50
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.8
	pgoyette-compat:1.8.0.48
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.8
	matt-nb8-mediatek:1.8.0.46
	matt-nb8-mediatek-base:1.8
	perseant-stdc-iso10646:1.8.0.44
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.42
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.40
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	netbsd-7-1:1.8.0.38
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-nhusb-base-20170116:1.8
	bouyer-socketcan:1.8.0.36
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	netbsd-7-1-RC1:1.8
	pgoyette-localcount-20161104:1.8
	netbsd-7-0-2-RELEASE:1.8
	localcount-20160914:1.8
	netbsd-7-nhusb:1.8.0.34
	netbsd-7-nhusb-base:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.32
	pgoyette-localcount-base:1.8
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.30
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.8.0.28
	netbsd-7-base:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.8.0.26
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.8
	riastradh-drm2-base1:1.8
	riastradh-drm2:1.8.0.18
	riastradh-drm2-base:1.8
	netbsd-6-1:1.8.0.24
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	khorben-n900:1.8.0.22
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.8.0.20
	agc-symver-base:1.8
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.5.0.14
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.8
	netbsd-6-0:1.8.0.16
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.8.0.14
	tls-maxphys-base:1.8
	matt-nb6-plus:1.8.0.12
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-6:1.8.0.10
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.8
	yamt-pagecache-base:1.8
	cherry-xenmp:1.8.0.6
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.4
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.5
	matt-nb5-pq3:1.5.0.12
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.10
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	matt-nb5-mips64-k15:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	netbsd-5-0-2-RELEASE:1.5
	matt-nb5-mips64-premerge-20091211:1.5
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5
	matt-nb4-mips64-k7-u2a-k9b:1.5
	matt-nb5-mips64-u1-k1-k5:1.5
	matt-nb5-mips64:1.5.0.8
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.8
	netbsd-5-0:1.5.0.6
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.8.0.2
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.4
	netbsd-5-base:1.5
	matt-mips64-base2:1.5
	matt-mips64:1.3.0.6
	netbsd-4-0-1-RELEASE:1.1.2.1
	wrstuden-revivesa-base-3:1.5
	wrstuden-revivesa-base-2:1.5
	wrstuden-fixsa-newbase:1.1.2.1
	wrstuden-revivesa-base-1:1.5
	yamt-pf42-base4:1.5
	yamt-pf42-base3:1.5
	hpcarm-cleanup-nbase:1.5
	yamt-pf42-baseX:1.4
	yamt-pf42-base2:1.5
	wrstuden-revivesa:1.5.0.2
	wrstuden-revivesa-base:1.5
	yamt-pf42:1.4.0.10
	yamt-pf42-base:1.4
	mjf-devfs2:1.4.0.8
	mjf-devfs2-base:1.5
	keiichi-mipv6:1.4.0.6
	keiichi-mipv6-base:1.4
	mjf-devfs:1.4.0.4
	mjf-devfs-base:1.4
	matt-armv6-nbase:1.4
	matt-armv6-prevmlocking:1.3
	wrstuden-fixsa-base-1:1.1.2.1
	netbsd-4-0:1.1.2.1.0.4
	netbsd-4-0-RELEASE:1.1.2.1
	cube-autoconf:1.4.0.2
	cube-autoconf-base:1.4
	netbsd-4-0-RC5:1.1.2.1
	netbsd-4-0-RC4:1.1.2.1
	netbsd-4-0-RC3:1.1.2.1
	netbsd-4-0-RC2:1.1.2.1
	netbsd-4-0-RC1:1.1.2.1
	matt-armv6:1.3.0.4
	matt-armv6-base:1.4
	matt-mips64-base:1.3
	hpcarm-cleanup:1.3.0.2
	hpcarm-cleanup-base:1.4
	wrstuden-fixsa:1.1.2.1.0.2
	wrstuden-fixsa-base:1.1.2.1
	netbsd-4:1.1.0.2
	netbsd-4-base:1.1;
locks; strict;
comment	@# @;


1.17
date	2026.01.07.16.08.22;	author nia;	state Exp;
branches;
next	1.16;
commitid	D2Qx4AAGLjE4HtpG;

1.16
date	2026.01.06.09.29.21;	author nia;	state Exp;
branches;
next	1.15;
commitid	5BGgNAcIZQHqwjpG;

1.15
date	2026.01.06.09.22.13;	author nia;	state Exp;
branches;
next	1.14;
commitid	UvQ8keKlTRRYtjpG;

1.14
date	2026.01.05.20.25.24;	author nia;	state Exp;
branches;
next	1.13;
commitid	AG8LOuIe7N7dbfpG;

1.13
date	2026.01.05.19.17.02;	author nia;	state Exp;
branches;
next	1.12;
commitid	DwNjrT4uONCZNepG;

1.12
date	2024.04.25.11.56.51;	author nia;	state Exp;
branches;
next	1.11;
commitid	J5iBEnqKKdPkiw7F;

1.11
date	2024.04.23.20.37.08;	author nia;	state Exp;
branches;
next	1.10;
commitid	QOmNeq4mqX66fj7F;

1.10
date	2019.09.23.13.42.33;	author christos;	state Exp;
branches
	1.10.8.1;
next	1.9;
commitid	6ImXbYN9X0dSK8EB;

1.9
date	2018.09.28.15.05.21;	author martin;	state Exp;
branches;
next	1.8;
commitid	tfpG5rljjqZGMSTA;

1.8
date	2008.12.02.10.48.21;	author ad;	state Exp;
branches
	1.8.48.1
	1.8.50.1;
next	1.7;

1.7
date	2008.12.01.10.20.57;	author ad;	state Exp;
branches;
next	1.6;

1.6
date	2008.11.21.15.49.51;	author ad;	state Exp;
branches;
next	1.5;

1.5
date	2008.05.02.23.13.06;	author ad;	state Exp;
branches;
next	1.4;

1.4
date	2007.11.23.16.21.22;	author sborrill;	state Exp;
branches
	1.4.4.1
	1.4.8.1
	1.4.10.1;
next	1.3;

1.3
date	2007.03.08.13.48.36;	author bouyer;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2007.03.06.21.52.46;	author bouyer;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.29.17.58.15;	author hubertf;	state Exp;
branches
	1.1.2.1;
next	;

1.10.8.1
date	2024.05.11.14.31.57;	author martin;	state Exp;
branches;
next	;
commitid	X7ekLHRu1YQ5EA9F;

1.8.48.1
date	2018.09.30.01.45.02;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.8.50.1
date	2019.06.10.21.42.23;	author christos;	state Exp;
branches;
next	1.8.50.2;
commitid	jtc8rnCzWiEEHGqB;

1.8.50.2
date	2020.04.13.07.45.28;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.4.4.1
date	2007.11.23.16.21.22;	author sborrill;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2007.11.23.16.21.23;	author sborrill;	state Exp;
branches;
next	;

1.4.8.1
date	2008.06.02.13.21.13;	author mjf;	state Exp;
branches;
next	1.4.8.2;

1.4.8.2
date	2008.10.05.20.10.20;	author mjf;	state dead;
branches;
next	;

1.4.10.1
date	2008.05.18.12.29.35;	author yamt;	state Exp;
branches;
next	;

1.3.4.1
date	2008.01.09.01.27.53;	author matt;	state Exp;
branches;
next	;

1.1.2.1
date	2007.03.09.06.59.30;	author riz;	state Exp;
branches;
next	;


desc
@@


1.17
log
@distrib: Bail out if CD-ROMs are larger than 700MB.

PR port-i386/59889 i386 cd-rom iso for -current is overflowing 700MB limit
@
text
@#	$NetBSD: Makefile,v 1.16 2026/01/06 09:29:21 nia Exp $
#

# Install CD, to be made after 'build.sh release'
# Requires populated $RELEASEDIR/${MACHINE}
# 
# Lots of effort to make this continue to fit within 700MB.

.include <bsd.own.mk>

CDMAKEFSEXTRAOPTS=	-m 700m

.include "${.CURDIR}/../../../common/Makefile.minibase"
.include "${.CURDIR}/../Makefile.cdrom"

CDBASE=		i386cd			# gives ${CDBASE}.iso
CDRELEASE=	true                    # include $RELEASEDIR/$RELEASEMACHINEDIR
CDRELEASE_NODEBUG=	true
CDRELEASE_NOHTML=	true
CDRELEASE_NOTESTS=	true
CDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
CLEANFILES+=	boot.cfg

# already (probably) booting from CD if using this and the floppy images
# are 20MB+ when combined
CDRELEASE_EXCLUDE+=	-s ',./installation/floppy/.*,,gp'

# MONOLITHIC (i386-only) was originally added to the release build
# for upgrades from netbsd-5, and now primarily exists so the no-modules
# build can continue to be tested.  this takes up 20MB+ space.
# 
# the INSTALL kernel is not used by the CD-ROMs, and MICROVM should be
# booted directly by QEMU rather than via the installer ISO.
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.*,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.*,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MICROVM.*,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.*,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MICROVM.*,,gp'

prepare_md_post:
	${TOOL_SED} "s/@@@@VERSION@@@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg

.include "${.CURDIR}/../../../common/Makefile.bootcd"
@


1.16
log
@Reuse the "minified version of uncompressed base" idea to gain some
headroom on the sparc64 CD-ROM.

PR port-i386/59889 i386 cd-rom iso for -current is overflowing 700MB limit
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2026/01/06 09:22:13 nia Exp $
d11 2
@


1.15
log
@Obtain some more headroom for future growth on the i386 CD-ROM.

PR port-i386/59889 i386 cd-rom iso for -current is overflowing 700MB limit
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2026/01/05 20:25:24 nia Exp $
d11 1
a11 17
# these are large files, not much use on an installation CD,
# and take up megabytes of precious space
CDSETS_EXCLUDE+=	usr/bin/atf-*
CDSETS_EXCLUDE+=	usr/bin/cpp
CDSETS_EXCLUDE+=	usr/bin/gcpp
CDSETS_EXCLUDE+=	usr/libexec/postfix/*
CDSETS_EXCLUDE+=	usr/sbin/dhcpd
CDSETS_EXCLUDE+=	usr/sbin/dhcrelay
CDSETS_EXCLUDE+=	usr/sbin/hostapd
CDSETS_EXCLUDE+=	usr/sbin/ipftest
CDSETS_EXCLUDE+=	usr/sbin/named
CDSETS_EXCLUDE+=	usr/sbin/omshell
CDSETS_EXCLUDE+=	usr/sbin/post*
CDSETS_EXCLUDE+=	usr/share/misc/magic.mgc
CDSETS_EXCLUDE+=	sbin/ipf
CDSETS_EXCLUDE+=	sbin/pfctl

@


1.14
log
@i386: Remove some server programs and other non-essential parts of base
(for the purpose of installation) from the installation CD-ROM.

These continue to be present in base.tgz compressed on-disc, just not
uncompressed in the bootable CD image. So they still get installed into
the target system.

port-i386/59889 i386 cd-rom iso for -current is overflowing 700MB limit
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2026/01/05 19:17:02 nia Exp $
d13 1
d16 1
a17 1
CDSETS_EXCLUDE+=	usr/sbin/omshell
d20 4
d25 2
@


1.13
log
@i386: Do not include microvm or xen install kernels on the CD-ROM

Use the DVD image for these.

PR port-i386/59889 i386 cd-rom iso for -current is overflowing 700MB limit
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2024/04/25 11:56:51 nia Exp $
d6 2
d10 11
@


1.12
log
@remove redundant kernels and floppies from the space-starved i386 ISO
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2024/04/23 20:37:08 nia Exp $
d25 9
a33 7
.  for sufx in tgz tar.xz
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.${sufx},,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.${sufx},,gp'
.  endfor

CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.gz,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.gz,,gp'
@


1.11
log
@Reduce the size of the i386 ISO to help it fit on a CD-ROM

Exclude tests and html man pages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2019/09/23 13:42:33 christos Exp $
d18 15
@


1.10
log
@Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2018/09/28 15:05:21 martin Exp $
d13 2
@


1.10.8.1
log
@Pull up following revision(s) (requested by nia in ticket #682):

	sys/arch/i386/conf/LEGACY: revision 1.3
	distrib/common/Makefile.bootcd: revision 1.48
	share/mk/bsd.own.mk: revision 1.1373
	distrib/i386/cdroms/installcd/Makefile: revision 1.12
	distrib/common/bootimage/Makefile.installimage: revision 1.11

remove redundant kernels and floppies from the space-starved i386 ISO

Turn off MKAMDGPUFIRMWARE on i386

It's too big for the i386 install media and not useful on either
pre-2012 hardware or the kinds of embedded systems where i386 still
thrived after 2012.

(The build of the kernel parts of amdgpu on i386 is nevertheless useful
for finding obscure bugs.)

"go for it" riastradh

i386: disable DRMKMS drivers in LEGACY kernel (this is for ISA)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2019/09/23 13:42:33 christos Exp $
a15 15
# already (probably) booting from CD if using this and the floppy images
# are 20MB+ when combined
CDRELEASE_EXCLUDE+=	-s ',./installation/floppy/.*,,gp'

# MONOLITHIC (i386-only) was originally added to the release build
# for upgrades from netbsd-5, and now primarily exists so the no-modules
# build can continue to be tested.  this takes up 20MB+ space.
.  for sufx in tgz tar.xz
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.${sufx},,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.${sufx},,gp'
.  endfor

CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.gz,,gp'
CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.gz,,gp'

@


1.9
log
@Now that we do not force debug sets off install CDs any more, explicitly
set CDRELEASE_NODEBUG everywhere.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2008/12/02 10:48:21 ad Exp $
d11 1
a11 1
CDRELEASE=	true                    # include $RELEASEDIR/$MACHINE
@


1.8
log
@Oops, fix the build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2008/12/01 10:20:57 ad Exp $
d12 1
@


1.8.50.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2018/09/28 15:05:21 martin Exp $
a11 1
CDRELEASE_NODEBUG=	true
@


1.8.50.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
d11 1
a11 1
CDRELEASE=	true                    # include $RELEASEDIR/$RELEASEMACHINEDIR
@


1.8.48.1
log
@Ssync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2018/09/28 15:05:21 martin Exp $
a11 1
CDRELEASE_NODEBUG=	true
@


1.7
log
@Put sysinst onto the boot CDs, too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2008/11/21 15:49:51 ad Exp $
a13 1
SYSINSTDIR!=	cd ${.CURDIR}/../../../utils/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
@


1.6
log
@Switch the i386 installation CDs away from RAM disks and instead use the
CD-ROM as the root file system. It contains a limited subset of $DESTDIR
along with sysinst. This will help to massively reduce the amount of memory
needed to install from CD or netboot, and allow us to continue using the
generic kernel on the CDs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2008/05/02 23:13:06 ad Exp $
a18 7
image_md_pre:
	${CP} ${.CURDIR}/../../ramdisks/common/dot.profile cdrom/etc/rc
	${MKDIR} cdrom/mnt2 cdrom/targetroot
	${CP} ${SYSINSTDIR}/sysinst cdrom
	${CHMOD} ugo+rx cdrom/sysinst
	${CP} ${SYSINSTDIR}/sysinstmsgs.?? cdrom

@


1.5
log
@Put the GENERIC kernel onto i386 installation CDs and load a kernel module
from the boot loader to provide the miniroot.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2007/11/23 16:21:22 sborrill Exp $
d14 1
d19 7
@


1.4
log
@Add boot menu and welcome banner to installation CD allowing the user to
choose between the normal and non-ACPI kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2007/03/08 13:48:36 bouyer Exp $
d7 1
d12 1
a12 1
CDBUILDEXTRA=	boot.cfg		# Add boot.cfg file
@


1.4.4.1
log
@file Makefile was added on branch mjf-devfs on 2007-11-23 16:21:23 +0000
@
text
@d1 17
@


1.4.4.2
log
@Add boot menu and welcome banner to installation CD allowing the user to
choose between the normal and non-ACPI kernel.
@
text
@a0 17
#	$NetBSD: Makefile,v 1.4 2007/11/23 16:21:22 sborrill Exp $
#

# Install CD, to be made after 'build.sh release'
# Requires populated $RELEASEDIR/${MACHINE}

.include "${.CURDIR}/../Makefile.cdrom"

CDBASE=		i386cd			# gives ${CDBASE}.iso
CDRELEASE=	true                    # include $RELEASEDIR/$MACHINE
CDBUILDEXTRA=	boot.cfg		# Add boot.cfg file
CLEANFILES+=	boot.cfg

prepare_md_post:
	${TOOL_SED} "s/@@@@VERSION@@@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg

.include "${.CURDIR}/../../../common/Makefile.bootcd"
@


1.4.8.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a6 1
.include <bsd.own.mk>
d11 1
a11 1
CDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
@


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


1.4.10.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2007/11/23 16:21:22 sborrill Exp $
a6 1
.include <bsd.own.mk>
d11 1
a11 1
CDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
@


1.3
log
@Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2007/03/06 21:52:46 bouyer Exp $
d10 6
a15 1
CDRELEASE=      true                    # include $RELEASEDIR/$MACHINE
@


1.3.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d10 1
a10 6
CDRELEASE=	true                    # include $RELEASEDIR/$MACHINE
CDBUILDEXTRA=	boot.cfg		# Add boot.cfg file
CLEANFILES+=	boot.cfg

prepare_md_post:
	${TOOL_SED} "s/@@@@VERSION@@@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
@


1.2
log
@Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
  non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/10/29 17:58:15 hubertf Exp $
a9 3
CDKERNELS=	netbsd-INSTALL_LARGE.gz	netbsd	# from ../instkernel
CDKERNELS+=	netbsd-INSTALL_LAPTOP.gz nbsd-l
CDKERNELS+=	netbsd-INSTALL.gz	nbsd-i
@


1.1
log
@Add example on how to make an install CD - it's the same
as the bootcd* CDs just with the install sets added to
the CD as well.

XXX 1) The implementation of this is rather cludgy (copying sets around),
       as our makefs(8) can't put files from multiple directories into
       one image -- something that mkisofs can do with 'graft' points
XXX 2) This should be run after 'build.sh release' - It would be nice
       if we had a seperate stage to add such hooks in our build framework
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/06/02 22:35:22 hubertf Exp $
d7 6
a12 2
CDBASE=		boot			# gives ${CDBASE}.iso
CDKERNEL=	netbsd-INSTALL.gz	# from ../instkernel
@


1.1.2.1
log
@Pull up following revision(s) (requested by bouyer in ticket #494):
	sys/arch/i386/conf/GENERIC.MP: revision 1.9
	distrib/pc532/cdroms/installcd/Makefile: revision 1.1
	distrib/macppc/Makefile: revision 1.15
	distrib/ofppc/Makefile: revision 1.2
	distrib/ibmnws/Makefile: revision 1.2
	distrib/acorn32/Makefile: revision 1.18
	distrib/x68k/cdroms/installcd/Makefile: revision 1.1
	distrib/sparc/Makefile: revision 1.7
	distrib/sparc64/cdroms/Makefile: revision 1.1
	distrib/hp300/cdroms/Makefile: revision 1.1
	distrib/hpcsh/Makefile: revision 1.6
	distrib/ofppc/cdroms/installcd/Makefile: revision 1.1
	distrib/playstation2/Makefile: revision 1.13
	distrib/news68k/cdroms/installcd/Makefile: revision 1.1
	distrib/amiga/cdroms/installcd/Makefile: revision 1.1
	distrib/hp700/cdroms/installcd/Makefile: revision 1.1
	distrib/playstation2/cdroms/Makefile: revision 1.1
	distrib/amiga/cdroms/Makefile: revision 1.1
	etc/etc.mac68k/Makefile.inc: revision 1.18
	distrib/shark/cdroms/installcd/Makefile: revision 1.1
	distrib/hpcmips/Makefile: revision 1.28
	distrib/hpcmips/cdroms/Makefile: revision 1.1
	distrib/amd64/floppies/Makefile: revision 1.3
	sys/arch/amd64/conf/INSTALL_ACPI: file removal
	distrib/i386/cdroms/Makefile: revision 1.4
	distrib/acorn26/cdroms/installcd/Makefile: revision 1.1
	distrib/hpcsh/cdroms/Makefile: revision 1.1
	distrib/prep/cdroms/Makefile: revision 1.1
	distrib/pc532/Makefile: revision 1.4
	distrib/acorn32/cdroms/installcd/Makefile: revision 1.1
	distrib/sun2/Makefile: revision 1.8
	distrib/vax/Makefile: revision 1.17
	distrib/sparc64/cdroms/installcd/Makefile: revision 1.1
	distrib/pmax/cdroms/Makefile: revision 1.1
	distrib/mipsco/cdroms/installcd/Makefile: revision 1.1
	distrib/sun3/cdroms/installcd/Makefile: revision 1.1
	distrib/vax/cdroms/installcd/Makefile: revision 1.1
	distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1
	distrib/mvme68k/Makefile: revision 1.4
	distrib/mvmeppc/cdroms/Makefile: revision 1.1
	distrib/newsmips/Makefile: revision 1.4
	sys/arch/i386/conf/GENERIC.MPACPI: file removal
	distrib/hpcarm/cdroms/Makefile: revision 1.1
	distrib/evbppc/cdroms/Makefile: revision 1.1
	sys/arch/i386/conf/INSTALL_LARGE: revision 1.1
	distrib/i386/cdroms/installcd/Makefile: revision 1.2
	distrib/i386/cdroms/installcd/Makefile: revision 1.3
	doc/CHANGES: revision 1.804
	distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1
	distrib/i386/cdroms/bootcd/Makefile: revision 1.2
	distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1
	distrib/i386/cdroms/bootcd/Makefile: revision 1.3
	distrib/evbarm/Makefile: revision 1.8
	distrib/mvmeppc/Makefile: revision 1.3
	distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2
	distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3
	distrib/macppc/cdroms/installcd/Makefile: revision 1.1
	distrib/acorn26/cdroms/Makefile: revision 1.1
	distrib/alpha/cdroms/Makefile: revision 1.1
	distrib/hp300/cdroms/installcd/Makefile: revision 1.1
	distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4
	distrib/pmppc/cdroms/installcd/Makefile: revision 1.1
	distrib/hp700/Makefile: revision 1.2
	distrib/pmppc/Makefile: revision 1.2
	distrib/arc/cdroms/Makefile: revision 1.1
	sys/arch/amd64/conf/INSTALL: revision 1.66
	distrib/sun3/cdroms/Makefile: revision 1.1
	distrib/mipsco/Makefile: revision 1.4
	distrib/sun3/Makefile: revision 1.9
	distrib/vax/cdroms/Makefile: revision 1.1
	distrib/pmppc/cdroms/Makefile: revision 1.1
	distrib/amd64/cdroms/Makefile.cdrom: revision 1.1
	distrib/atari/cdroms/installcd/Makefile: revision 1.1
	distrib/evbppc/cdroms/installcd/Makefile: revision 1.1
	distrib/newsmips/cdroms/installcd/Makefile: revision 1.1
	distrib/pmax/Makefile: revision 1.4
	Makefile: revision 1.247
	distrib/cats/cdroms/installcd/Makefile: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.130
	sys/arch/amd64/conf/GENERIC: revision 1.131
	distrib/sgimips/cdroms/installcd/Makefile: revision 1.1
	distrib/hp700/cdroms/Makefile: revision 1.1
	distrib/cats/cdroms/Makefile: revision 1.1
	distrib/evbmips/Makefile: revision 1.3
	distrib/evbmips/Makefile: revision 1.4
	sys/arch/amd64/conf/GENERIC_ACPI: file removal
	distrib/ews4800mips/Makefile: revision 1.2
	distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2
	distrib/i386/Makefile: revision 1.5
	distrib/amd64/cdroms/installcd/Makefile: revision 1.2
	distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1
	distrib/alpha/cdroms/installcd/Makefile: revision 1.1
	etc/etc.amd64/Makefile.inc: revision 1.7
	distrib/i386/instkernel/Makefile: revision 1.6
	distrib/x68k/cdroms/Makefile: revision 1.1
	distrib/i386/cdroms/Makefile.cdrom: revision 1.1
	distrib/sandpoint/Makefile: revision 1.4
	distrib/i386/cdroms/Makefile.cdrom: revision 1.2
	distrib/amiga/Makefile: revision 1.3
	distrib/amd64/cdroms/bootcd/Makefile: revision 1.2
	distrib/news68k/Makefile: revision 1.4
	distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5
	distrib/news68k/cdroms/Makefile: revision 1.1
	distrib/sparc/cdroms/Makefile: revision 1.1
	distrib/shark/cdroms/Makefile: revision 1.1
	etc/Makefile: revision 1.341
	distrib/amd64/instkernel/Makefile: revision 1.2
	distrib/sparc64/Makefile: revision 1.7
	distrib/dreamcast/cdroms/Makefile: revision 1.1
	distrib/shark/Makefile: revision 1.3
	distrib/ews4800mips/cdroms/Makefile: revision 1.1
	distrib/sun2/cdroms/installcd/Makefile: revision 1.1
	distrib/shark/Makefile: revision 1.4
	distrib/macppc/cdroms/Makefile: revision 1.1
	distrib/mvme68k/cdroms/Makefile: revision 1.1
	distrib/sun2/cdroms/Makefile: revision 1.1
	distrib/hpcarm/Makefile: revision 1.3
	distrib/arc/cdroms/installcd/Makefile: revision 1.1
	distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1
	distrib/mipsco/cdroms/Makefile: revision 1.1
	distrib/Makefile.inc: revision 1.9
	distrib/playstation2/cdroms/installcd/Makefile: revision 1.1
	distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1
	distrib/newsmips/cdroms/Makefile: revision 1.1
	distrib/arc/Makefile: revision 1.3
	distrib/sparc/cdroms/installcd/Makefile: revision 1.1
	distrib/evbmips/cdroms/installcd/Makefile: revision 1.1
	distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1
	distrib/prep/Makefile: revision 1.3
	distrib/ibmnws/cdroms/Makefile: revision 1.1
	distrib/sandpoint/cdroms/Makefile: revision 1.1
	distrib/atari/Makefile: revision 1.6
	distrib/sgimips/cdroms/Makefile: revision 1.1
	distrib/amd64/Makefile: revision 1.4
	distrib/atari/cdroms/Makefile: revision 1.1
	distrib/x68k/Makefile: revision 1.5
	distrib/x68k/Makefile: revision 1.6
	distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1
	distrib/evbarm/cdroms/Makefile: revision 1.1
	distrib/acorn32/cdroms/Makefile: revision 1.1
	distrib/cats/Makefile: revision 1.3
	distrib/evbmips/cdroms/Makefile: revision 1.1
	distrib/pc532/cdroms/Makefile: revision 1.1
	distrib/Makefile: revision 1.14
	distrib/evbarm/cdroms/installcd/Makefile: revision 1.1
	distrib/ofppc/cdroms/Makefile: revision 1.1
	distrib/amd64/cdroms/Makefile: revision 1.3
	distrib/common/Makefile.bootcd: revision 1.8
	distrib/i386/cdroms/bootcd-laptop/Makefile: file removal
	sys/arch/i386/conf/GENERIC: revision 1.813
	distrib/hp300/Makefile: revision 1.17
	sys/arch/i386/conf/GENERIC: revision 1.814
	distrib/evbppc/Makefile: revision 1.2
	distrib/pmax/cdroms/installcd/Makefile: revision 1.1
	etc/etc.i386/Makefile.inc: revision 1.49
	distrib/sgimips/Makefile: revision 1.2
	distrib/prep/cdroms/installcd/Makefile: revision 1.1
	distrib/acorn26/Makefile: revision 1.4
	distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1
	distrib/alpha/Makefile: revision 1.22
	distrib/dreamcast/Makefile: revision 1.2
Improve the use of makefs to build boot CDs, and make it truely MI:
- allow to specify the "instkernel" directory, and allow to put multiple
  kernels on the image
- allow to specify the directory where the image will be created
- only use bootxx_cd9660 if it exists
- search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to
  usr/mdec/boot
- make 'installboot -e' optional
- use target 'release' or 'iso_image' depending on ${CDRELEASE}
- call some MD targets, which will eventually complete the file list or
  make the image bootable
For the benefit of modern hardware, enable ACPI by default in INSTALL and
GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and
'disable acpi' should be a workaround. ACPI-enabled kernels works fine
on pre-acpi hardware.
for amd64:
- add ACPI to INSTALL and GENERIC, remove the *_ACPI config files.
- get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot
  image
for i386:
- introduce INSTALL_LARGE which has ACPI and some devices with big firmware
- move some devices from INSTALL to INSTALL_LARGE
- Boot floppies still use INSTALL, and bootfloppy-big.fs is still there
  (for thoses who want to build el-torito floppy emulation boot CD) and use
  INSTALL.
For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll
use something else to build bootable CDs.
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.
call iso_image in distrib/ for iso-image in the top Makefile.
Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
  non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/
Fix typo in subdir name.
Revert local changes that went in accidentally with the "add ACPI" commit.
Note ACPI by default in i386/amd64, and the iso-image changes.
Fix SUBDIR in previous
Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly.
Correct typo: the directory is named cdroms, not cdrom.
Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2006/10/29 17:58:15 hubertf Exp $
d7 2
a8 3
.include "${.CURDIR}/../Makefile.cdrom"

CDBASE=		i386cd			# gives ${CDBASE}.iso
@


