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
14 CDBASE= i386cd # gives ${CDBASE}.iso
15 CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR
16 CDRELEASE_NODEBUG= true
17 CDRELEASE_NOHTML= true
18 CDRELEASE_NOTESTS= true
19 CDBUILDEXTRA+= boot.cfg # Add boot.cfg file
20 CLEANFILES+= boot.cfg
21
22 # already (probably) booting from CD if using this and the floppy images
23 # are 20MB+ when combined
24 CDRELEASE_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.
32 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-INSTALL.*,,gp'
33 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MONOLITHIC.*,,gp'
34 CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MICROVM.*,,gp'
35 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-INSTALL.*,,gp'
36 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
37 CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MICROVM.*,,gp'
38
39 prepare_md_post:
40 ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
41
42 .include "${.CURDIR}/../../../common/Makefile.bootcd"
43