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