Thu Apr 25 11:56:51 2024 UTC (14d)
remove redundant kernels and floppies from the space-starved i386 ISO


(nia)
diff -r1.47 -r1.48 src/distrib/common/Makefile.bootcd
diff -r1.10 -r1.11 src/distrib/common/bootimage/Makefile.installimage
diff -r1.11 -r1.12 src/distrib/i386/cdroms/installcd/Makefile

cvs diff -r1.47 -r1.48 src/distrib/common/Makefile.bootcd (expand / switch to unified diff)

--- src/distrib/common/Makefile.bootcd 2024/04/24 11:29:34 1.47
+++ src/distrib/common/Makefile.bootcd 2024/04/25 11:56:51 1.48
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.bootcd,v 1.47 2024/04/24 11:29:34 nia Exp $ 1# $NetBSD: Makefile.bootcd,v 1.48 2024/04/25 11:56:51 nia Exp $
2# 2#
3# Makefile snipped to create a CD/DVD ISO 3# Makefile snipped to create a CD/DVD ISO
4# 4#
5 5
6# XXX TODO: 6# XXX TODO:
7# 1) merge with src/distrib/cdrom 7# 1) merge with src/distrib/cdrom
8# 2) teach makefs to add data from more than 1 directory (see below) 8# 2) teach makefs to add data from more than 1 directory (see below)
9 9
10# 10#
11# Required variables: 11# Required variables:
12# CDBASE Basename of the iso 12# CDBASE Basename of the iso
13# 13#
14# Optional variables: 14# Optional variables:
@@ -43,27 +43,27 @@ @@ -43,27 +43,27 @@
43# 43#
44 44
45BOOT?= ${DESTDIR}/usr/mdec/boot 45BOOT?= ${DESTDIR}/usr/mdec/boot
46BOOTXX_CD9660?= ${DESTDIR}/usr/mdec/bootxx_cd9660 46BOOTXX_CD9660?= ${DESTDIR}/usr/mdec/bootxx_cd9660
47CDRELEASE?= false 47CDRELEASE?= false
48CDSOURCE?= false 48CDSOURCE?= false
49CDDEV_POPULATE?=false 49CDDEV_POPULATE?=false
50.if ${CDRELEASE} == false 50.if ${CDRELEASE} == false
51CDROMS_RELEASEDIR?= ${MACHINE}/installation/cdrom 51CDROMS_RELEASEDIR?= ${MACHINE}/installation/cdrom
52.else 52.else
53CDROMS_RELEASEDIR?= images 53CDROMS_RELEASEDIR?= images
54.endif 54.endif
55.if defined(CDRELEASE_NOISOS) 55.if defined(CDRELEASE_NOISOS)
56CDRELEASE_EXCLUDE= -s ',./installation/cdrom.*,,gp' 56CDRELEASE_EXCLUDE+= -s ',./installation/cdrom.*,,gp'
57.endif 57.endif
58.if defined(CDRELEASE_NOCOMPAT) 58.if defined(CDRELEASE_NOCOMPAT)
59. for sufx in tgz tar.xz 59. for sufx in tgz tar.xz
60CDRELEASE_EXCLUDE+= -s ',./binary/sets/base32.${sufx},,gp' 60CDRELEASE_EXCLUDE+= -s ',./binary/sets/base32.${sufx},,gp'
61CDRELEASE_EXCLUDE+= -s ',./binary/sets/base64.${sufx},,gp' 61CDRELEASE_EXCLUDE+= -s ',./binary/sets/base64.${sufx},,gp'
62. endfor 62. endfor
63.endif 63.endif
64.if defined(CDRELEASE_NODEBUG) 64.if defined(CDRELEASE_NODEBUG)
65. for sufx in tgz tar.xz 65. for sufx in tgz tar.xz
66CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' 66CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp'
67CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' 67CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp'
68CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' 68CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp'
69CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' 69CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp'

cvs diff -r1.10 -r1.11 src/distrib/common/bootimage/Makefile.installimage (expand / switch to unified diff)

--- src/distrib/common/bootimage/Makefile.installimage 2021/09/25 21:26:03 1.10
+++ src/distrib/common/bootimage/Makefile.installimage 2024/04/25 11:56:51 1.11
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.installimage,v 1.10 2021/09/25 21:26:03 maya Exp $ 1# $NetBSD: Makefile.installimage,v 1.11 2024/04/25 11:56:51 nia Exp $
2# 2#
3# Common Makefile to create a bootable installation image for USB flash etc. 3# Common Makefile to create a bootable installation image for USB flash etc.
4# 4#
5 5
6# 6#
7# Required variables: 7# Required variables:
8# INSTIMGBASE 8# INSTIMGBASE
9# Basename of the liveimage 9# Basename of the liveimage
10# 10#
11# Optional variables: 11# Optional variables:
12# INSTIMAGEMB 12# INSTIMAGEMB
13# target image size in MB 13# target image size in MB
14# (if empty default IMAGEMB in Makefile.bootimage is used) 14# (if empty default IMAGEMB in Makefile.bootimage is used)
@@ -36,27 +36,28 @@ SETS?= gpufw modules base etc @@ -36,27 +36,28 @@ SETS?= gpufw modules base etc
36 36
37FSTAB_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/fstab.install.in 37FSTAB_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/fstab.install.in
38 38
39USE_MBR?= no 39USE_MBR?= no
40 40
41.if ${USE_MBR} != "no" 41.if ${USE_MBR} != "no"
42DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.mbr.in 42DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.mbr.in
43.else 43.else
44DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.in 44DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.in
45.endif 45.endif
46 46
47# XXX: no permission info for makefs(8) 47# XXX: no permission info for makefs(8)
48IMGDIR_EXTRA= ${RELEASEDIR}/${RELEASEMACHINEDIR} ${RELEASEMACHINEDIR} 48IMGDIR_EXTRA= ${RELEASEDIR}/${RELEASEMACHINEDIR} ${RELEASEMACHINEDIR}
49IMGDIR_EXCLUDE= -s ',./installation/cdrom.*,,gp' 49IMGDIR_EXCLUDE+= -s ',./installation/floppy/.*,,gp'
 50IMGDIR_EXCLUDE+= -s ',./installation/cdrom.*,,gp'
50IMGDIR_EXCLUDE+= -s ',./installation/liveimage.*,,gp' 51IMGDIR_EXCLUDE+= -s ',./installation/liveimage.*,,gp'
51IMGDIR_EXCLUDE+= -s ',./installation/installimage.*,,gp' 52IMGDIR_EXCLUDE+= -s ',./installation/installimage.*,,gp'
52.if defined(MD_IMGDIR_EXCLUDE) 53.if defined(MD_IMGDIR_EXCLUDE)
53IMGDIR_EXCLUDE+= ${MD_IMGDIR_EXCLUDE} 54IMGDIR_EXCLUDE+= ${MD_IMGDIR_EXCLUDE}
54.endif 55.endif
55 56
56IMGBASE= ${INSTIMGBASE} 57IMGBASE= ${INSTIMGBASE}
57 58
58.include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage" 59.include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage"
59 60
60# INSTIMG_RELEASEDIR specifies where to install ${INSTIMGBASE}.img.gz. 61# INSTIMG_RELEASEDIR specifies where to install ${INSTIMGBASE}.img.gz.
61# This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc 62# This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc
62# but also set default here for manual builds. 63# but also set default here for manual builds.

cvs diff -r1.11 -r1.12 src/distrib/i386/cdroms/installcd/Makefile (expand / switch to unified diff)

--- src/distrib/i386/cdroms/installcd/Makefile 2024/04/23 20:37:08 1.11
+++ src/distrib/i386/cdroms/installcd/Makefile 2024/04/25 11:56:51 1.12
@@ -1,21 +1,36 @@ @@ -1,21 +1,36 @@
1# $NetBSD: Makefile,v 1.11 2024/04/23 20:37:08 nia Exp $ 1# $NetBSD: Makefile,v 1.12 2024/04/25 11:56:51 nia Exp $
2# 2#
3 3
4# Install CD, to be made after 'build.sh release' 4# Install CD, to be made after 'build.sh release'
5# Requires populated $RELEASEDIR/${MACHINE} 5# Requires populated $RELEASEDIR/${MACHINE}
6 6
7.include <bsd.own.mk> 7.include <bsd.own.mk>
8.include "${.CURDIR}/../Makefile.cdrom" 8.include "${.CURDIR}/../Makefile.cdrom"
9 9
10CDBASE= i386cd # gives ${CDBASE}.iso 10CDBASE= i386cd # gives ${CDBASE}.iso
11CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR 11CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR
12CDRELEASE_NODEBUG= true 12CDRELEASE_NODEBUG= true
13CDRELEASE_NOHTML= true 13CDRELEASE_NOHTML= true
14CDRELEASE_NOTESTS= true 14CDRELEASE_NOTESTS= true
15CDBUILDEXTRA+= boot.cfg # Add boot.cfg file 15CDBUILDEXTRA+= boot.cfg # Add boot.cfg file
16CLEANFILES+= boot.cfg 16CLEANFILES+= boot.cfg
17 17
 18# already (probably) booting from CD if using this and the floppy images
 19# are 20MB+ when combined
 20CDRELEASE_EXCLUDE+= -s ',./installation/floppy/.*,,gp'
 21
 22# MONOLITHIC (i386-only) was originally added to the release build
 23# for upgrades from netbsd-5, and now primarily exists so the no-modules
 24# build can continue to be tested. this takes up 20MB+ space.
 25. for sufx in tgz tar.xz
 26CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-INSTALL.${sufx},,gp'
 27CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MONOLITHIC.${sufx},,gp'
 28. endfor
 29
 30CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-INSTALL.gz,,gp'
 31CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MONOLITHIC.gz,,gp'
 32
18prepare_md_post: 33prepare_md_post:
19 ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg 34 ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.CURDIR}/boot.cfg.in > boot.cfg
20 35
21.include "${.CURDIR}/../../../common/Makefile.bootcd" 36.include "${.CURDIR}/../../../common/Makefile.bootcd"