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