remove redundant kernels and floppies from the space-starved i386 ISOdiff -r1.47 -r1.48 src/distrib/common/Makefile.bootcd
(nia)
--- 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 | |||
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) | 58 | .if defined(CDRELEASE_NOCOMPAT) | |
59 | . for sufx in tgz tar.xz | 59 | . for sufx in tgz tar.xz | |
60 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/base32.${sufx},,gp' | 60 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/base32.${sufx},,gp' | |
61 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/base64.${sufx},,gp' | 61 | CDRELEASE_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 | |
66 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' | 66 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' | |
67 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' | 67 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' | |
68 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' | 68 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' | |
69 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' | 69 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' |
--- 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 | |||
37 | FSTAB_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/fstab.install.in | 37 | FSTAB_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/fstab.install.in | |
38 | 38 | |||
39 | USE_MBR?= no | 39 | USE_MBR?= no | |
40 | 40 | |||
41 | .if ${USE_MBR} != "no" | 41 | .if ${USE_MBR} != "no" | |
42 | DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.mbr.in | 42 | DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.mbr.in | |
43 | .else | 43 | .else | |
44 | DISKPROTO_IN?= ${NETBSDSRCDIR}/distrib/common/bootimage/diskproto.noswap.in | 44 | DISKPROTO_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) | |
48 | IMGDIR_EXTRA= ${RELEASEDIR}/${RELEASEMACHINEDIR} ${RELEASEMACHINEDIR} | 48 | IMGDIR_EXTRA= ${RELEASEDIR}/${RELEASEMACHINEDIR} ${RELEASEMACHINEDIR} | |
49 | IMGDIR_EXCLUDE= -s ',./installation/cdrom.*,,gp' | 49 | IMGDIR_EXCLUDE+= -s ',./installation/floppy/.*,,gp' | |
50 | IMGDIR_EXCLUDE+= -s ',./installation/cdrom.*,,gp' | |||
50 | IMGDIR_EXCLUDE+= -s ',./installation/liveimage.*,,gp' | 51 | IMGDIR_EXCLUDE+= -s ',./installation/liveimage.*,,gp' | |
51 | IMGDIR_EXCLUDE+= -s ',./installation/installimage.*,,gp' | 52 | IMGDIR_EXCLUDE+= -s ',./installation/installimage.*,,gp' | |
52 | .if defined(MD_IMGDIR_EXCLUDE) | 53 | .if defined(MD_IMGDIR_EXCLUDE) | |
53 | IMGDIR_EXCLUDE+= ${MD_IMGDIR_EXCLUDE} | 54 | IMGDIR_EXCLUDE+= ${MD_IMGDIR_EXCLUDE} | |
54 | .endif | 55 | .endif | |
55 | 56 | |||
56 | IMGBASE= ${INSTIMGBASE} | 57 | IMGBASE= ${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. |
--- 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 | |||
10 | CDBASE= i386cd # gives ${CDBASE}.iso | 10 | CDBASE= i386cd # 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_NOHTML= true | 13 | CDRELEASE_NOHTML= true | |
14 | CDRELEASE_NOTESTS= true | 14 | CDRELEASE_NOTESTS= true | |
15 | CDBUILDEXTRA+= boot.cfg # Add boot.cfg file | 15 | CDBUILDEXTRA+= boot.cfg # Add boot.cfg file | |
16 | CLEANFILES+= boot.cfg | 16 | CLEANFILES+= boot.cfg | |
17 | 17 | |||
18 | # already (probably) booting from CD if using this and the floppy images | |||
19 | # are 20MB+ when combined | |||
20 | CDRELEASE_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 | |||
26 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-INSTALL.${sufx},,gp' | |||
27 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/kern-MONOLITHIC.${sufx},,gp' | |||
28 | . endfor | |||
29 | ||||
30 | CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-INSTALL.gz,,gp' | |||
31 | CDRELEASE_EXCLUDE+= -s ',./binary/kernel/netbsd-MONOLITHIC.gz,,gp' | |||
32 | ||||
18 | prepare_md_post: | 33 | prepare_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" |