Makefile revision 1.17 1 1.17 nia # $NetBSD: Makefile,v 1.17 2026/01/07 16:08:22 nia Exp $
2 1.1 hubertf #
3 1.1 hubertf
4 1.1 hubertf # Install CD, to be made after 'build.sh release'
5 1.1 hubertf # Requires populated $RELEASEDIR/${MACHINE}
6 1.14 nia #
7 1.14 nia # Lots of effort to make this continue to fit within 700MB.
8 1.1 hubertf
9 1.5 ad .include <bsd.own.mk>
10 1.14 nia
11 1.17 nia CDMAKEFSEXTRAOPTS= -m 700m
12 1.17 nia
13 1.16 nia .include "${.CURDIR}/../../../common/Makefile.minibase"
14 1.2 bouyer .include "${.CURDIR}/../Makefile.cdrom"
15 1.2 bouyer
16 1.2 bouyer CDBASE= i386cd # gives ${CDBASE}.iso
17 1.10 christos CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR
18 1.9 martin CDRELEASE_NODEBUG= true
19 1.11 nia CDRELEASE_NOHTML= true
20 1.11 nia CDRELEASE_NOTESTS= true
21 1.5 ad CDBUILDEXTRA+= boot.cfg # Add boot.cfg file
22 1.4 sborrill CLEANFILES+= boot.cfg
23 1.4 sborrill
24 1.12 nia # already (probably) booting from CD if using this and the floppy images
25 1.12 nia # are 20MB+ when combined
26 1.12 nia CDRELEASE_EXCLUDE+= -s ',./installation/floppy/.*,,gp'
27 1.12 nia
28 1.12 nia # MONOLITHIC (i386-only) was originally added to the release build
29 1.12 nia # for upgrades from netbsd-5, and now primarily exists so the no-modules
30 1.12 nia # build can continue to be tested. this takes up 20MB+ space.
31 1.13 nia #
32 1.13 nia # the INSTALL kernel is not used by the CD-ROMs, and MICROVM should be
33 1.13 nia # booted directly by QEMU rather than via the installer ISO.
34 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-INSTALL.*,,gp'
35 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MONOLITHIC.*,,gp'
36 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MICROVM.*,,gp'
37 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-INSTALL.*,,gp'
38 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
39 1.13 nia CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MICROVM.*,,gp'
40 1.12 nia
41 1.4 sborrill prepare_md_post:
42 1.4 sborrill ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
43 1.1 hubertf
44 1.1 hubertf .include "${.CURDIR}/../../../common/Makefile.bootcd"
45