Makefile revision 1.15
1#	$NetBSD: Makefile,v 1.15 2026/01/06 09:22:13 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# these are large files, not much use on an installation CD,
12# and take up megabytes of precious space
13CDSETS_EXCLUDE+=	usr/bin/atf-*
14CDSETS_EXCLUDE+=	usr/bin/cpp
15CDSETS_EXCLUDE+=	usr/bin/gcpp
16CDSETS_EXCLUDE+=	usr/libexec/postfix/*
17CDSETS_EXCLUDE+=	usr/sbin/dhcpd
18CDSETS_EXCLUDE+=	usr/sbin/dhcrelay
19CDSETS_EXCLUDE+=	usr/sbin/hostapd
20CDSETS_EXCLUDE+=	usr/sbin/ipftest
21CDSETS_EXCLUDE+=	usr/sbin/named
22CDSETS_EXCLUDE+=	usr/sbin/omshell
23CDSETS_EXCLUDE+=	usr/sbin/post*
24CDSETS_EXCLUDE+=	usr/share/misc/magic.mgc
25CDSETS_EXCLUDE+=	sbin/ipf
26CDSETS_EXCLUDE+=	sbin/pfctl
27
28.include "${.CURDIR}/../Makefile.cdrom"
29
30CDBASE=		i386cd			# gives ${CDBASE}.iso
31CDRELEASE=	true                    # include $RELEASEDIR/$RELEASEMACHINEDIR
32CDRELEASE_NODEBUG=	true
33CDRELEASE_NOHTML=	true
34CDRELEASE_NOTESTS=	true
35CDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
36CLEANFILES+=	boot.cfg
37
38# already (probably) booting from CD if using this and the floppy images
39# are 20MB+ when combined
40CDRELEASE_EXCLUDE+=	-s ',./installation/floppy/.*,,gp'
41
42# MONOLITHIC (i386-only) was originally added to the release build
43# for upgrades from netbsd-5, and now primarily exists so the no-modules
44# build can continue to be tested.  this takes up 20MB+ space.
45# 
46# the INSTALL kernel is not used by the CD-ROMs, and MICROVM should be
47# booted directly by QEMU rather than via the installer ISO.
48CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.*,,gp'
49CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.*,,gp'
50CDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MICROVM.*,,gp'
51CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.*,,gp'
52CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
53CDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MICROVM.*,,gp'
54
55prepare_md_post:
56	${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
57
58.include "${.CURDIR}/../../../common/Makefile.bootcd"
59