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
13 CDSETS_EXCLUDE+= usr/bin/atf-*
14 CDSETS_EXCLUDE+= usr/bin/cpp
15 CDSETS_EXCLUDE+= usr/bin/gcpp
16 CDSETS_EXCLUDE+= usr/libexec/postfix/*
17 CDSETS_EXCLUDE+= usr/sbin/dhcpd
18 CDSETS_EXCLUDE+= usr/sbin/dhcrelay
19 CDSETS_EXCLUDE+= usr/sbin/hostapd
20 CDSETS_EXCLUDE+= usr/sbin/ipftest
21 CDSETS_EXCLUDE+= usr/sbin/named
22 CDSETS_EXCLUDE+= usr/sbin/omshell
23 CDSETS_EXCLUDE+= usr/sbin/post*
24 CDSETS_EXCLUDE+= usr/share/misc/magic.mgc
25 CDSETS_EXCLUDE+= sbin/ipf
26 CDSETS_EXCLUDE+= sbin/pfctl
27
28 .include "${.CURDIR}/../Makefile.cdrom"
29
30 CDBASE= i386cd # gives ${CDBASE}.iso
31 CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR
32 CDRELEASE_NODEBUG= true
33 CDRELEASE_NOHTML= true
34 CDRELEASE_NOTESTS= true
35 CDBUILDEXTRA+= boot.cfg # Add boot.cfg file
36 CLEANFILES+= boot.cfg
37
38 # already (probably) booting from CD if using this and the floppy images
39 # are 20MB+ when combined
40 CDRELEASE_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.
48 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-INSTALL.*,,gp'
49 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MONOLITHIC.*,,gp'
50 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MICROVM.*,,gp'
51 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-INSTALL.*,,gp'
52 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
53 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MICROVM.*,,gp'
54
55 prepare_md_post:
56 ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
57
58 .include "${.CURDIR}/../../../common/Makefile.bootcd"
59