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