| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.bootcd,v 1.45 2024/04/23 12:25:57 nia Exp $ | | 1 | # $NetBSD: Makefile.bootcd,v 1.46 2024/04/23 20:37:07 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: |
| @@ -48,36 +48,47 @@ CDRELEASE?= false | | | @@ -48,36 +48,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 | . endfor | | 62 | . endfor |
62 | .endif | | 63 | .endif |
63 | .if defined(CDRELEASE_NODEBUG) | | 64 | .if defined(CDRELEASE_NODEBUG) |
64 | . for sufx in tgz tar.xz | | 65 | . for sufx in tgz tar.xz |
65 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' | | 66 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug.${sufx},,gp' |
66 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' | | 67 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug32.${sufx},,gp' |
67 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' | | 68 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/debug64.${sufx},,gp' |
68 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' | | 69 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/xdebug.${sufx},,gp' |
69 | . endfor | | 70 | . endfor |
70 | .endif | | 71 | .endif |
| | | 72 | .if defined(CDRELEASE_NOHTML) |
| | | 73 | . for sufx in tgz tar.xz |
| | | 74 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/manhtml.${sufx},,gp' |
| | | 75 | . endfor |
| | | 76 | .endif |
| | | 77 | .if defined(CDRELEASE_NOTESTS) |
| | | 78 | . for sufx in tgz tar.xz |
| | | 79 | CDRELEASE_EXCLUDE+= -s ',./binary/sets/tests.${sufx},,gp' |
| | | 80 | . endfor |
| | | 81 | .endif |
71 | .if !defined(CDRELEASE_LIVEIMAGE) | | 82 | .if !defined(CDRELEASE_LIVEIMAGE) |
72 | CDRELEASE_EXCLUDE+= -s ',./installation/liveimage.*,,gp' | | 83 | CDRELEASE_EXCLUDE+= -s ',./installation/liveimage.*,,gp' |
73 | .endif | | 84 | .endif |
74 | .if !defined(CDRELEASE_INSTALLIMAGE) | | 85 | .if !defined(CDRELEASE_INSTALLIMAGE) |
75 | CDRELEASE_EXCLUDE+= -s ',./installation/installimage.*,,gp' | | 86 | CDRELEASE_EXCLUDE+= -s ',./installation/installimage.*,,gp' |
76 | .endif | | 87 | .endif |
77 | | | 88 | |
78 | SETS_DIR?= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets | | 89 | SETS_DIR?= ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets |
79 | | | 90 | |
80 | .include <bsd.own.mk> # For PRINTOBJDIR | | 91 | .include <bsd.own.mk> # For PRINTOBJDIR |
81 | .include <bsd.kernobj.mk> # For KERNSRCDIR | | 92 | .include <bsd.kernobj.mk> # For KERNSRCDIR |
82 | | | 93 | |
83 | DISTRIBVER!= ${HOST_SH} ${KERNSRCDIR}/conf/osrelease.sh | | 94 | DISTRIBVER!= ${HOST_SH} ${KERNSRCDIR}/conf/osrelease.sh |