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