Home | History | Annotate | only in /src/distrib/sparc
History log of /src/distrib/sparc
RevisionDateAuthorComments
 1.11 23-Sep-2025  rillig all: fix "Invalid internal option" warning from make
 1.10 19-May-2015  martin Revert previous untill fallout has been fixed.
 1.9 18-May-2015  martin Add a new simple method to put whole sets on CD images (instead of
listing single binaries or patterns) and use those for the existing
ISO images.
 1.8 22-Jan-2012  tsutsui Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.
 1.7 06-Mar-2007  bouyer branches: 1.7.12; 1.7.36;
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.

call iso_image in distrib/ for iso-image in the top Makefile.
 1.6 09-May-2002  lukem branches: 1.6.18;
instfs doesn't have to wait on ramdisk or bootfs
 1.5 12-Apr-2002  lukem .WAIT sync. whitespace cleanup
 1.4 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.3 30-Apr-1999  abs branches: 1.3.8;
Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
 1.2 22-Jun-1998  mrg branches: 1.2.2; 1.2.4;
this is called bootfs now.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.2.4.2 13-Jul-2000  he Apply patch (requested by he):
Enhance the "make release" process:
o Install the distrib bits under "make release"
 1.2.4.1 30-Apr-1999  perry pullup 1.2->1.3 (abs)
 1.2.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.2 from trunk (new file). (mrg)
 1.2.2.1 22-Jun-1998  cgd file Makefile was added on branch netbsd-1-3 on 1999-01-25 06:19:04 +0000
 1.3.8.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.6.18.1 09-Mar-2007  riz Pull up following revision(s) (requested by bouyer in ticket #494):
sys/arch/i386/conf/GENERIC.MP: revision 1.9
distrib/pc532/cdroms/installcd/Makefile: revision 1.1
distrib/macppc/Makefile: revision 1.15
distrib/ofppc/Makefile: revision 1.2
distrib/ibmnws/Makefile: revision 1.2
distrib/acorn32/Makefile: revision 1.18
distrib/x68k/cdroms/installcd/Makefile: revision 1.1
distrib/sparc/Makefile: revision 1.7
distrib/sparc64/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/Makefile: revision 1.1
distrib/hpcsh/Makefile: revision 1.6
distrib/ofppc/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/Makefile: revision 1.13
distrib/news68k/cdroms/installcd/Makefile: revision 1.1
distrib/amiga/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/cdroms/Makefile: revision 1.1
distrib/amiga/cdroms/Makefile: revision 1.1
etc/etc.mac68k/Makefile.inc: revision 1.18
distrib/shark/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/Makefile: revision 1.28
distrib/hpcmips/cdroms/Makefile: revision 1.1
distrib/amd64/floppies/Makefile: revision 1.3
sys/arch/amd64/conf/INSTALL_ACPI: file removal
distrib/i386/cdroms/Makefile: revision 1.4
distrib/acorn26/cdroms/installcd/Makefile: revision 1.1
distrib/hpcsh/cdroms/Makefile: revision 1.1
distrib/prep/cdroms/Makefile: revision 1.1
distrib/pc532/Makefile: revision 1.4
distrib/acorn32/cdroms/installcd/Makefile: revision 1.1
distrib/sun2/Makefile: revision 1.8
distrib/vax/Makefile: revision 1.17
distrib/sparc64/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/cdroms/Makefile: revision 1.1
distrib/mipsco/cdroms/installcd/Makefile: revision 1.1
distrib/sun3/cdroms/installcd/Makefile: revision 1.1
distrib/vax/cdroms/installcd/Makefile: revision 1.1
distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1
distrib/mvme68k/Makefile: revision 1.4
distrib/mvmeppc/cdroms/Makefile: revision 1.1
distrib/newsmips/Makefile: revision 1.4
sys/arch/i386/conf/GENERIC.MPACPI: file removal
distrib/hpcarm/cdroms/Makefile: revision 1.1
distrib/evbppc/cdroms/Makefile: revision 1.1
sys/arch/i386/conf/INSTALL_LARGE: revision 1.1
distrib/i386/cdroms/installcd/Makefile: revision 1.2
distrib/i386/cdroms/installcd/Makefile: revision 1.3
doc/CHANGES: revision 1.804
distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.2
distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.3
distrib/evbarm/Makefile: revision 1.8
distrib/mvmeppc/Makefile: revision 1.3
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3
distrib/macppc/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/cdroms/Makefile: revision 1.1
distrib/alpha/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/installcd/Makefile: revision 1.1
distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4
distrib/pmppc/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/Makefile: revision 1.2
distrib/pmppc/Makefile: revision 1.2
distrib/arc/cdroms/Makefile: revision 1.1
sys/arch/amd64/conf/INSTALL: revision 1.66
distrib/sun3/cdroms/Makefile: revision 1.1
distrib/mipsco/Makefile: revision 1.4
distrib/sun3/Makefile: revision 1.9
distrib/vax/cdroms/Makefile: revision 1.1
distrib/pmppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile.cdrom: revision 1.1
distrib/atari/cdroms/installcd/Makefile: revision 1.1
distrib/evbppc/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/Makefile: revision 1.4
Makefile: revision 1.247
distrib/cats/cdroms/installcd/Makefile: revision 1.1
sys/arch/amd64/conf/GENERIC: revision 1.130
sys/arch/amd64/conf/GENERIC: revision 1.131
distrib/sgimips/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/Makefile: revision 1.1
distrib/cats/cdroms/Makefile: revision 1.1
distrib/evbmips/Makefile: revision 1.3
distrib/evbmips/Makefile: revision 1.4
sys/arch/amd64/conf/GENERIC_ACPI: file removal
distrib/ews4800mips/Makefile: revision 1.2
distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/Makefile: revision 1.5
distrib/amd64/cdroms/installcd/Makefile: revision 1.2
distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/cdroms/installcd/Makefile: revision 1.1
etc/etc.amd64/Makefile.inc: revision 1.7
distrib/i386/instkernel/Makefile: revision 1.6
distrib/x68k/cdroms/Makefile: revision 1.1
distrib/i386/cdroms/Makefile.cdrom: revision 1.1
distrib/sandpoint/Makefile: revision 1.4
distrib/i386/cdroms/Makefile.cdrom: revision 1.2
distrib/amiga/Makefile: revision 1.3
distrib/amd64/cdroms/bootcd/Makefile: revision 1.2
distrib/news68k/Makefile: revision 1.4
distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5
distrib/news68k/cdroms/Makefile: revision 1.1
distrib/sparc/cdroms/Makefile: revision 1.1
distrib/shark/cdroms/Makefile: revision 1.1
etc/Makefile: revision 1.341
distrib/amd64/instkernel/Makefile: revision 1.2
distrib/sparc64/Makefile: revision 1.7
distrib/dreamcast/cdroms/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.3
distrib/ews4800mips/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/installcd/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.4
distrib/macppc/cdroms/Makefile: revision 1.1
distrib/mvme68k/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/Makefile: revision 1.1
distrib/hpcarm/Makefile: revision 1.3
distrib/arc/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1
distrib/mipsco/cdroms/Makefile: revision 1.1
distrib/Makefile.inc: revision 1.9
distrib/playstation2/cdroms/installcd/Makefile: revision 1.1
distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/Makefile: revision 1.1
distrib/arc/Makefile: revision 1.3
distrib/sparc/cdroms/installcd/Makefile: revision 1.1
distrib/evbmips/cdroms/installcd/Makefile: revision 1.1
distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1
distrib/prep/Makefile: revision 1.3
distrib/ibmnws/cdroms/Makefile: revision 1.1
distrib/sandpoint/cdroms/Makefile: revision 1.1
distrib/atari/Makefile: revision 1.6
distrib/sgimips/cdroms/Makefile: revision 1.1
distrib/amd64/Makefile: revision 1.4
distrib/atari/cdroms/Makefile: revision 1.1
distrib/x68k/Makefile: revision 1.5
distrib/x68k/Makefile: revision 1.6
distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1
distrib/evbarm/cdroms/Makefile: revision 1.1
distrib/acorn32/cdroms/Makefile: revision 1.1
distrib/cats/Makefile: revision 1.3
distrib/evbmips/cdroms/Makefile: revision 1.1
distrib/pc532/cdroms/Makefile: revision 1.1
distrib/Makefile: revision 1.14
distrib/evbarm/cdroms/installcd/Makefile: revision 1.1
distrib/ofppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile: revision 1.3
distrib/common/Makefile.bootcd: revision 1.8
distrib/i386/cdroms/bootcd-laptop/Makefile: file removal
sys/arch/i386/conf/GENERIC: revision 1.813
distrib/hp300/Makefile: revision 1.17
sys/arch/i386/conf/GENERIC: revision 1.814
distrib/evbppc/Makefile: revision 1.2
distrib/pmax/cdroms/installcd/Makefile: revision 1.1
etc/etc.i386/Makefile.inc: revision 1.49
distrib/sgimips/Makefile: revision 1.2
distrib/prep/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/Makefile: revision 1.4
distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/Makefile: revision 1.22
distrib/dreamcast/Makefile: revision 1.2
Improve the use of makefs to build boot CDs, and make it truely MI:
- allow to specify the "instkernel" directory, and allow to put multiple
kernels on the image
- allow to specify the directory where the image will be created
- only use bootxx_cd9660 if it exists
- search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to
usr/mdec/boot
- make 'installboot -e' optional
- use target 'release' or 'iso_image' depending on ${CDRELEASE}
- call some MD targets, which will eventually complete the file list or
make the image bootable
For the benefit of modern hardware, enable ACPI by default in INSTALL and
GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and
'disable acpi' should be a workaround. ACPI-enabled kernels works fine
on pre-acpi hardware.
for amd64:
- add ACPI to INSTALL and GENERIC, remove the *_ACPI config files.
- get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot
image
for i386:
- introduce INSTALL_LARGE which has ACPI and some devices with big firmware
- move some devices from INSTALL to INSTALL_LARGE
- Boot floppies still use INSTALL, and bootfloppy-big.fs is still there
(for thoses who want to build el-torito floppy emulation boot CD) and use
INSTALL.
For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll
use something else to build bootable CDs.
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.
call iso_image in distrib/ for iso-image in the top Makefile.
Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/
Fix typo in subdir name.
Revert local changes that went in accidentally with the "add ACPI" commit.
Note ACPI by default in i386/amd64, and the iso-image changes.
Fix SUBDIR in previous
Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly.
Correct typo: the directory is named cdroms, not cdrom.
Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.
 1.7.36.1 17-Apr-2012  yamt sync with head
 1.7.12.1 05-Oct-2008  mjf Sync with HEAD.
 1.8 11-Mar-2002  lukem as we don't need local version of REV and VER any more, read in
distrib/Makefile.inc directly and remove the now-unnecessary
Makefile.inc from here
 1.7 11-Jan-2002  pk Use KERNSRCDIR in path to `osrelease.sh'.
 1.6 31-May-2000  matt branches: 1.6.2;
Need <bsd.own.mk> to get BSDSRCDIR
 1.5 03-May-2000  sjg remove/change missleading comments
 1.4 02-May-2000  sjg use ../../Makefile.inc
 1.3 28-Aug-1998  mrg branches: 1.3.2;
use $TOP in more places (pr5899 from jbernard@ox.mines.edu).
 1.2 21-Jun-1998  mrg move distrib/sparc/floppies/* into distrib/sparc, so that the boot image
can be accessed for cdrom systems. rename "bootfloppy" to "bootfs" as it
is used for cdroms, not just floppies :) adjust paths as necessary for
this merge.

--- done via repository copy.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.3.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.3 from trunk (new file). (mrg)
 1.3.2.1 28-Aug-1998  cgd file Makefile.inc was added on branch netbsd-1-3 on 1999-01-25 06:19:11 +0000
 1.6.2.1 25-Mar-2002  he Apply patch (requested by he):
Introduce dependency between ramdisk/miniroot construction and
osrelease.sh, to better support UPDATE builds of releases.
 1.26 28-May-2022  andvar s/hierach/hierarch/
 1.25 02-Nov-2021  abs Update some distrib X11R6 references to X11R7

Some of these scripts and notes may no longer be relevant, but now
they are at least not relevant while referring to the current X
installation directory
 1.24 10-Apr-2019  christos adjust miniroot scripts to deal with the time prefix in dmesg
 1.23 04-Apr-2019  christos modernize, and avoid -a -o
 1.22 25-Sep-2010  tsutsui branches: 1.22.48;
Use vt100 rather than sun for $TERM.
The latter one is not supported by the hardcoded libterminfo fallback
without external database.
 1.21 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.20 07-Feb-2006  chs branches: 1.20.20; 1.20.22;
change the old pre-sysinst install.md script to not need file(1)
and take that program and its associated "magic" database
out of the miniroot image. fixes PR 32379.
 1.19 17-Jan-2004  lukem branches: 1.19.6;
Remove references to xcontrib and xmisc now that they've been merged
into xbase.
 1.18 07-May-2002  pk Update md_installboot to use the new /usr/sbin/installboot program.
 1.17 20-Nov-2000  pk Set the md_upgrade_prep_needed flag.
Kill some typos.
 1.16 17-Nov-2000  pk Add functions to move a.out shared libraries to /emul/aout, and call
them from md_prepare_upgrade().
 1.15 31-Oct-2000  pk Try copying the miniroot kernel only if it exists.
 1.14 20-Oct-2000  pk Check if the kernel set was extracted; if not, copy over the miniroot kernel.
 1.13 08-Jul-2000  pk /kern can go since dmesg now uses sysctl() to get the kernel's msgbuf.
 1.12 27-Jun-1999  mrg branches: 1.12.8;
miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.11 09-Oct-1997  jtc branches: 1.11.4;
Fix tipo inherited from old version of TNF copyright template.
 1.10 22-Jun-1997  pk Add `installboot' to list of files that have moved since 1.2
 1.9 09-Oct-1996  jtc merge in 1.2 branch
 1.8 26-Aug-1996  thorpej Pull md_install_sets() changes down from release branch.
 1.7 22-Aug-1996  mrg do md_install_sets.
 1.6 26-Jun-1996  pk Do the disklabel song and dance.
 1.5 19-Jun-1996  pk Insert pause after disklabel blurb.
Remove `-v' from binstall.
 1.4 27-May-1996  leo Sync with changes in MI-miniroot
 1.3 21-May-1996  pk branches: 1.3.2;
Move disklabel(8) calls into `md_prep_label()'.
 1.2 28-Feb-1996  thorpej Copyright assigned to The NetBSD Foundation.
 1.1 06-Jan-1996  pk Use MI install script.
 1.3.2.5 26-Aug-1996  gwr Replace do_mfs_mount with md_makerootwritable
(On some ports it is easier to remount root.)
 1.3.2.4 26-Aug-1996  thorpej Nuke md_install_sets() ... just set the MDSETS variable at the top of
install.md
 1.3.2.3 22-Aug-1996  mrg pull up md_install_sets.
 1.3.2.2 26-Jun-1996  pk Pulldown from trunk: do disklabel song and dance.
 1.3.2.1 20-Jun-1996  pk Sync with trunk.
 1.11.4.1 01-Jul-1999  perry pullup 1.11->1.12 (mrg)
 1.12.8.3 28-Nov-2000  tv Pullup 1.16 and 1.17 [pk]:
Set the md_upgrade_prep_needed flag.
Add functions to move a.out shared libraries to /emul/aout, and call
them from md_prepare_upgrade().
 1.12.8.2 01-Nov-2000  tv Pullup 1.14 and 1.15 [pk]:
Try copying the miniroot kernel only if it exists.
=====
Check if the kernel set was extracted; if not, copy over the miniroot kernel.
 1.12.8.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.19.6.1 14-Feb-2006  tron Pull up following revision(s) (requested by chs in ticket #1163):
distrib/sparc/miniroot/list: revision 1.29
distrib/sparc/install.md: revision 1.20
change the old pre-sysinst install.md script to not need file(1)
and take that program and its associated "magic" database
out of the miniroot image. fixes PR 32379.
 1.20.22.1 18-May-2008  yamt sync with head.
 1.20.20.2 05-Oct-2008  mjf Sync with HEAD.
 1.20.20.1 02-Jun-2008  mjf Sync with HEAD.
 1.22.48.1 10-Jun-2019  christos Sync with HEAD
 1.8 06-Jan-1996  pk Use MI install script.
 1.7 16-Nov-1995  pk Some more tuning.
 1.6 08-Nov-1995  pk Fix tape extraction parms per Jason.
Fix misplaced quote.
 1.5 01-Nov-1995  pk Timezone stuff.
 1.4 31-Oct-1995  pk Kill a few HP-isms.
Add a twiddler.
 1.3 13-Oct-1995  pk New install.sh based on Jason's hp300 script. Needs more polishing.
 1.2 14-Nov-1994  deraadt branches: 1.2.2;
fix typo
 1.1 25-Oct-1994  deraadt first cut
 1.2.2.2 16-Nov-1995  pk Update from trunk; this has to be it.
 1.2.2.1 01-Nov-1995  pk Update from trunk.
 1.5 11-Mar-2002  lukem remove now-unused files
 1.4 22-Aug-2000  abs Add COPYSTRIPCOMMENTS, which passes files through sed to strip comments and
some whitespace, which halves the size of at least /etc/services...
 1.3 30-Apr-1999  abs branches: 1.3.2; 1.3.10;
Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
 1.2 10-Jan-1999  mrg use the "miniroot" versions of these.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.3.10.1 22-Aug-2000  abs fix sysinst floppy for NetBSD/sparc, plus small doc fix.
Approved by thorpej, pullup list:
distrib/notes/sparc/install 1.24
distrib/sparc/bootfs.sysinst/Makefile 1.5
distrib/sparc/list2sh.awk 1.4
distrib/sparc/ramdisk.sysinst/Makefile 1.8
distrib/sparc/ramdisk.sysinst/disktab 1.2
distrib/sparc/ramdisk.sysinst/disktab.preinstall delete
distrib/sparc/ramdisk.sysinst/dot.profile.m4 1.5
distrib/sparc/ramdisk.sysinst/list.m4 1.6
distrib/sparc/ramdisk.sysinst/mtree.conf 1.2
distrib/sparc/ramdisk.sysinst/ramdiskbin.m4 1.4
distrib/utils/libhack/Makefile.inc 1.10
sys/arch/sparc/conf/INSTALL 1.17
 1.3.2.2 30-Apr-1999  abs Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
 1.3.2.1 30-Apr-1999  abs file list2sh.awk was added on branch netbsd-1-4 on 1999-04-30 05:09:44 +0000
 1.4 11-Mar-2002  lukem remove now-unused files
 1.3 30-Apr-1999  abs branches: 1.3.2;
Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
 1.2 10-Jan-1999  mrg use the "miniroot" versions of these.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.3.2.2 30-Apr-1999  abs Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
 1.3.2.1 30-Apr-1999  abs file runlist.sh was added on branch netbsd-1-4 on 1999-04-30 05:09:45 +0000
 1.6 06-Jan-1996  pk Use MI install script.
 1.5 16-Nov-1995  pk Some more tuning.
 1.4 08-Nov-1995  pk Fix tape extraction parms per Jason.
Fix misplaced quote.
 1.3 01-Nov-1995  pk branches: 1.3.2;
Timezone stuff.
 1.2 31-Oct-1995  pk Kill a few HP-isms.
Add a twiddler.
 1.1 20-Oct-1995  pk Script to upgrade a NetBSD/sparc installation.
 1.3.2.2 16-Nov-1995  pk Update from trunk; this has to be it.
 1.3.2.1 01-Nov-1995  pk file upgrade.sh was added on branch netbsd-1-1 on 1995-11-16 22:30:57 +0000
 1.40 14-Mar-2012  martin Disable generation of boot floppy images for sparc, which do not fit on
floppy disks anymore, to unbreak the build (for now).
If someone feels like adding and testing ustarfs support in the floppy
/boot, please reenable again.
 1.39 10-Jul-2003  lukem branches: 1.39.32; 1.39.56; 1.39.58;
Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.38 21-Dec-2002  lukem Add some magic with ${SUNLABEL} into ${IMAGEPOSTBUILD} (after ${INSTALLBOOT}
runs) to ensure that boot.fs has a valid Sun disklabel.

Sparc boot floppies now boot.
 1.37 29-Jul-2002  mrg fix a comment
 1.36 14-May-2002  lukem branches: 1.36.2;
consistently use "${INSTALLBOOT} -v ..."
 1.35 09-May-2002  lukem convert to New Distrib World Order.
(another directory down; one more left to convert to make sparc fully NDWO)
 1.34 02-May-2002  lukem yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
 1.33 11-Mar-2002  lukem as we don't need local version of REV and VER any more, read in
distrib/Makefile.inc directly and remove the now-unnecessary
Makefile.inc from here
 1.32 05-Mar-2002  thorpej Use ${PRINTOBJDIR}.
 1.31 08-Nov-2001  tron Use "vnd0" instead of "/dev/vnd0c" as argument for "vnconfig" because it
is more portable and works with the latest "vnconfig".
 1.30 23-Oct-2001  tv .include <bsd.subdir.mk> in order to inherit no-op standard targets like
the other Makefiles here do. This really isn't the Right way to do it in
the long run (better to use <bsd.prog.mk> with NOPROG), but it works.
 1.29 21-Oct-2001  jmc Convert to using ${MDSETIMAGE}.

Provide a default value for $MDSETIMAGE and pull in bsd.own.mk to have
it overriden as needed for cross/-current builds.
 1.28 21-Oct-2001  jmc Use ${OBJCOPY} instead of objcopy directly.
 1.27 19-Feb-2001  jmc Change to pass file image to binstall so it can be built in securelevel > 0
 1.26 31-Oct-2000  pk * Simplify construction of the `boot.fs' filesystem.
* Construct and install a `Sun a.out' version of the memory-disk kernel
which can be used for booting from tape.
 1.25 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.24 04-Sep-2000  abs Use $(IMAGE) where appropriate
 1.23 28-Aug-2000  pk Install the default boot program again (hopefully this will last a while..)
 1.22 03-Jul-2000  sommerfeld Install netbsd.ram.gz into release area so it can be used to start a netinstall
on systems which can use boot_big.net
 1.21 17-Jun-2000  matt branches: 1.21.2;
quiet this when boot.fs doesn't exist
 1.20 06-May-2000  sjg Allow bootfs to grow as needed. It does not fit on a floppy
anymore - so stop trying, a new floppyfs is needed.
Meanwhile this bootfs remains useful to those that don't use floppies.
 1.19 02-May-2000  sjg use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
 1.18 02-May-2000  sjg use KERNOBJDIR from bsd.kernobj.mk
 1.17 16-Apr-2000  mrg - add a "netbsd.ram" target so we can build a kernel that has an embedded
filesystem but don't need/want to compress it.
- use "KERN?=" so that "make KERN=/path/to/my/netbsd" works.
 1.16 08-Mar-2000  cjs Include bsd.own.mk so we use /etc/mk.conf.
 1.15 21-Feb-2000  pk Select `boot.700000' as the second-stage boot program.
 1.14 14-Jan-2000  pk Zip it real good.
 1.13 10-Jan-2000  pk Remove version number from boot image files.
 1.12 18-Oct-1999  pk Add `release:' targets.
 1.11 08-Apr-1999  pk branches: 1.11.2;
- add more i-nodes to ramdisk image
- make ramdisk/list work again with object directories
- make OS revision part of the images file names (like miniroot).
 1.10 04-Mar-1999  wrstuden branches: 1.10.2;
Modify all calls to newfs in ramdisk/miniroot creation to include
the needed endianism of the architecture. One step towards cross-building
releases.

Not touched are newfs calls in install scripts as they run on the desired
machine and thus default correctly.
 1.9 18-Jan-1999  mrg branches: 1.9.2;
remove bogus line in all: target.
 1.8 10-Jan-1999  mrg adapt to using the miniroot version of runlist.sh
 1.7 14-Nov-1998  mrg add a disklabel -W
 1.6 05-Sep-1998  lukem distclean is a synonym for cleandir
 1.5 28-Aug-1998  mrg use $TOP in more places (pr5899 from jbernard@ox.mines.edu). add empty depend/install targets.
 1.4 21-Jun-1998  mrg move distrib/sparc/floppies/* into distrib/sparc, so that the boot image
can be accessed for cdrom systems. rename "bootfloppy" to "bootfs" as it
is used for cdroms, not just floppies :) adjust paths as necessary for
this merge.

--- done via repository copy.
 1.3 20-Jun-1998  mrg FLOPPY -> INSTALL
 1.2 06-Jun-1998  mrg rename INSTALL FLOPPY. add tset.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.9.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.9 from trunk (new file). (mrg)
 1.9.2.1 18-Jan-1999  cgd file Makefile was added on branch netbsd-1-3 on 1999-01-25 06:19:19 +0000
 1.10.2.5 09-Jul-2000  he Apply patch (requested by pk):
Use the boot loader at 3E0000 instead of 700000, to allow booting
on machines with only 4M in the first physical memory bank.
 1.10.2.4 03-Jun-2000  he Apply patch (requested by he):
Don't strip kernel, copy INSTALL kernel to kernel directory
under ``make release''.
 1.10.2.3 01-Mar-2000  he Apply patch (requested by toddpw):
Fix build errors in distrib/sparc, support ``release'' target,
increase size of ramdisk while removing dependency on /etc/disktab,
and notifying kernel.
 1.10.2.2 22-Feb-2000  he Apply patch (requested by pk):
Make several sparc boot programs to run at different relocated
addresses. The boot build procedures can then pick the one which
is least likely to fail.
 1.10.2.1 08-Apr-1999  pk Pull up rev. 1.11 from trunk.
 1.11.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.21.2.3 20-Mar-2002  he Pull up revision 1.27 (requested by he):
Add ``-f'' option to binstall.sh and use it. This is allows boot
media construction when securelevel > 0.
 1.21.2.2 01-Nov-2000  tv Pullup 1.26 [pk]:
* Simplify construction of the `boot.fs' filesystem.
* Construct and install a `Sun a.out' version of the memory-disk kernel
which can be used for booting from tape.
 1.21.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.36.2.1 26-Dec-2002  tron Pull up revision 1.38 (requested by lukem in ticket #1044):
Add some magic with ${SUNLABEL} into ${IMAGEPOSTBUILD} (after ${INSTALLBOOT}
runs) to ensure that boot.fs has a valid Sun disklabel.
Sparc boot floppies now boot.
 1.39.58.1 24-Mar-2012  bouyer Pull up following revision(s) (requested by martin in ticket #139):
distrib/sparc/bootfs/Makefile: revision 1.40
etc/etc.sparc/Makefile.inc: revision 1.43
Disable generation of boot floppy images for sparc, which do not fit on
floppy disks anymore, to unbreak the build (for now).
If someone feels like adding and testing ustarfs support in the floppy
/boot, please reenable again.
 1.39.56.1 17-Apr-2012  yamt sync with head
 1.39.32.1 05-Oct-2008  mjf Sync with HEAD.
 1.4 09-May-2002  lukem branches: 1.4.34;
convert to New Distrib World Order.
(another directory down; one more left to convert to make sparc fully NDWO)
 1.3 31-Oct-2000  pk * Simplify construction of the `boot.fs' filesystem.
* Construct and install a `Sun a.out' version of the memory-disk kernel
which can be used for booting from tape.
 1.2 23-Jun-1999  mrg branches: 1.2.8;
call this "netbsd" so that it is found first time..
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg branches: 1.1.1.1.2; 1.1.1.1.4;
bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.1.1.1.4.1 23-Jun-1999  perry pullup 1.1->1.2 (mrg)
 1.1.1.1.2.2 25-Jan-1999  cgd pull up rev(s) 1.1 from trunk (new file). (mrg)
 1.1.1.1.2.1 06-Jun-1998  cgd file list was added on branch netbsd-1-3 on 1999-01-25 06:19:27 +0000
 1.2.8.1 01-Nov-2000  tv Pullup 1.3 remove [pk]:
* Simplify construction of the `boot.fs' filesystem.
* Construct and install a `Sun a.out' version of the memory-disk kernel
which can be used for booting from tape.
 1.4.34.1 05-Oct-2008  mjf Sync with HEAD.
 1.1 06-Mar-2007  bouyer branches: 1.1.2; 1.1.14;
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.

call iso_image in distrib/ for iso-image in the top Makefile.
 1.1.14.1 05-Oct-2008  mjf Sync with HEAD.
 1.1.2.2 09-Mar-2007  riz Pull up following revision(s) (requested by bouyer in ticket #494):
sys/arch/i386/conf/GENERIC.MP: revision 1.9
distrib/pc532/cdroms/installcd/Makefile: revision 1.1
distrib/macppc/Makefile: revision 1.15
distrib/ofppc/Makefile: revision 1.2
distrib/ibmnws/Makefile: revision 1.2
distrib/acorn32/Makefile: revision 1.18
distrib/x68k/cdroms/installcd/Makefile: revision 1.1
distrib/sparc/Makefile: revision 1.7
distrib/sparc64/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/Makefile: revision 1.1
distrib/hpcsh/Makefile: revision 1.6
distrib/ofppc/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/Makefile: revision 1.13
distrib/news68k/cdroms/installcd/Makefile: revision 1.1
distrib/amiga/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/cdroms/Makefile: revision 1.1
distrib/amiga/cdroms/Makefile: revision 1.1
etc/etc.mac68k/Makefile.inc: revision 1.18
distrib/shark/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/Makefile: revision 1.28
distrib/hpcmips/cdroms/Makefile: revision 1.1
distrib/amd64/floppies/Makefile: revision 1.3
sys/arch/amd64/conf/INSTALL_ACPI: file removal
distrib/i386/cdroms/Makefile: revision 1.4
distrib/acorn26/cdroms/installcd/Makefile: revision 1.1
distrib/hpcsh/cdroms/Makefile: revision 1.1
distrib/prep/cdroms/Makefile: revision 1.1
distrib/pc532/Makefile: revision 1.4
distrib/acorn32/cdroms/installcd/Makefile: revision 1.1
distrib/sun2/Makefile: revision 1.8
distrib/vax/Makefile: revision 1.17
distrib/sparc64/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/cdroms/Makefile: revision 1.1
distrib/mipsco/cdroms/installcd/Makefile: revision 1.1
distrib/sun3/cdroms/installcd/Makefile: revision 1.1
distrib/vax/cdroms/installcd/Makefile: revision 1.1
distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1
distrib/mvme68k/Makefile: revision 1.4
distrib/mvmeppc/cdroms/Makefile: revision 1.1
distrib/newsmips/Makefile: revision 1.4
sys/arch/i386/conf/GENERIC.MPACPI: file removal
distrib/hpcarm/cdroms/Makefile: revision 1.1
distrib/evbppc/cdroms/Makefile: revision 1.1
sys/arch/i386/conf/INSTALL_LARGE: revision 1.1
distrib/i386/cdroms/installcd/Makefile: revision 1.2
distrib/i386/cdroms/installcd/Makefile: revision 1.3
doc/CHANGES: revision 1.804
distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.2
distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.3
distrib/evbarm/Makefile: revision 1.8
distrib/mvmeppc/Makefile: revision 1.3
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3
distrib/macppc/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/cdroms/Makefile: revision 1.1
distrib/alpha/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/installcd/Makefile: revision 1.1
distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4
distrib/pmppc/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/Makefile: revision 1.2
distrib/pmppc/Makefile: revision 1.2
distrib/arc/cdroms/Makefile: revision 1.1
sys/arch/amd64/conf/INSTALL: revision 1.66
distrib/sun3/cdroms/Makefile: revision 1.1
distrib/mipsco/Makefile: revision 1.4
distrib/sun3/Makefile: revision 1.9
distrib/vax/cdroms/Makefile: revision 1.1
distrib/pmppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile.cdrom: revision 1.1
distrib/atari/cdroms/installcd/Makefile: revision 1.1
distrib/evbppc/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/Makefile: revision 1.4
Makefile: revision 1.247
distrib/cats/cdroms/installcd/Makefile: revision 1.1
sys/arch/amd64/conf/GENERIC: revision 1.130
sys/arch/amd64/conf/GENERIC: revision 1.131
distrib/sgimips/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/Makefile: revision 1.1
distrib/cats/cdroms/Makefile: revision 1.1
distrib/evbmips/Makefile: revision 1.3
distrib/evbmips/Makefile: revision 1.4
sys/arch/amd64/conf/GENERIC_ACPI: file removal
distrib/ews4800mips/Makefile: revision 1.2
distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/Makefile: revision 1.5
distrib/amd64/cdroms/installcd/Makefile: revision 1.2
distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/cdroms/installcd/Makefile: revision 1.1
etc/etc.amd64/Makefile.inc: revision 1.7
distrib/i386/instkernel/Makefile: revision 1.6
distrib/x68k/cdroms/Makefile: revision 1.1
distrib/i386/cdroms/Makefile.cdrom: revision 1.1
distrib/sandpoint/Makefile: revision 1.4
distrib/i386/cdroms/Makefile.cdrom: revision 1.2
distrib/amiga/Makefile: revision 1.3
distrib/amd64/cdroms/bootcd/Makefile: revision 1.2
distrib/news68k/Makefile: revision 1.4
distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5
distrib/news68k/cdroms/Makefile: revision 1.1
distrib/sparc/cdroms/Makefile: revision 1.1
distrib/shark/cdroms/Makefile: revision 1.1
etc/Makefile: revision 1.341
distrib/amd64/instkernel/Makefile: revision 1.2
distrib/sparc64/Makefile: revision 1.7
distrib/dreamcast/cdroms/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.3
distrib/ews4800mips/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/installcd/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.4
distrib/macppc/cdroms/Makefile: revision 1.1
distrib/mvme68k/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/Makefile: revision 1.1
distrib/hpcarm/Makefile: revision 1.3
distrib/arc/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1
distrib/mipsco/cdroms/Makefile: revision 1.1
distrib/Makefile.inc: revision 1.9
distrib/playstation2/cdroms/installcd/Makefile: revision 1.1
distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/Makefile: revision 1.1
distrib/arc/Makefile: revision 1.3
distrib/sparc/cdroms/installcd/Makefile: revision 1.1
distrib/evbmips/cdroms/installcd/Makefile: revision 1.1
distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1
distrib/prep/Makefile: revision 1.3
distrib/ibmnws/cdroms/Makefile: revision 1.1
distrib/sandpoint/cdroms/Makefile: revision 1.1
distrib/atari/Makefile: revision 1.6
distrib/sgimips/cdroms/Makefile: revision 1.1
distrib/amd64/Makefile: revision 1.4
distrib/atari/cdroms/Makefile: revision 1.1
distrib/x68k/Makefile: revision 1.5
distrib/x68k/Makefile: revision 1.6
distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1
distrib/evbarm/cdroms/Makefile: revision 1.1
distrib/acorn32/cdroms/Makefile: revision 1.1
distrib/cats/Makefile: revision 1.3
distrib/evbmips/cdroms/Makefile: revision 1.1
distrib/pc532/cdroms/Makefile: revision 1.1
distrib/Makefile: revision 1.14
distrib/evbarm/cdroms/installcd/Makefile: revision 1.1
distrib/ofppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile: revision 1.3
distrib/common/Makefile.bootcd: revision 1.8
distrib/i386/cdroms/bootcd-laptop/Makefile: file removal
sys/arch/i386/conf/GENERIC: revision 1.813
distrib/hp300/Makefile: revision 1.17
sys/arch/i386/conf/GENERIC: revision 1.814
distrib/evbppc/Makefile: revision 1.2
distrib/pmax/cdroms/installcd/Makefile: revision 1.1
etc/etc.i386/Makefile.inc: revision 1.49
distrib/sgimips/Makefile: revision 1.2
distrib/prep/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/Makefile: revision 1.4
distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/Makefile: revision 1.22
distrib/dreamcast/Makefile: revision 1.2
Improve the use of makefs to build boot CDs, and make it truely MI:
- allow to specify the "instkernel" directory, and allow to put multiple
kernels on the image
- allow to specify the directory where the image will be created
- only use bootxx_cd9660 if it exists
- search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to
usr/mdec/boot
- make 'installboot -e' optional
- use target 'release' or 'iso_image' depending on ${CDRELEASE}
- call some MD targets, which will eventually complete the file list or
make the image bootable
For the benefit of modern hardware, enable ACPI by default in INSTALL and
GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and
'disable acpi' should be a workaround. ACPI-enabled kernels works fine
on pre-acpi hardware.
for amd64:
- add ACPI to INSTALL and GENERIC, remove the *_ACPI config files.
- get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot
image
for i386:
- introduce INSTALL_LARGE which has ACPI and some devices with big firmware
- move some devices from INSTALL to INSTALL_LARGE
- Boot floppies still use INSTALL, and bootfloppy-big.fs is still there
(for thoses who want to build el-torito floppy emulation boot CD) and use
INSTALL.
For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll
use something else to build bootable CDs.
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.
call iso_image in distrib/ for iso-image in the top Makefile.
Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/
Fix typo in subdir name.
Revert local changes that went in accidentally with the "add ACPI" commit.
Note ACPI by default in i386/amd64, and the iso-image changes.
Fix SUBDIR in previous
Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly.
Correct typo: the directory is named cdroms, not cdrom.
Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.
 1.1.2.1 06-Mar-2007  riz file Makefile was added on branch netbsd-4 on 2007-03-09 06:59:41 +0000
 1.4 23-Sep-2019  christos Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
 1.3 28-Sep-2018  martin Now that we do not force debug sets off install CDs any more, explicitly
set CDRELEASE_NODEBUG everywhere.
 1.2 15-Jan-2012  jmcneill branches: 1.2.40; 1.2.42;
use ${CDIMAGE} instead of ${CDBASE}.iso
 1.1 06-Mar-2007  bouyer branches: 1.1.2; 1.1.14; 1.1.22; 1.1.30; 1.1.38; 1.1.40;
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.

call iso_image in distrib/ for iso-image in the top Makefile.
 1.1.40.1 08-Nov-2014  msaitoh Pullup follwing revisions to fix build break of ticket 1931 on some archs.

distrib/alpha/cdroms/installcd/Makefile 1.2
distrib/pmax/cdroms/installcd/Makefile 1.2
distrib/prep/cdroms/installcd/Makefile 1.3
distrib/sgimips/cdroms/installcd/Makefile 1.2
distrib/sparc/cdroms/installcd/Makefile 1.2
distrib/sparc64/cdroms/installcd/Makefile 1.14
distrib/sun3/cdroms/installcd/Makefile 1.2
distrib/vax/cdroms/installcd/Makefile 1.2

Use ${CDIMAGE} instead of ${CDBASE}.iso.
 1.1.38.1 17-Apr-2012  yamt sync with head
 1.1.30.1 08-Nov-2014  msaitoh Pullup follwing revisions to fix build break of ticket 1931 on some archs:

distrib/alpha/cdroms/installcd/Makefile 1.2
distrib/pmax/cdroms/installcd/Makefile 1.2
distrib/prep/cdroms/installcd/Makefile 1.3
distrib/sgimips/cdroms/installcd/Makefile 1.2
distrib/sparc/cdroms/installcd/Makefile 1.2
distrib/sparc64/cdroms/installcd/Makefile 1.14
distrib/sun3/cdroms/installcd/Makefile 1.2
distrib/vax/cdroms/installcd/Makefile 1.2

Use ${CDIMAGE} instead of ${CDBASE}.iso.
 1.1.22.1 08-Nov-2014  msaitoh Pullup follwoing revisons to fix build break of ticket 1931 on some archs:

distrib/alpha/cdroms/installcd/Makefile 1.2
distrib/pmax/cdroms/installcd/Makefile 1.2
distrib/prep/cdroms/installcd/Makefile 1.3
distrib/sgimips/cdroms/installcd/Makefile 1.2
distrib/sparc/cdroms/installcd/Makefile 1.2
distrib/sparc64/cdroms/installcd/Makefile 1.14
distrib/sun3/cdroms/installcd/Makefile 1.2
distrib/vax/cdroms/installcd/Makefile 1.2

Use ${CDIMAGE} instead of ${CDBASE}.iso.
 1.1.14.1 05-Oct-2008  mjf Sync with HEAD.
 1.1.2.2 09-Mar-2007  riz Pull up following revision(s) (requested by bouyer in ticket #494):
sys/arch/i386/conf/GENERIC.MP: revision 1.9
distrib/pc532/cdroms/installcd/Makefile: revision 1.1
distrib/macppc/Makefile: revision 1.15
distrib/ofppc/Makefile: revision 1.2
distrib/ibmnws/Makefile: revision 1.2
distrib/acorn32/Makefile: revision 1.18
distrib/x68k/cdroms/installcd/Makefile: revision 1.1
distrib/sparc/Makefile: revision 1.7
distrib/sparc64/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/Makefile: revision 1.1
distrib/hpcsh/Makefile: revision 1.6
distrib/ofppc/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/Makefile: revision 1.13
distrib/news68k/cdroms/installcd/Makefile: revision 1.1
distrib/amiga/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/cdroms/Makefile: revision 1.1
distrib/amiga/cdroms/Makefile: revision 1.1
etc/etc.mac68k/Makefile.inc: revision 1.18
distrib/shark/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/Makefile: revision 1.28
distrib/hpcmips/cdroms/Makefile: revision 1.1
distrib/amd64/floppies/Makefile: revision 1.3
sys/arch/amd64/conf/INSTALL_ACPI: file removal
distrib/i386/cdroms/Makefile: revision 1.4
distrib/acorn26/cdroms/installcd/Makefile: revision 1.1
distrib/hpcsh/cdroms/Makefile: revision 1.1
distrib/prep/cdroms/Makefile: revision 1.1
distrib/pc532/Makefile: revision 1.4
distrib/acorn32/cdroms/installcd/Makefile: revision 1.1
distrib/sun2/Makefile: revision 1.8
distrib/vax/Makefile: revision 1.17
distrib/sparc64/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/cdroms/Makefile: revision 1.1
distrib/mipsco/cdroms/installcd/Makefile: revision 1.1
distrib/sun3/cdroms/installcd/Makefile: revision 1.1
distrib/vax/cdroms/installcd/Makefile: revision 1.1
distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1
distrib/mvme68k/Makefile: revision 1.4
distrib/mvmeppc/cdroms/Makefile: revision 1.1
distrib/newsmips/Makefile: revision 1.4
sys/arch/i386/conf/GENERIC.MPACPI: file removal
distrib/hpcarm/cdroms/Makefile: revision 1.1
distrib/evbppc/cdroms/Makefile: revision 1.1
sys/arch/i386/conf/INSTALL_LARGE: revision 1.1
distrib/i386/cdroms/installcd/Makefile: revision 1.2
distrib/i386/cdroms/installcd/Makefile: revision 1.3
doc/CHANGES: revision 1.804
distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.2
distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.3
distrib/evbarm/Makefile: revision 1.8
distrib/mvmeppc/Makefile: revision 1.3
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3
distrib/macppc/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/cdroms/Makefile: revision 1.1
distrib/alpha/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/installcd/Makefile: revision 1.1
distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4
distrib/pmppc/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/Makefile: revision 1.2
distrib/pmppc/Makefile: revision 1.2
distrib/arc/cdroms/Makefile: revision 1.1
sys/arch/amd64/conf/INSTALL: revision 1.66
distrib/sun3/cdroms/Makefile: revision 1.1
distrib/mipsco/Makefile: revision 1.4
distrib/sun3/Makefile: revision 1.9
distrib/vax/cdroms/Makefile: revision 1.1
distrib/pmppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile.cdrom: revision 1.1
distrib/atari/cdroms/installcd/Makefile: revision 1.1
distrib/evbppc/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/Makefile: revision 1.4
Makefile: revision 1.247
distrib/cats/cdroms/installcd/Makefile: revision 1.1
sys/arch/amd64/conf/GENERIC: revision 1.130
sys/arch/amd64/conf/GENERIC: revision 1.131
distrib/sgimips/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/Makefile: revision 1.1
distrib/cats/cdroms/Makefile: revision 1.1
distrib/evbmips/Makefile: revision 1.3
distrib/evbmips/Makefile: revision 1.4
sys/arch/amd64/conf/GENERIC_ACPI: file removal
distrib/ews4800mips/Makefile: revision 1.2
distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/Makefile: revision 1.5
distrib/amd64/cdroms/installcd/Makefile: revision 1.2
distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/cdroms/installcd/Makefile: revision 1.1
etc/etc.amd64/Makefile.inc: revision 1.7
distrib/i386/instkernel/Makefile: revision 1.6
distrib/x68k/cdroms/Makefile: revision 1.1
distrib/i386/cdroms/Makefile.cdrom: revision 1.1
distrib/sandpoint/Makefile: revision 1.4
distrib/i386/cdroms/Makefile.cdrom: revision 1.2
distrib/amiga/Makefile: revision 1.3
distrib/amd64/cdroms/bootcd/Makefile: revision 1.2
distrib/news68k/Makefile: revision 1.4
distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5
distrib/news68k/cdroms/Makefile: revision 1.1
distrib/sparc/cdroms/Makefile: revision 1.1
distrib/shark/cdroms/Makefile: revision 1.1
etc/Makefile: revision 1.341
distrib/amd64/instkernel/Makefile: revision 1.2
distrib/sparc64/Makefile: revision 1.7
distrib/dreamcast/cdroms/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.3
distrib/ews4800mips/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/installcd/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.4
distrib/macppc/cdroms/Makefile: revision 1.1
distrib/mvme68k/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/Makefile: revision 1.1
distrib/hpcarm/Makefile: revision 1.3
distrib/arc/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1
distrib/mipsco/cdroms/Makefile: revision 1.1
distrib/Makefile.inc: revision 1.9
distrib/playstation2/cdroms/installcd/Makefile: revision 1.1
distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/Makefile: revision 1.1
distrib/arc/Makefile: revision 1.3
distrib/sparc/cdroms/installcd/Makefile: revision 1.1
distrib/evbmips/cdroms/installcd/Makefile: revision 1.1
distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1
distrib/prep/Makefile: revision 1.3
distrib/ibmnws/cdroms/Makefile: revision 1.1
distrib/sandpoint/cdroms/Makefile: revision 1.1
distrib/atari/Makefile: revision 1.6
distrib/sgimips/cdroms/Makefile: revision 1.1
distrib/amd64/Makefile: revision 1.4
distrib/atari/cdroms/Makefile: revision 1.1
distrib/x68k/Makefile: revision 1.5
distrib/x68k/Makefile: revision 1.6
distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1
distrib/evbarm/cdroms/Makefile: revision 1.1
distrib/acorn32/cdroms/Makefile: revision 1.1
distrib/cats/Makefile: revision 1.3
distrib/evbmips/cdroms/Makefile: revision 1.1
distrib/pc532/cdroms/Makefile: revision 1.1
distrib/Makefile: revision 1.14
distrib/evbarm/cdroms/installcd/Makefile: revision 1.1
distrib/ofppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile: revision 1.3
distrib/common/Makefile.bootcd: revision 1.8
distrib/i386/cdroms/bootcd-laptop/Makefile: file removal
sys/arch/i386/conf/GENERIC: revision 1.813
distrib/hp300/Makefile: revision 1.17
sys/arch/i386/conf/GENERIC: revision 1.814
distrib/evbppc/Makefile: revision 1.2
distrib/pmax/cdroms/installcd/Makefile: revision 1.1
etc/etc.i386/Makefile.inc: revision 1.49
distrib/sgimips/Makefile: revision 1.2
distrib/prep/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/Makefile: revision 1.4
distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/Makefile: revision 1.22
distrib/dreamcast/Makefile: revision 1.2
Improve the use of makefs to build boot CDs, and make it truely MI:
- allow to specify the "instkernel" directory, and allow to put multiple
kernels on the image
- allow to specify the directory where the image will be created
- only use bootxx_cd9660 if it exists
- search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to
usr/mdec/boot
- make 'installboot -e' optional
- use target 'release' or 'iso_image' depending on ${CDRELEASE}
- call some MD targets, which will eventually complete the file list or
make the image bootable
For the benefit of modern hardware, enable ACPI by default in INSTALL and
GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and
'disable acpi' should be a workaround. ACPI-enabled kernels works fine
on pre-acpi hardware.
for amd64:
- add ACPI to INSTALL and GENERIC, remove the *_ACPI config files.
- get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot
image
for i386:
- introduce INSTALL_LARGE which has ACPI and some devices with big firmware
- move some devices from INSTALL to INSTALL_LARGE
- Boot floppies still use INSTALL, and bootfloppy-big.fs is still there
(for thoses who want to build el-torito floppy emulation boot CD) and use
INSTALL.
For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll
use something else to build bootable CDs.
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.
call iso_image in distrib/ for iso-image in the top Makefile.
Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/
Fix typo in subdir name.
Revert local changes that went in accidentally with the "add ACPI" commit.
Note ACPI by default in i386/amd64, and the iso-image changes.
Fix SUBDIR in previous
Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly.
Correct typo: the directory is named cdroms, not cdrom.
Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.
 1.1.2.1 06-Mar-2007  riz file Makefile was added on branch netbsd-4 on 2007-03-09 06:59:47 +0000
 1.2.42.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2.42.1 10-Jun-2019  christos Sync with HEAD
 1.2.40.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.9 21-Dec-2002  lukem branches: 1.9.32;
tyop in comment
 1.8 09-May-2002  lukem convert to NDWO. (that's sparc done!)
 1.7 02-May-2002  lukem yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
 1.6 11-Mar-2002  lukem as we don't need local version of REV and VER any more, read in
distrib/Makefile.inc directly and remove the now-unnecessary
Makefile.inc from here
 1.5 05-Mar-2002  thorpej Use ${PRINTOBJDIR}.
 1.4 08-Nov-2001  tron Use "vnd0" instead of "/dev/vnd0c" as argument for "vnconfig" because it
is more portable and works with the latest "vnconfig".
 1.3 22-Oct-2000  pk Fix release: target
 1.2 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.1 19-Oct-2000  tv branches: 1.1.2;
file Makefile was initially added on branch netbsd-1-5.
 1.1.2.2 30-Oct-2000  tv Pullup 1.2 [pk]:
Fix `release:' target.
 1.1.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.9.32.1 05-Oct-2008  mjf Sync with HEAD.
 1.4 09-May-2002  lukem convert to NDWO. (that's sparc done!)
 1.3 11-Nov-2000  pk Remove `boot', since it causes all files named `boot' to be removed from
all subdirs. This is not the intended effect.
 1.2 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.1 19-Oct-2000  tv branches: 1.1.2;
file exclude was initially added on branch netbsd-1-5.
 1.1.2.2 13-Nov-2000  tv Pullup 1.3 [pk]:
Remove `boot', since it causes all files named `boot' to be removed from
all subdirs. This is not the intended effect.
 1.1.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.1 22-Jan-2012  tsutsui branches: 1.1.4;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 22-Jan-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:02:47 +0000
 1.4 15-Dec-2018  gson Use the special device name "ROOT." in /etc/fstab not just on the arm
images, but also on the bootable disk images of other ports, so that
they can be booted from differently named devices. Merge the i386 and
amd64 -live-sd0root and -live-wd0root images into a single live image
per port, bootable both from usb media and in qemu. Drop the -xx0root
suffixes from image names as they are no longer meaningful.
 1.3 03-Nov-2012  tsutsui branches: 1.3.30; 1.3.32;
Allow overriding live-image and install-image sizes by
INSTIMAGEMB (for install-images), USBIMAGEMB (for x86 sd0root liveimages),
and EMUIMAGEMB (for other liveimages) variables.
Per discussion on current-users@:
http://mail-index.NetBSD.org/current-users/2012/10/29/msg021368.html
 1.2 17-Aug-2012  riz branches: 1.2.2;
Change the naming scheme of "live" images and usb install images
to incorporate the OS name and version.

XXX should also not hardcode ${BOOTDISK} in the name, but that would
require reordering stuff and more testing than I have time for right now.
Another day.

As discussed on current-users@ back in March, with some adjustments.
 1.1 22-Jan-2012  tsutsui branches: 1.1.2; 1.1.4;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.
 1.1.4.4 16-Jan-2013  yamt sync with (a bit old) head
 1.1.4.3 30-Oct-2012  yamt sync with head
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 22-Jan-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:02:47 +0000
 1.1.2.1 17-Aug-2012  martin Pull up following revision(s) (requested by riz in ticket #506):
distrib/amd64/liveimage/emuimage/Makefile: revision 1.2
distrib/amd64/liveimage/usbimage/Makefile: revision 1.2
distrib/sun2/liveimage/emuimage/Makefile: revision 1.2
distrib/amd64/installimage/Makefile: revision 1.2
distrib/sun3/liveimage/emuimage/Makefile: revision 1.2
distrib/pmax/liveimage/emuimage/Makefile: revision 1.2
distrib/vax/liveimage/emuimage/Makefile: revision 1.2
distrib/sparc64/liveimage/emuimage/Makefile: revision 1.2
distrib/common/Makefile.bootcd: revision 1.20
distrib/i386/liveimage/emuimage/Makefile: revision 1.2
distrib/sparc/liveimage/emuimage/Makefile: revision 1.2
distrib/i386/installimage/Makefile: revision 1.2
distrib/i386/liveimage/usbimage/Makefile: revision 1.2
etc/Makefile: revision 1.398
Change the naming scheme of "live" images and usb install images
to incorporate the OS name and version.
XXX should also not hardcode ${BOOTDISK} in the name, but that would
require reordering stuff and more testing than I have time for right now.
Another day.
As discussed on current-users@ back in March, with some adjustments.
Install fully-populated .iso images in ${RELEASEDIR}/images instead
of ${RELEASEDIR}/iso, since we'll be putting non-iso images in there too.
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.
 1.2.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.32.1 10-Jun-2019  christos Sync with HEAD
 1.3.30.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.32 26-Mar-2022  christos grow (for llvm)
 1.31 29-Jan-2020  christos bump a little for llvm
 1.30 02-Aug-2019  joerg Bump sparc miniroot by 100KB for the clang-based build.
 1.29 29-Mar-2018  joerg branches: 1.29.2;
Bump image size again for new bloat.
 1.28 23-Jul-2017  joerg branches: 1.28.2;
Bump the miniroot size slightly for clang.
 1.27 09-Feb-2017  joerg Bump the ram disk and miniroot size slightly for clang.
 1.26 24-Jan-2017  christos += for MAKEFS_FLAGS
 1.25 10-Jan-2017  joerg branches: 1.25.2;
Bump image size a bit for the clang build.
 1.24 03-Jun-2016  joerg branches: 1.24.2;
Give Clang a bit more room in the miniroot.
 1.23 27-Feb-2016  joerg Bump miniroot size slightly from 9216KB to 9360KB for clang.
 1.22 27-Feb-2016  joerg For clang, optimize both ramdisk and miniroot for minimal size and skip
frame pointers where possible.
 1.21 04-Aug-2014  martin Bump miniroot size
 1.20 12-Aug-2013  joerg branches: 1.20.2;
Explicitly build space constrained ramdisk images without unwind tables.
 1.19 18-Aug-2012  mrg branches: 1.19.2;
add ipty to the list of MAKEDEVTARGETS. should fix PR#46812.
certainly makes the qemu/sparc install work for me with netbsd-6.

XXX: pullup.
 1.18 11-Feb-2010  roy branches: 1.18.6; 1.18.8;
Remove terminfo.db as it's now embedded in libterminfo.
 1.17 05-Feb-2010  roy Use the rescue terminfo.db in our images instead of termcap.
 1.16 17-Oct-2009  tsutsui Build miniroot binaries for sparc with -Os to shrink instfs.tgz
for the second boot floppy which use miniroot objects.

This is workaround for PR install/42146, and ok'ed by mrg@.
 1.15 20-Sep-2009  abs 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi ansi/pc-term compatible with color
dumb|unknown 80-column dumb tty
hp300h HP Catseye console
iris-ansi-ap IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il Sun Microsystems Inc. console with working insert-line
vt100|vt100-am DEC VT100 (w/advanced video)
vt220-8 DEC VT220 8 bit terminal
vt220|vt200|vt300 DEC VT220 in vt100 emulation mode
wsvt25 NetBSD wscons in 25 line DEC VT220 mode
wsvt25m NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite NetBSD/x68k ITE
xterm|vs100 xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
 1.14 20-Sep-2009  abs Nothing needs disktab anymore, so we'd rather have an inode and
slightly over 1K of space on install media...
 1.13 01-Jun-2009  he The sparc miniroot actually doesn't use "file" anymore to distinguish
between a.out and ELF objects, so omit the now no-longer-present "magic"
file (deprecated after latest "file" update).
 1.12 13-Jun-2004  sjg branches: 1.12.26; 1.12.34; 1.12.40;
Bump the miniroot size else release build fails.
 1.11 10-Jul-2003  lukem Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.10 29-May-2002  lukem don't bother copying or generating etc/spwd.db, as the miniroot was
switched to libhack a little while ago
 1.9 14-May-2002  lukem branches: 1.9.2;
consistently use "${INSTALLBOOT} -v ..."
 1.8 07-May-2002  pk Increase IMAGESIZE.
 1.7 07-May-2002  pk Use MI installboot(8) program in ${IMAGEPOSTBUILD}.
 1.6 02-May-2002  lukem yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
 1.5 26-Apr-2002  lukem use ${WORKDIR} instead of ${TARGETDIR}, since the latter is only valid
within parselist.
 1.4 12-Apr-2002  lukem - replace image_md_post: target with IMAGE_MD_POST variable, and use
that after building ${IMAGE}
- use ${IMAGEBUILT} to ensure that IMAGE_MD_POST is only run if IMAGE changes
 1.3 10-Apr-2002  lukem use TARGETDIR instead of TARGDIR
 1.2 01-Apr-2002  lukem ensure all sysinst-using makefs generated images have at least 15 inodes free,
and be consistent how MAKEFS_FLAGS is defined.
 1.1 06-Mar-2002  lukem Commit work-in-progess rototill of distrib/miniroot and associated machine
dependent files:

- Use infrastructure from distrib/common to build file system images with
crunchgen-ed programs from a list file.

- Non root ("UNPRIVED") builds from a read-only source tree are possible,
as makefs(8) replaces vnconfig(8)/vnd use, devices are generated using
common/makedev2spec.awk, etc.

- Cross builds should be possible, except that some ports need cross-compile
host tool versions of installboot and any appropriate host disk labelling
tools.
XXX: pmax, sparc and vax need fixing for this!

- This code has NOT YET BEEN TESTED on most of the ports.
It should work, but it is extremely likely that the file system
parameters may need tweaking to get things to fit.
See MAKEFS_FLAGS in sparc/miniroot/Makefile.inc for an example.
If assistance is required, please ask!
 1.9.2.1 29-May-2002  lukem Pull up revision 1.10 (requested by lukem):
don't bother copying or generating etc/spwd.db, as the miniroot was
switched to libhack a little while ago
 1.12.40.1 21-Apr-2010  matt sync to netbsd-5
 1.12.34.1 23-Jan-2010  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1251):
sys/arch/sparc/sparc/auxreg.h: revision 1.13
distrib/sparc/ramdisk/dot.profile: revision 1.20
sys/arch/sparc/dev/audioamd.c: revision 1.25
sys/arch/sparc/dev/fd.c: revision 1.147
sys/arch/sparc/stand/common/promdev.c: revision 1.23
distrib/sparc/miniroot/Makefile.inc: revision 1.16
Build miniroot binaries for sparc with -Os to shrink instfs.tgz
for the second boot floppy which use miniroot objects.
This is workaround for PR install/42146, and ok'ed by mrg@.
Don't try to read disklabel to check FS_RAID on floppy boot since
reopening floppy could cause Data Access Exception later.
Fixes PR port-sparc/42186, ok'ed by mrg@.
Disable "fast trap" handlers which invoke software interrupts
in sparc/amd7930intr.s and sparc/bsd_fdintr.s until they are
rewritten to adapt new MI softint(9) API.
No particular comments on PR port-sparc/42192, but
this fixes timeout problem on floppy access on my SPARCstation 1+.
XXX: floppy support on sun4m seems to have another problem (data overrun).
Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy.
It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE
(to check header?) so we can't use raw device directly.
(note sparc bootfs ramdisk doesn't have dd(1))
Workaround for PR port-sparc/42193, and would also fix PR install/28734.
Explicitly clear AUXIO4M_FTC bit in FTC_FLIP macro used on
pseudo-dma for floppy, as well as AUXIO4C_FTC bit for sun4c.
A comment in the macro says AUXIO4M_FTC bit is auto-clear,
but my two SS20s (including compatible) with 150MHz hyperSPARCs
get data_overrun without it, and no bad side effect on SS5
(works with and without this change).
Closes PR port-sparc/42516, which is the last one of a bunch of
floppy issue on NetBSD/sparc since NetBSD 2.0 days. See
http://mail-index.NetBSD.org/port-sparc/2009/12/20/msg000484.html
for details.
 1.12.26.1 05-Oct-2008  mjf Sync with HEAD.
 1.18.8.1 18-Aug-2012  riz Pull up following revision(s) (requested by martin in ticket #512):
distrib/sparc/miniroot/Makefile.inc: revision 1.19
etc/etc.vax/MAKEDEV.conf: revision 1.17
Seems like all the trendy ramdisks are using "makedev ipty" rather than
"makedev pty0" now. Update vax to match so install media doesn't fail
with
.../MAKEDEV: pty0: creating BSD style tty nodes with ptyfs is a security issue
add ipty to the list of MAKEDEVTARGETS. should fix PR#46812.
certainly makes the qemu/sparc install work for me with netbsd-6.
XXX: pullup.
 1.18.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18.6.1 30-Oct-2012  yamt sync with head
 1.19.2.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.2.1 10-Aug-2014  tls Rebase.
 1.24.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.25.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.28.2.1 30-Mar-2018  pgoyette Resolve conflicts between branch and HEAD
 1.29.2.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.16 09-Jan-2020  martin PR install/54780: in the (of course totally unlikely) case that sysinst
should crash, run "stty sane".
 1.15 25-Sep-2010  tsutsui branches: 1.15.48; 1.15.50;
Remove obsolete message:
'If you are using a SUN type 4 keyboard, please enter "sun-type4".'
 1.14 25-Sep-2010  tsutsui Use vt100 rather than sun for $TERM.
The latter one is not supported by the hardcoded libterminfo fallback
without external database.
 1.13 26-Mar-2004  pk branches: 1.13.32;
mout_mfs needs explicit size parameter; set it to 1MB.
 1.12 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.11 08-Oct-2002  martin Add sun-type4 termcap entry and a hint to use this as TERM when using
a Type 4 keyboard.
 1.10 16-Jan-2001  pk Do not reset the baud rate to 9600.
 1.9 29-Nov-2000  tv Sysinst is no longer "experimental"; it is default on all platforms that
ship it. Make the (I)nstall option invoke sysinst.
The old install and upgrade scripts are still available, for now, under
OI and OU. Add note that these may be removed in a future release.
 1.8 31-Oct-2000  pk * Add code to start sysinst with a writable /tmp directory (a necessity if the
root is on a CD).
* When returning from an escape to shell, stay in the main loop.
 1.7 20-Oct-2000  pk Note existence of sysinst.
 1.6 14-Jun-2000  cgd branches: 1.6.2;
sweep of my licenses for consistency. (no functional changes) These
files have copyright held by people in addition to myself. (I did the
original work, they copied it, enhanced it, and added their copyright
to the derivative work.) Their approval has been given re: the license
change.
 1.5 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.4 23-Nov-1999  simonb Don't start update.
 1.3 26-Jun-1999  cgd branches: 1.3.4;
after checking and setting DONEPROFILE, export it so that children of the
shell (e.g. programs and shells invoked via sysinst) don't try to run
sysinst again. Fixes PR#7805.
 1.2 09-Jan-1998  perry branches: 1.2.2;
Add $HOME to profiles, closes pr 4323 (from Tatoku Ogaito)
 1.1 18-Dec-1995  pk sparc MD miniroot config files.
 1.2.2.1 26-Jun-1999  cgd pull up rev 1.3 from trunk. (cgd)
 1.3.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.2.2 01-Nov-2000  tv Pullup 1.8 [pk]:
* Add code to start sysinst with a writable /tmp directory (a necessity if the
root is on a CD).
* When returning from an escape to shell, stay in the main loop.
 1.6.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.13.32.1 05-Oct-2008  mjf Sync with HEAD.
 1.15.50.1 28-Jan-2020  msaitoh Pull up following revision(s) (requested by martin in ticket #669):
distrib/playstation2/miniroot/dot.profile: revision 1.5
distrib/sparc64/instfs/dot.profile: revision 1.8
distrib/hpcarm/miniroot/dot.profile: revision 1.3
distrib/emips/miniroot/dot.profile: revision 1.2
distrib/x68k/floppies/ramdisk/dot.profile: revision 1.16
distrib/zaurus/ramdisk/dot.profile: revision 1.4
distrib/i386/ramdisks/common/dot.profile: revision 1.7
distrib/cobalt/ramdisk/dot.profile: revision 1.2
distrib/hpcsh/miniroot/dot.profile: revision 1.5
distrib/evbarm/instkernel/ramdisk/dot.profile: revision 1.3
distrib/riscv/ramdisk/dot.profile: revision 1.2
distrib/sandpoint/ramdisk/dot.profile: revision 1.2
distrib/landisk/ramdisk/dot.profile: revision 1.3
distrib/amd64/ramdisks/common/dot.profile: revision 1.4
distrib/macppc/floppies/ramdisk/dot.profile: revision 1.14
distrib/mipsco/ramdisk/dot.profile: revision 1.3
distrib/evbmips/instkernel/ramdisk/dot.profile: revision 1.2
distrib/acorn32/ramdisk/dot.profile: revision 1.4
distrib/cats/ramdisk/dot.profile: revision 1.5
distrib/vax/ramdisk/dot.profile: revision 1.10
distrib/pmax/miniroot/dot.profile: revision 1.3
distrib/sparc/miniroot/dot.profile: revision 1.16
distrib/hpcmips/miniroot/dot.profile: revision 1.8
distrib/prep/floppies/ramdisk/dot.profile: revision 1.3
distrib/news68k/floppies/ramdisk/dot.profile: revision 1.8
distrib/alpha/instkernel/ramdisk/dot.profile: revision 1.11
distrib/ofppc/ramdisks/common/dot.profile: revision 1.2
distrib/mac68k/instkernel/ramdisk/dot.profile: revision 1.9
distrib/hp300/ramdisk/dot.profile: revision 1.7
distrib/ews4800mips/floppies/ramdisk/dot.profile: revision 1.2
distrib/emips/ramdisk/dot.profile: revision 1.3
distrib/newsmips/floppies/ramdisk/dot.profile: revision 1.7
distrib/bebox/ramdisk/dot.profile: revision 1.2
distrib/rs6000/ramdisk/dot.profile: revision 1.2
distrib/sgimips/miniroot/dot.profile: revision 1.2
distrib/mvme68k/miniroot/dot.profile: revision 1.9
distrib/hppa/ramdisk/dot.profile: revision 1.2
distrib/luna68k/ramdisk/dot.profile: revision 1.2
distrib/sgimips/ramdisk/dot.profile: revision 1.4
distrib/evbsh3/instkernel/ramdisk/dot.profile: revision 1.2
distrib/evbppc/ramdisk/dot.profile: revision 1.5
distrib/shark/instkernel/ramdisk/dot.profile: revision 1.5
distrib/pmax/ramdisk/dot.profile: revision 1.11
distrib/dreamcast/ramdisk/dot.profile: revision 1.3
distrib/arc/ramdisk/dot.profile: revision 1.5
distrib/atari/floppies/common/dot.profile: revision 1.8
PR install/54780: in the (of course totally unlikely) case that sysinst
should crash, run "stty sane".
 1.15.48.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.38 30-Nov-2013  nakayama nvi has moved.
 1.37 18-Nov-2011  njoly branches: 1.37.6;
Switch from COPYDIR to COPY/LINK when populating usr/mdec directory, to
avoid file duplication.
 1.36 03-Jul-2011  tron branches: 1.36.2;
Update location of "less" source directory to the build of various
install medias.
 1.35 11-Feb-2010  roy Remove terminfo.db as it's now embedded in libterminfo.
 1.34 05-Feb-2010  roy Use the rescue terminfo.db in our images instead of termcap.
 1.33 02-Jan-2010  tsutsui No need to install /usr/share/zoneinfo into miniroot
because libc functions in libhack doesn't require it and
zoneinfo files seem to get larger since tzcode2009k import.
(due to 64bit time_t support?)

Briefly tested sysinst on sparc miniroot.
 1.32 20-Sep-2009  abs 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi ansi/pc-term compatible with color
dumb|unknown 80-column dumb tty
hp300h HP Catseye console
iris-ansi-ap IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il Sun Microsystems Inc. console with working insert-line
vt100|vt100-am DEC VT100 (w/advanced video)
vt220-8 DEC VT220 8 bit terminal
vt220|vt200|vt300 DEC VT220 in vt100 emulation mode
wsvt25 NetBSD wscons in 25 line DEC VT220 mode
wsvt25m NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite NetBSD/x68k ITE
xterm|vs100 xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
 1.31 20-Sep-2009  abs Nothing needs disktab anymore, so we'd rather have an inode and
slightly over 1K of space on install media...
 1.30 30-Oct-2008  tsutsui usr.bin/vi/build -> usr.bin/nvi/build
 1.29 07-Feb-2006  chs branches: 1.29.20;
change the old pre-sysinst install.md script to not need file(1)
and take that program and its associated "magic" database
out of the miniroot image. fixes PR 32379.
 1.28 28-Dec-2003  martin branches: 1.28.6;
Since common/miniroot/list now includes -lz, no need to add it here
anymore. Noticed by Izumi Tsutsui.
 1.27 12-Jun-2002  lukem as COPYDIR copies files with 444 permissions, we need to explicitly
add MTREE entries to change the permissions of executable programs
such as usr/mdec/installboot and usr/mdec/binstall
 1.26 29-May-2002  lukem don't bother copying or generating etc/spwd.db, as the miniroot was
switched to libhack a little while ago
 1.25 26-May-2002  grant libz is needed for usr.bin/file/compress.c v1.11
 1.24 07-May-2002  pk branches: 1.24.2;
Add crunched /usr/sbin/installboot.
 1.23 06-Mar-2002  lukem Commit work-in-progess rototill of distrib/miniroot and associated machine
dependent files:

- Use infrastructure from distrib/common to build file system images with
crunchgen-ed programs from a list file.

- Non root ("UNPRIVED") builds from a read-only source tree are possible,
as makefs(8) replaces vnconfig(8)/vnd use, devices are generated using
common/makedev2spec.awk, etc.

- Cross builds should be possible, except that some ports need cross-compile
host tool versions of installboot and any appropriate host disk labelling
tools.
XXX: pmax, sparc and vax need fixing for this!

- This code has NOT YET BEEN TESTED on most of the ports.
It should work, but it is extremely likely that the file system
parameters may need tweaking to get things to fit.
See MAKEFS_FLAGS in sparc/miniroot/Makefile.inc for an example.
If assistance is required, please ask!
 1.22 01-Jan-2002  chs miniroot is out of space, use the ramdisk termcap file in the miniroot too
so that it fits again.
 1.21 19-Feb-2001  jmc Change to pass file image to binstall so it can be built in securelevel > 0
 1.20 17-Nov-2000  pk Add file(1); we use it to determine the shared library type.
 1.19 31-Oct-2000  pk Put a GENERIC kernel in the miniroot, to retain consistency with the
tape, floppy and cdrom images.
 1.18 20-Oct-2000  pk * Add bin/rcmd
* Make sysinst `obsolete' sets
* Simplify running dev/MAKEDEV
 1.17 08-Jul-2000  pk /kern can go since dmesg now uses sysctl() to get the kernel's msgbuf.
 1.16 02-May-2000  sjg branches: 1.16.4;
use KERNOBJDIR if set
 1.15 07-Feb-2000  pk sysctl is now in /sbin
 1.14 18-Oct-1999  pk Remove awk(1); it is no longer used by the installation scripts.
Add link to sysinst.
 1.13 04-Jul-1999  mrg branches: 1.13.2;
- back out previous for amiga/miniroot/list because:
- sparc now creates /kern in the 'list' file like the amiga, atari,
mvme68k and pmax ports, and:
- remove /kern from miniroot/mtree.conf
 1.12 27-Jun-1999  mrg miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.11 25-Mar-1999  leo branches: 1.11.2;
- Move the pwd.db & spwd.db files into the list-files of the ports who need
them.
- Use x_dd & x_ifconfig.
 1.10 20-Jan-1999  mrg remove strings.
 1.9 01-Jan-1998  tv Use the boot/bootxx files from ${DESTDIR}/usr/mdec, not /usr/mdec.
(Avoid using "new" bootcode as part of a release, for uniformity.)
 1.8 05-Dec-1997  pk Install the `GENERIC_SCSI3' kernel as promised by the release notes.
 1.7 31-Oct-1997  pk Remove unneeded link to `/usr/sbin/installboot'
 1.6 26-Jun-1996  pk branches: 1.6.2;
Pull up from 1.2 release branch: We need installboot, sysctl, getopt.
 1.5 30-May-1996  leo Add more&less. They are no longer in the MI-list.
 1.4 28-May-1996  pk Change extra directory for vi to `vi/build'
 1.3 27-May-1996  leo Sync with changes in MI-miniroot
 1.2 06-Jan-1996  pk branches: 1.2.4;
Use MI install script.
 1.1 18-Dec-1995  pk sparc MD miniroot config files.
 1.2.4.2 26-Jun-1996  pk We need installboot, sysctl, getopt.
 1.2.4.1 20-Jun-1996  pk Sync with trunk.
 1.6.2.2 05-Dec-1997  pk Pullup rev 1.8 from turnk: install `GENERIC_SCSI3' kernel in the miniroot.
 1.6.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.11.2.2 06-Jul-1999  perry pullup 1.12->1.13 (mrg)
 1.11.2.1 01-Jul-1999  perry pullup 1.11->1.12 (mrg)
 1.13.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.16.4.4 20-Mar-2002  he Pull up revision 1.21 (requested by he):
Add ``-f'' option to binstall.sh and use it. This is allows boot
media construction when securelevel > 0.
 1.16.4.3 28-Nov-2000  tv Pullup 1.20 [pk]:
Add file(1); we use it to determine the shared library type.
 1.16.4.2 01-Nov-2000  tv Pullup 1.19 [pk]:
Put a GENERIC kernel in the miniroot, to retain consistency with the
tape, floppy and cdrom images.
 1.16.4.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.24.2.3 13-Jun-2002  lukem Pull up revision 1.27 (requested by lukem in ticket #260):
as COPYDIR copies files with 444 permissions, we need to explicitly
add MTREE entries to change the permissions of executable programs
such as usr/mdec/installboot and usr/mdec/binstall
 1.24.2.2 29-May-2002  lukem Pull up revision 1.26 (requested by lukem):
don't bother copying or generating etc/spwd.db, as the miniroot was
switched to libhack a little while ago
 1.24.2.1 28-May-2002  lukem Pull up revision 1.25 (requested by grant):
libz is needed for usr.bin/file/compress.c v1.11
 1.28.6.1 14-Feb-2006  tron Pull up following revision(s) (requested by chs in ticket #1163):
distrib/sparc/miniroot/list: revision 1.29
distrib/sparc/install.md: revision 1.20
change the old pre-sysinst install.md script to not need file(1)
and take that program and its associated "magic" database
out of the miniroot image. fixes PR 32379.
 1.29.20.1 05-Oct-2008  mjf Sync with HEAD.
 1.36.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.36.2.1 17-Apr-2012  yamt sync with head
 1.37.6.1 19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4 20-Sep-2009  abs 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi ansi/pc-term compatible with color
dumb|unknown 80-column dumb tty
hp300h HP Catseye console
iris-ansi-ap IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il Sun Microsystems Inc. console with working insert-line
vt100|vt100-am DEC VT100 (w/advanced video)
vt220-8 DEC VT220 8 bit terminal
vt220|vt200|vt300 DEC VT220 in vt100 emulation mode
wsvt25 NetBSD wscons in 25 line DEC VT220 mode
wsvt25m NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite NetBSD/x68k ITE
xterm|vs100 xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
 1.3 08-Oct-2002  martin branches: 1.3.32;
Add sun-type4 termcap entry and a hint to use this as TERM when using
a Type 4 keyboard.
 1.2 10-Mar-2002  lukem rcsid
 1.1 06-Mar-2002  lukem Commit work-in-progess rototill of distrib/miniroot and associated machine
dependent files:

- Use infrastructure from distrib/common to build file system images with
crunchgen-ed programs from a list file.

- Non root ("UNPRIVED") builds from a read-only source tree are possible,
as makefs(8) replaces vnconfig(8)/vnd use, devices are generated using
common/makedev2spec.awk, etc.

- Cross builds should be possible, except that some ports need cross-compile
host tool versions of installboot and any appropriate host disk labelling
tools.
XXX: pmax, sparc and vax need fixing for this!

- This code has NOT YET BEEN TESTED on most of the ports.
It should work, but it is extremely likely that the file system
parameters may need tweaking to get things to fit.
See MAKEFS_FLAGS in sparc/miniroot/Makefile.inc for an example.
If assistance is required, please ask!
 1.3.32.1 05-Oct-2008  mjf Sync with HEAD.
 1.43 09-Feb-2017  joerg Bump the ram disk and miniroot size slightly for clang.
 1.42 27-Feb-2016  joerg branches: 1.42.2; 1.42.4;
For clang, optimize both ramdisk and miniroot for minimal size and skip
frame pointers where possible.
 1.41 09-Jun-2009  he branches: 1.41.8;
Add -lprop to the ramdisk build, so that it builds again, due to
recent changes in newfs. Bump the ramdisk size from 1536 to 1800
blocks as a consequence.
 1.40 25-Jun-2008  matt branches: 1.40.2;
Increase RAMDISK size due to ever-increasing bloat.
 1.39 08-Mar-2003  lukem branches: 1.39.32; 1.39.36;
crank memory disk from 1360 blocks to 1376 blocks
 1.38 02-May-2002  lukem yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
 1.37 26-Apr-2002  lukem replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
 1.36 12-Apr-2002  lukem minor NDWO tweak
 1.35 06-Apr-2002  tsutsui Set DBG=-Os for libhack.
 1.34 28-Mar-2002  lukem - Be consistent how libhack is used: If extra HACKOBJS (e.g., gethost.o) are
required, define them before pulling in libhack/Makefile.inc so that the
dependencies work correctly.
- Other minor cleanups
 1.33 25-Mar-2002  lukem Disable libhack's gethost.o (replacement gethostby{name,addr}()) by default,
as they only support reading /etc/hosts, and its the "least useful" of
the libhack routines. Add gethost.o back to Really Small media which
appears to need the space savings.
 1.32 11-Mar-2002  lukem - convert to New Distrib World Order, which allows this directory to be
cross-built without root privileges. (tested i386->sparc cross-build).
- remove now-unused cruft

XXX: there's still other parts of distrib/sparc that need fixing.
 1.31 21-Nov-2001  jmc Add bsd.prog.mk so libhack builds again
 1.30 08-Nov-2001  tron Use "vnd0" instead of "/dev/vnd0c" as argument for "vnconfig" because it
is more portable and works with the latest "vnconfig".
 1.29 13-Oct-2001  jmc Add MTREE?= to add Makefiles and use when running mtree
 1.28 10-Oct-2001  enami Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts. Pointed out by chs@netbsd.org.
 1.27 19-May-2001  chs include bsd.sys.mk for DESTDIR builds.
 1.26 10-May-2001  pk Tweak # of inodes once again.
 1.25 23-Jan-2001  jmc Redo inode allocation to get a few bytes back
 1.24 01-Nov-2000  garbled Change all ocurrences of "crunchgen" to ${CRUNCHGEN}
 1.23 31-Oct-2000  pk Drop `release' target; we don't need it.
 1.22 26-Oct-2000  garbled Find a bunch of places where we call "make" and replace it with ${MAKE}
 1.21 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.20 04-Sep-2000  abs Use $(IMAGE) where appropriate
 1.19 30-Aug-2000  jhawk Use
${MAKE}
instead of
make
 1.18 02-May-2000  sjg branches: 1.18.4;
use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
 1.17 08-Mar-2000  cjs 1800k is not big enough, so make it 1920k. (Though I'm not sure that making
this larger is the solution we're looking for.) And make it actually work
with a larger size, rather not using the extra space we've allocated due
to not changing the geometry we disklabel it with. Do we even need to give
this a disk-like geometry, especially if it's a `floppy' with more tracks
than a real floppy has?
 1.16 14-Jan-2000  pk Expand md filesystem to 1.8MB.
 1.15 10-Jan-2000  pk Remove version number from boot image files.
 1.14 09-Nov-1999  pk Clean up the crunch configuration file as well.
 1.13 09-Nov-1999  mycroft branches: 1.13.2;
Make this work with obj dirs.
 1.12 18-Oct-1999  pk Add `release:' targets.
 1.11 27-Jun-1999  mrg branches: 1.11.2;
miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.10 11-May-1999  veego Sync with the recent crunchgen changes.
- Remove *.cro files and not the obsoleted *.lo files.

From Bill Studenmund commit message:
> 3) Generate .cro files rather than .lo files. .lo now is used for "local
> objects" - obj's for the host machine not the target machine.
 1.9 08-Apr-1999  pk - add more i-nodes to ramdisk image
- make ramdisk/list work again with object directories
- make OS revision part of the images file names (like miniroot).
 1.8 04-Mar-1999  wrstuden branches: 1.8.2;
Modify all calls to newfs in ramdisk/miniroot creation to include
the needed endianism of the architecture. One step towards cross-building
releases.

Not touched are newfs calls in install scripts as they run on the desired
machine and thus default correctly.
 1.7 31-Jan-1999  mrg err, this is 92 cylinders now.
 1.6 10-Jan-1999  mrg branches: 1.6.2;
- share more with the miniroot
- don't use sysinst yet, it's not ready for the sparc, go back to
the old miniroot install programs.

- add these programs:
- pppd (nice to install from an SS2 with local floppy & modem only)
- bzip2 (media may be bz2'ed in the RFSN future)
- edlabel (much ligher weight than disklabel)
- expr (miniroot)
- hostname (miniroot)
- netstat (miniroot)
- sort (miniroot)

- remove these programs:
- tset (not used)
- strings (too big now)
- slattach (who uses slip these days, *really* ? see pppd addition)
- disklabel (see edlabel addition)
- shutdown (have reboot/halt already)
- sysinst (not using it yet)

- grow the install filesystem a bit more, to facilitate the new programs.

- use gordons libhack stuff, to reduce the size of the install binary.
- don't need /etc/master.passwd or the {s,}pwd.db files anymore!

- clean up dot.profile a bit.
 1.5 14-Nov-1998  mrg add a disklabel -W
 1.4 05-Sep-1998  lukem distclean is a synonym for cleandir
 1.3 28-Aug-1998  mrg call it "instfs" not "floppyinstfs" as it is not for a floppy
 1.2 21-Jun-1998  mrg oops, missed this change.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.6.2.4 03-Feb-1999  cgd create enough inodes for the ramdisk. not needed on trunk because
it currently doesn't lose there. (mrg)
 1.6.2.3 01-Feb-1999  cgd pull up rev 1.7 from trunk (mrg)
 1.6.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.6 from trunk (new file). (mrg)
 1.6.2.1 10-Jan-1999  cgd file Makefile was added on branch netbsd-1-3 on 1999-01-25 06:19:35 +0000
 1.8.2.6 25-Sep-2000  he Apply patch (requested by he):
Fix build problem caused by double use of ${.CURDIR}.
 1.8.2.5 26-Aug-2000  he Apply patch (requested by he):
Make this build with obj directories.
 1.8.2.4 03-Jun-2000  he Apply patch (requested by he):
Use 3240 and not 3528 as miniroot size.
 1.8.2.3 01-Mar-2000  he Apply patch (requested by toddpw):
Fix build errors in distrib/sparc, support ``release'' target,
increase size of ramdisk while removing dependency on /etc/disktab,
and notifying kernel.
 1.8.2.2 01-Jul-1999  perry pullup 1.10->1.11 (mrg)
 1.8.2.1 08-Apr-1999  pk Pull up rev. 1.9 from trunk.
 1.11.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.13.2.2 09-Nov-1999  mycroft Make this work with obj dirs.
 1.13.2.1 09-Nov-1999  mycroft file Makefile was added on branch comdex-fall-1999 on 1999-11-09 12:57:38 +0000
 1.18.4.3 25-Mar-2002  he Apply patch (requested by he):
Introduce dependency between ramdisk/miniroot construction and
osrelease.sh, to better support UPDATE builds of releases.
 1.18.4.2 01-Nov-2000  tv Pullup 1.23 [pk]:
Drop `release' target; we don't need it.
 1.18.4.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.39.36.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.39.32.2 05-Oct-2008  mjf Sync with HEAD.
 1.39.32.1 29-Jun-2008  mjf Sync with HEAD.
 1.40.2.1 23-Dec-2013  riz Apply patch (requested by bad in ticket #1887):

Avoid libhack/gethost.c in the ramdisk as nothing needs the functions.
 1.41.8.1 06-Jan-2014  bouyer Apply patch (requested by bad in ticket #975):

Avoid libhack/gethost.c in the ramdisk as nothing needs the functions.
 1.42.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.42.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.2 11-Mar-2002  lukem - convert to New Distrib World Order, which allows this directory to be
cross-built without root privileges. (tested i386->sparc cross-build).
- remove now-unused cruft

XXX: there's still other parts of distrib/sparc that need fixing.
 1.1 09-Jun-1998  mrg branches: 1.1.2;
add /usr/sbin/update, sun, xterm, and tvi925 termcaps, and a disktab.preinstall file.
 1.1.2.2 25-Jan-1999  cgd pull up rev(s) 1.1 from trunk (new file). (mrg)
 1.1.2.1 09-Jun-1998  cgd file disktab.preinstall was added on branch netbsd-1-3 on 1999-01-25 06:19:43 +0000
 1.20 24-Dec-2009  tsutsui Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy.
It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE
(to check header?) so we can't use raw device directly.
(note sparc bootfs ramdisk doesn't have dd(1))

Workaround for PR port-sparc/42193, and would also fix PR install/28734.
 1.19 30-Apr-2008  martin branches: 1.19.4; 1.19.10;
Convert TNF licenses to new 2 clause variant
 1.18 11-Jul-2003  pk branches: 1.18.16; 1.18.32; 1.18.34;
Pass explicit device to eject(1), since it doesn't know about the floppy
driver's "partition" scheme..
 1.17 20-Jul-2002  lukem Mount the mfs /instfs with a reasonable inode density, otherwise it
runs out of space.
Problem found & fixed by Adam Lebsack <adam@lebsack.com> in [port-sparc/17614]
 1.16 17-Jun-2001  pk branches: 1.16.2;
cdrom(): allow the location of `instfs.tgz' on the CD to be overridden
as suggested by Robert Elz on port-sparc.
 1.15 28-Nov-2000  pk cdrom(): Look for the `instfs.tgz' image in the $MACHINE subdirectory of
the CD-R root first.
 1.14 06-Nov-2000  pk Eject the floppy disks.
 1.13 31-Oct-2000  pk Don't bother with the tape block size unless explicitly requested.
 1.12 30-Oct-2000  pk Support the two-stage memory-disk based bootstrap method for tape, cdrom
and floppy.
 1.11 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.10 14-Jun-2000  cgd branches: 1.10.2;
sweep of my licenses for consistency. (no functional changes) These
files have copyright held by people in addition to myself. (I did the
original work, they copied it, enhanced it, and added their copyright
to the derivative work.) Their approval has been given re: the license
change.
 1.9 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.8 21-Jan-2000  tsutsui rename (revert) memory disk filename /dev/mdX -> /dev/mdXa
 1.7 10-Jan-2000  tsutsui Fix root device name md0a -> md0
 1.6 23-Nov-1999  simonb Don't start update.
 1.5 27-Jun-1999  mrg branches: 1.5.4;
miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.4 26-Jun-1999  cgd after checking and setting DONEPROFILE, export it so that children of the
shell (e.g. programs and shells invoked via sysinst) don't try to run
sysinst again. Fixes PR#7805.
 1.3 10-Jan-1999  mrg branches: 1.3.2; 1.3.4;
- share more with the miniroot
- don't use sysinst yet, it's not ready for the sparc, go back to
the old miniroot install programs.

- add these programs:
- pppd (nice to install from an SS2 with local floppy & modem only)
- bzip2 (media may be bz2'ed in the RFSN future)
- edlabel (much ligher weight than disklabel)
- expr (miniroot)
- hostname (miniroot)
- netstat (miniroot)
- sort (miniroot)

- remove these programs:
- tset (not used)
- strings (too big now)
- slattach (who uses slip these days, *really* ? see pppd addition)
- disklabel (see edlabel addition)
- shutdown (have reboot/halt already)
- sysinst (not using it yet)

- grow the install filesystem a bit more, to facilitate the new programs.

- use gordons libhack stuff, to reduce the size of the install binary.
- don't need /etc/master.passwd or the {s,}pwd.db files anymore!

- clean up dot.profile a bit.
 1.2 20-Jun-1998  mrg mount /dev/md0a rw
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.3.4.2 01-Jul-1999  perry pullup 1.4->1.5 (mrg)
 1.3.4.1 26-Jun-1999  cgd pull up rev 1.4 from trunk. (cgd)
 1.3.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.3 from trunk (new file). (mrg)
 1.3.2.1 10-Jan-1999  cgd file dot.profile was added on branch netbsd-1-3 on 1999-01-25 06:19:52 +0000
 1.5.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.10.2.4 30-Nov-2000  tv Pullup 1.15 [pk]:
cdrom(): Look for the `instfs.tgz' image in the $MACHINE subdirectory of
the CD-R root first.
 1.10.2.3 09-Nov-2000  tv Pullup 1.14 [pk]:
Add `eject'.
 1.10.2.2 01-Nov-2000  tv Pullup 1.12 and 1.13 [pk]:
Don't bother with the tape block size unless explicitly requested.
=====
Support the two-stage memory-disk based bootstrap method for tape, cdrom
and floppy.
 1.10.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.16.2.1 20-Jul-2002  lukem Pull up revision 1.17 (requested by lukem in ticket #528):
Mount the mfs /instfs with a reasonable inode density, otherwise it
runs out of space.
Problem found & fixed by Adam Lebsack <adam@lebsack.com> in [port-sparc/17614]
 1.18.34.1 18-May-2008  yamt sync with head.
 1.18.32.2 05-Oct-2008  mjf Sync with HEAD.
 1.18.32.1 02-Jun-2008  mjf Sync with HEAD.
 1.18.16.1 27-Jan-2010  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1379):
sys/arch/sparc/sparc/auxreg.h: revision 1.13
distrib/sparc/ramdisk/dot.profile: revision 1.20
sys/arch/sparc/stand/common/promdev.c: revision 1.23
Don't try to read disklabel to check FS_RAID on floppy boot since
reopening floppy could cause Data Access Exception later.
Fixes PR port-sparc/42186, ok'ed by mrg@.
Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy.
It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE
(to check header?) so we can't use raw device directly.
(note sparc bootfs ramdisk doesn't have dd(1))
Workaround for PR port-sparc/42193, and would also fix PR install/28734.
Explicitly clear AUXIO4M_FTC bit in FTC_FLIP macro used on
pseudo-dma for floppy, as well as AUXIO4C_FTC bit for sun4c.
A comment in the macro says AUXIO4M_FTC bit is auto-clear,
but my two SS20s (including compatible) with 150MHz hyperSPARCs
get data_overrun without it, and no bad side effect on SS5
(works with and without this change).
Closes PR port-sparc/42516, which is the last one of a bunch of
floppy issue on NetBSD/sparc since NetBSD 2.0 days. See
http://mail-index.NetBSD.org/port-sparc/2009/12/20/msg000484.html
for details.
 1.19.10.1 21-Apr-2010  matt sync to netbsd-5
 1.19.4.1 23-Jan-2010  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1251):
sys/arch/sparc/sparc/auxreg.h: revision 1.13
distrib/sparc/ramdisk/dot.profile: revision 1.20
sys/arch/sparc/dev/audioamd.c: revision 1.25
sys/arch/sparc/dev/fd.c: revision 1.147
sys/arch/sparc/stand/common/promdev.c: revision 1.23
distrib/sparc/miniroot/Makefile.inc: revision 1.16
Build miniroot binaries for sparc with -Os to shrink instfs.tgz
for the second boot floppy which use miniroot objects.
This is workaround for PR install/42146, and ok'ed by mrg@.
Don't try to read disklabel to check FS_RAID on floppy boot since
reopening floppy could cause Data Access Exception later.
Fixes PR port-sparc/42186, ok'ed by mrg@.
Disable "fast trap" handlers which invoke software interrupts
in sparc/amd7930intr.s and sparc/bsd_fdintr.s until they are
rewritten to adapt new MI softint(9) API.
No particular comments on PR port-sparc/42192, but
this fixes timeout problem on floppy access on my SPARCstation 1+.
XXX: floppy support on sun4m seems to have another problem (data overrun).
Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy.
It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE
(to check header?) so we can't use raw device directly.
(note sparc bootfs ramdisk doesn't have dd(1))
Workaround for PR port-sparc/42193, and would also fix PR install/28734.
Explicitly clear AUXIO4M_FTC bit in FTC_FLIP macro used on
pseudo-dma for floppy, as well as AUXIO4C_FTC bit for sun4c.
A comment in the macro says AUXIO4M_FTC bit is auto-clear,
but my two SS20s (including compatible) with 150MHz hyperSPARCs
get data_overrun without it, and no bad side effect on SS5
(works with and without this change).
Closes PR port-sparc/42516, which is the last one of a bunch of
floppy issue on NetBSD/sparc since NetBSD 2.0 days. See
http://mail-index.NetBSD.org/port-sparc/2009/12/20/msg000484.html
for details.
 1.19 09-Jun-2009  he Add -lprop to the ramdisk build, so that it builds again, due to
recent changes in newfs. Bump the ramdisk size from 1536 to 1800
blocks as a consequence.
 1.18 26-Jun-2002  grant branches: 1.18.32;
add comment and fix whitespace.
 1.17 13-Apr-2002  lukem consistency cleanup
 1.16 11-Mar-2002  lukem - convert to New Distrib World Order, which allows this directory to be
cross-built without root privileges. (tested i386->sparc cross-build).
- remove now-unused cruft

XXX: there's still other parts of distrib/sparc that need fixing.
 1.15 05-Nov-2000  pk Add `eject'.
 1.14 30-Oct-2000  pk Remove mount(8) since we can use the fs-specific versions directly.
Add umount(8) (scaled-down version).
Add reboot/halt.
 1.13 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.12 07-Jun-2000  thorpej branches: 1.12.2;
Need /etc/netconfig.
 1.11 23-Nov-1999  simonb Remove update from the miniroot lists.
 1.10 09-Nov-1999  pk Pull in the IPSECless version of ping.
 1.9 27-Jun-1999  mrg branches: 1.9.4;
miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.8 08-Apr-1999  pk - add more i-nodes to ramdisk image
- make ramdisk/list work again with object directories
- make OS revision part of the images file names (like miniroot).
 1.7 10-Jan-1999  mrg branches: 1.7.2; 1.7.4;
- share more with the miniroot
- don't use sysinst yet, it's not ready for the sparc, go back to
the old miniroot install programs.

- add these programs:
- pppd (nice to install from an SS2 with local floppy & modem only)
- bzip2 (media may be bz2'ed in the RFSN future)
- edlabel (much ligher weight than disklabel)
- expr (miniroot)
- hostname (miniroot)
- netstat (miniroot)
- sort (miniroot)

- remove these programs:
- tset (not used)
- strings (too big now)
- slattach (who uses slip these days, *really* ? see pppd addition)
- disklabel (see edlabel addition)
- shutdown (have reboot/halt already)
- sysinst (not using it yet)

- grow the install filesystem a bit more, to facilitate the new programs.

- use gordons libhack stuff, to reduce the size of the install binary.
- don't need /etc/master.passwd or the {s,}pwd.db files anymore!

- clean up dot.profile a bit.
 1.6 21-Jun-1998  mrg move distrib/sparc/floppies/* into distrib/sparc, so that the boot image
can be accessed for cdrom systems. rename "bootfloppy" to "bootfs" as it
is used for cdroms, not just floppies :) adjust paths as necessary for
this merge.

--- done via repository copy.
 1.5 20-Jun-1998  mrg add link for tar/cpio, fix mount_mfs, and add kernfs
 1.4 20-Jun-1998  mrg add mount_mfs, getopt, use the src MAKEDEV and disktab files. ln less more
 1.3 09-Jun-1998  mrg add /usr/sbin/update, sun, xterm, and tvi925 termcaps, and a disktab.preinstall file.
 1.2 06-Jun-1998  mrg rename INSTALL FLOPPY. add tset.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.7.4.3 03-Jun-2000  he Apply patch (requested by he):
Make the "ramdisk" devices, not the "floppy" devices.
 1.7.4.2 01-Jul-1999  perry pullup 1.8->1.9 (mrg)
 1.7.4.1 08-Apr-1999  pk Pull up rev. 1.8 from trunk.
 1.7.2.2 25-Jan-1999  cgd pull up revs 1.1-1.7 from trunk (new file), plus a patch to adjust for
features not present in 1.3.x. (mrg)
 1.7.2.1 10-Jan-1999  cgd file list was added on branch netbsd-1-3 on 1999-01-25 06:22:32 +0000
 1.9.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.12.2.3 09-Nov-2000  tv Pullup 1.15 [pk]:
Add `eject'.
 1.12.2.2 01-Nov-2000  tv Pull up 1.14 fully [pk]:
Remove mount(8) since we can use the fs-specific versions directly.
Add umount(8) (scaled-down version).
Add reboot/halt.
 1.12.2.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.18.32.1 05-Oct-2008  mjf Sync with HEAD.
 1.6 11-Mar-2002  lukem - convert to New Distrib World Order, which allows this directory to be
cross-built without root privileges. (tested i386->sparc cross-build).
- remove now-unused cruft

XXX: there's still other parts of distrib/sparc that need fixing.
 1.5 30-Oct-2000  pk Add /cdrom which is used by dot.profile as a mount point.
 1.4 20-Oct-2000  pk Boot from floppy now requires two disk images:
- a bootable bootfs which contains a spartan md-based `ramdisk'
filesystem, which loads the tar file image:
- instfs, which is constructed from the miniroot filesystem
and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
 1.3 28-Aug-1998  mrg branches: 1.3.2; 1.3.12;
remove duplicate ./kern entry.
 1.2 20-Jun-1998  mrg add /mnt3 and /kern
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.3.12.2 01-Nov-2000  tv Pullup 1.5 [pk]:
Add /cdrom which is used by dot.profile as a mount point.
 1.3.12.1 19-Oct-2000  tv Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
 1.3.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.3 from trunk (new file). (mrg)
 1.3.2.1 28-Aug-1998  cgd file mtree.conf was added on branch netbsd-1-3 on 1999-01-25 06:20:01 +0000
 1.11 27-Jun-1999  mrg miniroot changes:
install.sub:
- fix interface grovelling, ifmedia support, allow ifmedia and link
to have a "none" (-> "") answer (which lets you give nothing when
a default answer is given)
- allow installing more than one set at a time, including "all" as
a synonym for all remaining sets
- mount -o async when extracting sets
makeconf.awk:
- put default "libs" section at the end rather than the start, so
you can put other "libs" in before this list
- minor cleanup

mtree.conf:
- create /kern

sparc install.md:
- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
- use /kern & kernfs (replaces dmesg)
- replace grep & cut pipe lines with sed
- replace grep hackery with sed hackery
- grep and cut are no longer required! yay!
- deal with no /usr/bin/vi -- call disklabel -i
- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
rather than the miniroot kernel
sparc miniroot list:
- no more dmesg, cut or grep

sparc ramdisk changes:
Makefile:
- `ramdiskbin.conf' is now generated by makeconf.awk
- don't use libhack's opendir, it breaks
dot.profile:
- don't assume terminal is `sun'
- set EDITOR=ed
-
list:
- instbin -> ramdiskbin to make `makeconf.awk' work
- CRUNCHSPECIAL those special dirs
- add our LIBS as necessary

libhack changes:
- if NOLIBHACKOPENDIR is set, don't build opendir.o
 1.10 11-Jan-1999  mrg branches: 1.10.2; 1.10.4;
use x_gzip over gzip_s
 1.9 10-Jan-1999  mrg use x_netstat, and save 30k. we now have 46k spare.
 1.8 10-Jan-1999  mrg - share more with the miniroot
- don't use sysinst yet, it's not ready for the sparc, go back to
the old miniroot install programs.

- add these programs:
- pppd (nice to install from an SS2 with local floppy & modem only)
- bzip2 (media may be bz2'ed in the RFSN future)
- edlabel (much ligher weight than disklabel)
- expr (miniroot)
- hostname (miniroot)
- netstat (miniroot)
- sort (miniroot)

- remove these programs:
- tset (not used)
- strings (too big now)
- slattach (who uses slip these days, *really* ? see pppd addition)
- disklabel (see edlabel addition)
- shutdown (have reboot/halt already)
- sysinst (not using it yet)

- grow the install filesystem a bit more, to facilitate the new programs.

- use gordons libhack stuff, to reduce the size of the install binary.
- don't need /etc/master.passwd or the {s,}pwd.db files anymore!

- clean up dot.profile a bit.
 1.7 05-Jan-1999  cjs Remove strings, at least for the moment, until someone figures out
how to get it to link here. It needs to link statically against
gnu/usr.bin/binutils/common/libcommon.a (which may be in an obj or
obj.arch directory underneath, actually).
 1.6 28-Aug-1998  mrg link newfs to mount_mfs not mount_nfs
 1.5 20-Jun-1998  mrg add link for tar/cpio, fix mount_mfs, and add kernfs
 1.4 20-Jun-1998  mrg add mount_mfs, getopt, use the src MAKEDEV and disktab files. ln less more
 1.3 09-Jun-1998  mrg add /usr/sbin/update, sun, xterm, and tvi925 termcaps, and a disktab.preinstall file.
 1.2 06-Jun-1998  mrg rename INSTALL FLOPPY. add tset.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.10.4.1 01-Jul-1999  perry delete (mrg)
 1.10.2.3 25-Jan-1999  cgd patch to get rid of the last vestiges of bzip2, which didn't exist in
1.3.x. (mrg)
 1.10.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.10 from trunk (new file). (mrg)
 1.10.2.1 11-Jan-1999  cgd file ramdiskbin.conf was added on branch netbsd-1-3 on 1999-01-25 06:20:09 +0000
 1.4 11-Mar-2002  lukem - convert to New Distrib World Order, which allows this directory to be
cross-built without root privileges. (tested i386->sparc cross-build).
- remove now-unused cruft

XXX: there's still other parts of distrib/sparc that need fixing.
 1.3 13-Mar-1999  itohy Use G0 (not G1) for the alternative character set (DEC line graphics).
Delete "\E)0" sequences and make ":as=\E(0:ae=\E(B:"
(some terminals use "1" for "0").
This change makes it easy to use 8-bit encodings, such as ISO8859, EUC, etc.
PR #7126.
 1.2 09-Jun-1998  mrg branches: 1.2.2;
add /usr/sbin/update, sun, xterm, and tvi925 termcaps, and a disktab.preinstall file.
 1.1 06-Jun-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 06-Jun-1998  mrg bootable floppy support for NetBSD/sparc, based on some i386 stuff
 1.2.2.2 25-Jan-1999  cgd pull up rev(s) 1.1-1.2 from trunk (new file). (mrg)
 1.2.2.1 09-Jun-1998  cgd file termcap.src was added on branch netbsd-1-3 on 1999-01-25 06:20:19 +0000

RSS XML Feed