Makefile revision 1.17
1#	$NetBSD: Makefile,v 1.17 2026/01/07 16:08:22 nia Exp $
2#
3
4# Install CD, to be made after 'build.sh release'
5# Requires populated $RELEASEDIR/${MACHINE}
6# 
7# Lots of effort to make this continue to fit within 700MB.
8
9.include <bsd.own.mk>
10
11CDMAKEFSEXTRAOPTS=	-m 700m
12
13.include "${.CURDIR}/../../../common/Makefile.minibase"
14.include "${.CURDIR}/../Makefile.cdrom"
15
16CDBASE=		i386cd			# gives ${CDBASE}.iso
17CDRELEASE=	true                    # include $RELEASEDIR/$RELEASEMACHINEDIR
18CDRELEASE_NODEBUG=	true
19CDRELEASE_NOHTML=	true
20CDRELEASE_NOTESTS=	true
21CDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
22CLEANFILES+=	boot.cfg
23
24# already (probably) booting from CD if using this and the floppy images
25# are 20MB+ when combined
26CDRELEASE_EXCLUDE+=	-s ',./installation/floppy/.*,,gp'
27
28# MONOLITHIC (i386-only) was originally added to the release build
29# for upgrades from netbsd-5, and now primarily exists so the no-modules
30# build can continue to be tested.  this takes up 20MB+ space.
31# 
32# the INSTALL kernel is not used by the CD-ROMs, and MICROVM should be
33# booted directly by QEMU rather than via the installer ISO.
34CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.*,,gp'
35CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.*,,gp'
36CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MICROVM.*,,gp'
37CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.*,,gp'
38CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
39CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MICROVM.*,,gp'
40
41prepare_md_post:
42	${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
43
44.include "${.CURDIR}/../../../common/Makefile.bootcd"
45