Exclude compat sets from ISO images that struggle to fit on a CD-ROM When debug is excluded, also exclude the compat debug sets.diff -r1.6 -r1.7 src/distrib/amd64/cdroms/installcd/Makefile
(nia)
--- src/distrib/amd64/cdroms/installcd/Makefile 2019/09/23 13:42:30 1.6
+++ src/distrib/amd64/cdroms/installcd/Makefile 2024/04/23 12:25:57 1.7
@@ -1,20 +1,21 @@ | @@ -1,20 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2019/09/23 13:42:30 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2024/04/23 12:25:57 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 | |||
10 | CDBASE= amd64cd # gives ${CDBASE}.iso | 10 | CDBASE= amd64cd # gives ${CDBASE}.iso | |
11 | CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR | 11 | CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR | |
12 | CDRELEASE_NODEBUG= true | 12 | CDRELEASE_NODEBUG= true | |
13 | CDRELEASE_NOCOMPAT= true | |||
13 | CDBUILDEXTRA= boot.cfg # Add boot.cfg file | 14 | CDBUILDEXTRA= boot.cfg # Add boot.cfg file | |
14 | CLEANFILES+= boot.cfg | 15 | CLEANFILES+= boot.cfg | |
15 | 16 | |||
16 | prepare_md_post: | 17 | prepare_md_post: | |
17 | ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" \ | 18 | ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" \ | |
18 | < ${.CURDIR}/boot.cfg.in > boot.cfg | 19 | < ${.CURDIR}/boot.cfg.in > boot.cfg | |
19 | 20 | |||
20 | .include "${.CURDIR}/../../../common/Makefile.bootcd" | 21 | .include "${.CURDIR}/../../../common/Makefile.bootcd" |
--- src/distrib/common/Makefile.bootcd 2020/10/11 14:10:04 1.44
+++ src/distrib/common/Makefile.bootcd 2024/04/23 12:25:57 1.45
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.bootcd,v 1.44 2020/10/11 14:10:04 jmcneill Exp $ | 1 | # $NetBSD: Makefile.bootcd,v 1.45 2024/04/23 12:25:57 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: | |
@@ -45,31 +45,38 @@ | @@ -45,31 +45,38 @@ | |||
45 | BOOT?= ${DESTDIR}/usr/mdec/boot | 45 | BOOT?= ${DESTDIR}/usr/mdec/boot | |
46 | BOOTXX_CD9660?= ${DESTDIR}/usr/mdec/bootxx_cd9660 | 46 | BOOTXX_CD9660?= ${DESTDIR}/usr/mdec/bootxx_cd9660 | |
47 | CDRELEASE?= false | 47 | CDRELEASE?= false | |
48 | CDSOURCE?= false | 48 | CDSOURCE?= false | |
49 | CDDEV_POPULATE?=false | 49 | CDDEV_POPULATE?=false | |
50 | .if ${CDRELEASE} == false | 50 | .if ${CDRELEASE} == false | |
51 | CDROMS_RELEASEDIR?= ${MACHINE}/installation/cdrom | 51 | CDROMS_RELEASEDIR?= ${MACHINE}/installation/cdrom | |
52 | .else | 52 | .else | |
53 | CDROMS_RELEASEDIR?= images | 53 | CDROMS_RELEASEDIR?= images | |
54 | .endif | 54 | .endif | |
55 | .if defined(CDRELEASE_NOISOS) | 55 | .if defined(CDRELEASE_NOISOS) | |
56 | CDRELEASE_EXCLUDE= -s ',./installation/cdrom.*,,gp' | 56 | CDRELEASE_EXCLUDE= -s ',./installation/cdrom.*,,gp' | |
57 | .endif | 57 | .endif | |
58 | .if defined(CDRELEASE_NOCOMPAT) | |||
59 | . for sufx in tgz tar.xz | |||
60 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/base32.${sufx},,gp' | |||
61 | . endfor | |||
62 | .endif | |||
58 | .if defined(CDRELEASE_NODEBUG) | 63 | .if defined(CDRELEASE_NODEBUG) | |
59 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.tgz,,gp' | 64 | . for sufx in tgz tar.xz | |
60 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.tgz,,gp' | 65 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' | |
61 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.tar.xz,,gp' | 66 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' | |
62 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.tar.xz,,gp' | 67 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' | |
68 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' | |||
69 | . endfor | |||
63 | .endif | 70 | .endif | |
64 | .if !defined(CDRELEASE_LIVEIMAGE) | 71 | .if !defined(CDRELEASE_LIVEIMAGE) | |
65 | CDRELEASE_EXCLUDE+= -s ',./installation/liveimage.*,,gp' | 72 | CDRELEASE_EXCLUDE+= -s ',./installation/liveimage.*,,gp' | |
66 | .endif | 73 | .endif | |
67 | .if !defined(CDRELEASE_INSTALLIMAGE) | 74 | .if !defined(CDRELEASE_INSTALLIMAGE) | |
68 | CDRELEASE_EXCLUDE+= -s ',./installation/installimage.*,,gp' | 75 | CDRELEASE_EXCLUDE+= -s ',./installation/installimage.*,,gp' | |
69 | .endif | 76 | .endif | |
70 | 77 | |||
71 | SETS_DIR?= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets | 78 | SETS_DIR?= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets | |
72 | 79 | |||
73 | .include <bsd.own.mk> # For PRINTOBJDIR | 80 | .include <bsd.own.mk> # For PRINTOBJDIR | |
74 | .include <bsd.kernobj.mk> # For KERNSRCDIR | 81 | .include <bsd.kernobj.mk> # For KERNSRCDIR | |
75 | 82 |
--- src/distrib/sparc64/cdroms/installcd/Makefile 2019/09/23 13:42:35 1.31
+++ src/distrib/sparc64/cdroms/installcd/Makefile 2024/04/23 12:25:57 1.32
@@ -1,20 +1,21 @@ | @@ -1,20 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.31 2019/09/23 13:42:35 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.32 2024/04/23 12:25:57 nia Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | CDBASE= sparc64cd # gives ${CDBASE}.iso | 5 | CDBASE= sparc64cd # gives ${CDBASE}.iso | |
6 | CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR | 6 | CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR | |
7 | CDRELEASE_NODEBUG= true | 7 | CDRELEASE_NODEBUG= true | |
8 | CDRELEASE_NOCOMPAT= true | |||
8 | CDKERNELS= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-GENERIC.gz netbsd | 9 | CDKERNELS= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-GENERIC.gz netbsd | |
9 | CD_SETS= base etc | 10 | CD_SETS= base etc | |
10 | .if ${MKKMOD} != "no" | 11 | .if ${MKKMOD} != "no" | |
11 | CD_SETS+= modules | 12 | CD_SETS+= modules | |
12 | .endif | 13 | .endif | |
13 | 14 | |||
14 | SYSINSTDIR!= cd ${.CURDIR}/../../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR} | 15 | SYSINSTDIR!= cd ${.CURDIR}/../../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR} | |
15 | 16 | |||
16 | CDRELEASE_NOISOS= true | 17 | CDRELEASE_NOISOS= true | |
17 | CDBOOTIMAGEDIR!= cd ${NETBSDSRCDIR}/distrib/sparc64/bootfs && ${PRINTOBJDIR} | 18 | CDBOOTIMAGEDIR!= cd ${NETBSDSRCDIR}/distrib/sparc64/bootfs && ${PRINTOBJDIR} | |
18 | CDBOOTIMAGE= ${CDBOOTIMAGEDIR}/boot.fs | 19 | CDBOOTIMAGE= ${CDBOOTIMAGEDIR}/boot.fs | |
19 | SUN_BOOT_ARGS:= - - - - ${CDBOOTIMAGE} | 20 | SUN_BOOT_ARGS:= - - - - ${CDBOOTIMAGE} | |
20 | 21 |