History log of /openbsd-current/distrib/octeon/ramdisk/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 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@


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.22 11-Sep-2022 krw

Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
'disklabel -dw'.

Tested & ok visa@


Revision tags: OPENBSD_7_1_BASE
# 1.21 06-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.20 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.19 23-Oct-2021 krw

Arithmetic is hard! Since MBR partition 0 is the only partition in the boot
media MBR, just use '*' to take all the available space.

ok visa@ deraadt@


Revision tags: OPENBSD_7_0_BASE
# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.22 11-Sep-2022 krw

Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
'disklabel -dw'.

Tested & ok visa@


Revision tags: OPENBSD_7_1_BASE
# 1.21 06-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.20 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.19 23-Oct-2021 krw

Arithmetic is hard! Since MBR partition 0 is the only partition in the boot
media MBR, just use '*' to take all the available space.

ok visa@ deraadt@


Revision tags: OPENBSD_7_0_BASE
# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.21 06-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.20 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.19 23-Oct-2021 krw

Arithmetic is hard! Since MBR partition 0 is the only partition in the boot
media MBR, just use '*' to take all the available space.

ok visa@ deraadt@


Revision tags: OPENBSD_7_0_BASE
# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.20 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.19 23-Oct-2021 krw

Arithmetic is hard! Since MBR partition 0 is the only partition in the boot
media MBR, just use '*' to take all the available space.

ok visa@ deraadt@


Revision tags: OPENBSD_7_0_BASE
# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.19 23-Oct-2021 krw

Arithmetic is hard! Since MBR partition 0 is the only partition in the boot
media MBR, just use '*' to take all the available space.

ok visa@ deraadt@


Revision tags: OPENBSD_7_0_BASE
# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.18 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_8_BASE OPENBSD_6_9_BASE
# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.17 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.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.16 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.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.15 01-May-2019 visa

Fix miniroot partition.

OK deraadt@


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.14 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.13 30-Apr-2019 deraadt

repair more trivial differences


# 1.12 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.11 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.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


# 1.10 29-Apr-2019 deraadt

TOPDIR and TOP are not neccessary.


# 1.9 29-Apr-2019 deraadt

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


# 1.8 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.7 28-Apr-2019 deraadt

the BSD_RD variable is pointless


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

Use new rdsetroot.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.5 05-Dec-2016 natano

Use makefs to build bsd.rd; tested by visa


# 1.4 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 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.2 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_4_BASE
# 1.1 26-Mar-2013 jasper

add ramdisk installer for octeon, still has some rough edges and needs some
manual fiddling, but works good enough to perform an install on the CAM-0100.