Makefile revision 1.14
11.14Snia#	$NetBSD: Makefile,v 1.14 2026/01/05 20:25:24 nia Exp $
21.1Shubertf#
31.1Shubertf
41.1Shubertf# Install CD, to be made after 'build.sh release'
51.1Shubertf# Requires populated $RELEASEDIR/${MACHINE}
61.14Snia# 
71.14Snia# Lots of effort to make this continue to fit within 700MB.
81.1Shubertf
91.5Sad.include <bsd.own.mk>
101.14Snia
111.14Snia# these are large files, not much use on an installation CD,
121.14Snia# and take up megabytes of precious space
131.14SniaCDSETS_EXCLUDE+=	usr/bin/cpp
141.14SniaCDSETS_EXCLUDE+=	usr/bin/gcpp
151.14SniaCDSETS_EXCLUDE+=	usr/sbin/dhcpd
161.14SniaCDSETS_EXCLUDE+=	usr/sbin/omshell
171.14SniaCDSETS_EXCLUDE+=	usr/sbin/dhcrelay
181.14SniaCDSETS_EXCLUDE+=	usr/sbin/hostapd
191.14SniaCDSETS_EXCLUDE+=	usr/share/misc/magic.mgc
201.14Snia
211.2Sbouyer.include "${.CURDIR}/../Makefile.cdrom"
221.2Sbouyer
231.2SbouyerCDBASE=		i386cd			# gives ${CDBASE}.iso
241.10SchristosCDRELEASE=	true                    # include $RELEASEDIR/$RELEASEMACHINEDIR
251.9SmartinCDRELEASE_NODEBUG=	true
261.11SniaCDRELEASE_NOHTML=	true
271.11SniaCDRELEASE_NOTESTS=	true
281.5SadCDBUILDEXTRA+=	boot.cfg		# Add boot.cfg file
291.4SsborrillCLEANFILES+=	boot.cfg
301.4Ssborrill
311.12Snia# already (probably) booting from CD if using this and the floppy images
321.12Snia# are 20MB+ when combined
331.12SniaCDRELEASE_EXCLUDE+=	-s ',./installation/floppy/.*,,gp'
341.12Snia
351.12Snia# MONOLITHIC (i386-only) was originally added to the release build
361.12Snia# for upgrades from netbsd-5, and now primarily exists so the no-modules
371.12Snia# build can continue to be tested.  this takes up 20MB+ space.
381.13Snia# 
391.13Snia# the INSTALL kernel is not used by the CD-ROMs, and MICROVM should be
401.13Snia# booted directly by QEMU rather than via the installer ISO.
411.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-INSTALL.*,,gp'
421.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MONOLITHIC.*,,gp'
431.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/sets/kern-MICROVM.*,,gp'
441.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-INSTALL.*,,gp'
451.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MONOLITHIC.*,,gp'
461.13SniaCDRELEASE_EXCLUDE+=	-s ',./binary/kernel/netbsd-MICROVM.*,,gp'
471.12Snia
481.4Ssborrillprepare_md_post:
491.4Ssborrill	${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
501.1Shubertf
511.1Shubertf.include "${.CURDIR}/../../../common/Makefile.bootcd"
52