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