History log of /openbsd-current/distrib/sparc64/ramdisk/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.58 19-Jan-2024 miod

More files to be blessed by the clean target.


Revision tags: OPENBSD_7_4_BASE
# 1.57 28-Apr-2023 krw

Move FSDISKTYPE uses from disklabel(8) invocations to vnconfig(8)
invocations, making the geometry information written to the
disklabel a bit more logically related to the disktab information
from whence it came. Also makes FSDISKTYPE usage consistent.

Flip the disklabel(8) invocations to the "echo '/ *'"
idiom to make it obvious that the desire is to create a single
'a' partition containing all free space.

No intentional functional change. MBRs, disklabels and newfs
outputs appear identical.

reads good to kn@


# 1.56 28-Apr-2023 krw

Retire -E's "expert" mode. Introduced 23 years ago to avoid
confusing users with FFS attributes that only experts should
fiddle with. Actual use has withered away with functionality
rendered moot or moved elsewhere.

'-e' remains for the truly obscure corner cases.

Simply excise the code for now to see if hidden users/uses are
exposed. Further simplifications are possible if no such
users/uses surface.

ok with sthen@ millert@ kn@ otto@


# 1.55 26-Apr-2023 krw

Don't rely on the disklabel defaults or a disktab entry's ba#/fa#
values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.

No functional change.


Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.54 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.53 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.52 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


Revision tags: OPENBSD_6_8_BASE
# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.57 28-Apr-2023 krw

Move FSDISKTYPE uses from disklabel(8) invocations to vnconfig(8)
invocations, making the geometry information written to the
disklabel a bit more logically related to the disktab information
from whence it came. Also makes FSDISKTYPE usage consistent.

Flip the disklabel(8) invocations to the "echo '/ *'"
idiom to make it obvious that the desire is to create a single
'a' partition containing all free space.

No intentional functional change. MBRs, disklabels and newfs
outputs appear identical.

reads good to kn@


# 1.56 28-Apr-2023 krw

Retire -E's "expert" mode. Introduced 23 years ago to avoid
confusing users with FFS attributes that only experts should
fiddle with. Actual use has withered away with functionality
rendered moot or moved elsewhere.

'-e' remains for the truly obscure corner cases.

Simply excise the code for now to see if hidden users/uses are
exposed. Further simplifications are possible if no such
users/uses surface.

ok with sthen@ millert@ kn@ otto@


# 1.55 26-Apr-2023 krw

Don't rely on the disklabel defaults or a disktab entry's ba#/fa#
values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.

No functional change.


Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.54 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.53 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.52 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


Revision tags: OPENBSD_6_8_BASE
# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.55 26-Apr-2023 krw

Don't rely on the disklabel defaults or a disktab entry's ba#/fa#
values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.

No functional change.


Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.54 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.53 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.52 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


Revision tags: OPENBSD_6_8_BASE
# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.54 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.53 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.52 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


Revision tags: OPENBSD_6_8_BASE
# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.53 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.52 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


Revision tags: OPENBSD_6_8_BASE
# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.51 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.50 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.49 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.48 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.47 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.46 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


# 1.45 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.44 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.43 28-Apr-2019 deraadt

cleanup the situation around "df -i"


# 1.42 28-Apr-2019 deraadt

incorporate GZIPFLAGS into place everywhere


# 1.41 28-Apr-2019 deraadt

CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.


# 1.40 28-Apr-2019 deraadt

the BSD_RD variable is pointless


# 1.39 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


# 1.38 14-Apr-2019 deraadt

Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL


Revision tags: OPENBSD_6_5_BASE
# 1.37 05-Apr-2019 deraadt

Use new rdsetroot.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking


Revision tags: OPENBSD_6_2_BASE
# 1.36 19-Sep-2017 jasper

remove unused GZIPEXT


# 1.35 18-Sep-2017 jasper

drop ${GZIPCMD} and just use 'gzip'


# 1.34 16-Aug-2017 deraadt

additional strip -R .SUNW_ctf needed


# 1.33 25-Jul-2017 robert

change -Os to -Oz all around the tree

clang optimizes better for size with -Oz so use that as a default to avoid
overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE
# 1.32 27-Jan-2017 natano

Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt


# 1.31 14-Oct-2016 deraadt

Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.30 26-Nov-2014 stsp

Use ofwbootfd on sparc64 floppies. Avoids problems when ofwboot grows.


# 1.29 22-Nov-2014 deraadt

Switch to using MI installboot, after a conversation with stsp. He will
need this soon.
install tested by jsg


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 15-Oct-2013 deraadt

We do not produce "core" files, so they do not need to be deleted. they
have been *.core files for a very long time. That's a lot of unlink()
calls saved.


# 1.27 14-Oct-2013 guenther

Turn on the distrib lib bits in crunchgen by setting SRCLIBDIR.
Add the new files to the clean target's rm list.

"why not get it tested?" deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 08-Jul-2011 drahn

Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries.
Enables developers to build arm ramdisk kernels on amd64 archs
OK deraadt@ 'looked fine' miod@


# 1.25 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


# 1.24 15-Apr-2011 deraadt

No need to make depend kernels; ok guenther


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.23 12-Oct-2009 deraadt

More inodes by default on the ramdisk, because otherwise a many-disk
system runs out of space; reported by William Yodlowsky


Revision tags: OPENBSD_4_6_BASE
# 1.22 17-Apr-2009 deraadt

further minor unification


# 1.21 17-Apr-2009 deraadt

For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)


Revision tags: OPENBSD_4_5_BASE
# 1.20 02-Dec-2008 deraadt

no longer need to compile rdsetroot with DEBUG


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.19 11-Jan-2008 espie

cleanup: make -> ${MAKE} consistenly.
zap extra subshells.

okay miod@


Revision tags: OPENBSD_4_2_BASE
# 1.18 17-Jun-2007 deraadt

Stop using disklabel -r. The disklabel code does not know all the semantics
for pushing disklabels onto the disk (and besides that, it is buggy and
unreadable crap); thanks for help from krw


# 1.17 13-Apr-2007 millert

Update install media generation to the new semantics of the -c flag.
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.


# 1.16 09-Apr-2007 millert

Add -n to gzip flags. Save a few bytes since we no longer save
the uncompressed filename in the gzip header.


Revision tags: OPENBSD_4_1_BASE
# 1.15 16-Feb-2007 tsi

s/GZIP/GZIPCMD/g in `make release` structure to avoid conflict with gzip's
use of a GZIP environment variable for extra command flags.

ok deraadt@, millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.14 06-Aug-2005 deraadt

use perfect options for actual floppy newfs


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.13 09-Jun-2002 todd

knf


# 1.12 19-May-2002 deraadt

fix a copied typo


# 1.11 07-May-2002 deraadt

fix conf file generation


# 1.10 30-Apr-2002 deraadt

use makeconf.awk throughout, delete instbin in Makefile


# 1.9 28-Apr-2002 deraadt

use single shared mtree.conf


# 1.8 25-Apr-2002 deraadt

runlist.sh & list2sh.awk unification


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.7 10-Oct-2001 deraadt

does this work? I do not know yet


# 1.6 21-Sep-2001 jason

More tweaks... this is mostly functional now.


# 1.5 20-Sep-2001 jason

8k block size


# 1.4 20-Sep-2001 jason

Get this closer to working (mostly borrowed from macppc).
Still dies with:
warning: /dev/console error 20
panic: init died (signal 6, exit 0)


# 1.3 19-Sep-2001 jason

no cd{REV}.fs here yet


# 1.2 18-Sep-2001 jason

use elfrdsetroot


# 1.1 18-Sep-2001 jason

initial cut at building ramdisk... will no doubt need tweaking