1#	$NetBSD: Makefile,v 1.12 2024/04/25 11:56:51 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.  for sufx in tgz tar.xz
26CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.${sufx},,gp'
27CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.${sufx},,gp'
28.  endfor
29
30CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.gz,,gp'
31CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.gz,,gp'
32
33prepare_md_post:
34	${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
35
36.include "${.CURDIR}/../../../common/Makefile.bootcd"
37