pk
edb01b1198
Pass explicit device to eject(1), since it doesn't know about the floppy
...
driver's "partition" scheme..
2003-07-11 12:16:56 +00:00
lukem
001c68bd94
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.
2003-07-10 10:33:58 +00:00
lukem
6107a9b605
crank memory disk from 1360 blocks to 1376 blocks
2003-03-08 00:04:36 +00:00
lukem
10d98f9c78
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.
2002-12-21 13:01:20 +00:00
lukem
233359acd6
tyop in comment
2002-12-21 02:52:25 +00:00
martin
6060607b3f
Add sun-type4 termcap entry and a hint to use this as TERM when using
...
a Type 4 keyboard.
2002-10-08 20:29:58 +00:00
mrg
43df3bff77
fix a comment
2002-07-29 14:23:12 +00:00
lukem
e58bf406f1
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]
2002-07-20 07:06:28 +00:00
grant
5ed147d20d
add comment and fix whitespace.
2002-06-26 16:17:41 +00:00
lukem
1cf21a4eeb
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
2002-06-12 22:59:31 +00:00
lukem
2bc49b8d2a
don't bother copying or generating etc/spwd.db, as the miniroot was
...
switched to libhack a little while ago
2002-05-29 04:11:01 +00:00
grant
89d9e55136
libz is needed for usr.bin/file/compress.c v1.11
2002-05-26 12:16:56 +00:00
lukem
094e12e661
consistently use "${INSTALLBOOT} -v ..."
2002-05-14 06:21:20 +00:00
lukem
5098ab87b7
instfs doesn't have to wait on ramdisk or bootfs
2002-05-09 11:13:52 +00:00
lukem
3778fa3e3c
convert to NDWO. (that's sparc done!)
2002-05-09 11:12:48 +00:00
lukem
4db94e2b9a
convert to New Distrib World Order.
...
(another directory down; one more left to convert to make sparc fully NDWO)
2002-05-09 05:31:13 +00:00
pk
5a355629e8
Add crunched /usr/sbin/installboot.
2002-05-07 12:46:19 +00:00
pk
a0fd84cd66
Update md_installboot to use the new /usr/sbin/installboot program.
2002-05-07 12:27:26 +00:00
pk
e1040e5831
Increase IMAGESIZE.
2002-05-07 11:35:44 +00:00
pk
41cb0397f6
Use MI installboot(8) program in ${IMAGEPOSTBUILD}.
2002-05-07 11:34:40 +00:00
lukem
ed8e534c7e
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}
2002-05-02 18:02:14 +00:00
lukem
9e5598221a
replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
2002-04-26 15:50:21 +00:00
lukem
53f41a1d9d
use ${WORKDIR} instead of ${TARGETDIR}, since the latter is only valid
...
within parselist.
2002-04-26 03:49:21 +00:00
lukem
8f603e224b
consistency cleanup
2002-04-13 13:42:57 +00:00
lukem
f49045ad2d
minor NDWO tweak
2002-04-12 14:56:38 +00:00
lukem
de37d5123f
.WAIT sync. whitespace cleanup
2002-04-12 14:54:36 +00:00
lukem
983821fd73
- 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
2002-04-12 03:21:09 +00:00
lukem
380bba0606
use TARGETDIR instead of TARGDIR
2002-04-10 14:44:02 +00:00
tsutsui
ebf5fffe65
Set DBG=-Os for libhack.
2002-04-06 18:16:09 +00:00
lukem
e0f433e649
ensure all sysinst-using makefs generated images have at least 15 inodes free,
...
and be consistent how MAKEFS_FLAGS is defined.
2002-04-01 12:16:11 +00:00
lukem
484f8db2eb
- 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
2002-03-28 04:33:21 +00:00
lukem
25c4cc30b2
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.
2002-03-25 07:43:39 +00:00
lukem
3f267f7add
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
2002-03-11 07:11:37 +00:00
lukem
0a2de544dd
remove now-unused files
2002-03-11 07:06:19 +00:00
lukem
ceed08717c
- 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.
2002-03-11 07:04:21 +00:00
lukem
91c57b31d0
rcsid
2002-03-10 20:23:28 +00:00
lukem
a8025d95ae
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!
2002-03-06 12:04:48 +00:00
thorpej
0d1f6a757d
Use ${PRINTOBJDIR}.
2002-03-05 21:16:51 +00:00
pk
9050f03f0a
Use KERNSRCDIR in path to `osrelease.sh'.
2002-01-11 17:42:57 +00:00
chs
5192c64824
miniroot is out of space, use the ramdisk termcap file in the miniroot too
...
so that it fits again.
2002-01-01 18:51:40 +00:00
jmc
350a405af0
Add bsd.prog.mk so libhack builds again
2001-11-21 01:45:21 +00:00
tron
34d8f65b19
Use "vnd0" instead of "/dev/vnd0c" as argument for "vnconfig" because it
...
is more portable and works with the latest "vnconfig".
2001-11-08 16:52:20 +00:00
tv
4adbe6d1df
.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.
2001-10-23 16:30:35 +00:00
jmc
4d6ad24166
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.
2001-10-21 23:23:19 +00:00
jmc
57d273d68a
Use ${OBJCOPY} instead of objcopy directly.
2001-10-21 23:21:53 +00:00
jmc
a37907dc27
Add MTREE?= to add Makefiles and use when running mtree
2001-10-13 06:15:15 +00:00
enami
652855a0c7
Use symbol MTREECONF instead of MTREE to refer configuration file
...
to avoid conflicts. Pointed out by chs@netbsd.org .
2001-10-10 05:13:51 +00:00
pk
215ea55b64
cdrom(): allow the location of `instfs.tgz' on the CD to be overridden
...
as suggested by Robert Elz on port-sparc.
2001-06-17 11:57:23 +00:00
chs
50942259de
include bsd.sys.mk for DESTDIR builds.
2001-05-19 03:30:22 +00:00
pk
82dde0ecbb
Tweak # of inodes once again.
2001-05-10 13:21:58 +00:00
jmc
5d433ad17d
Change to pass file image to binstall so it can be built in securelevel > 0
2001-02-19 06:25:39 +00:00
jmc
2bf9cb72c4
Redo inode allocation to get a few bytes back
2001-01-23 01:36:24 +00:00
pk
3a328aff50
Do not reset the baud rate to 9600.
2001-01-16 10:40:53 +00:00
tv
1b4a4e04a5
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.
2000-11-29 03:06:18 +00:00
pk
13b10eb901
cdrom(): Look for the `instfs.tgz' image in the $MACHINE subdirectory of
...
the CD-R root first.
2000-11-28 21:51:09 +00:00
pk
bc229aa16a
Set the md_upgrade_prep_needed flag.
...
Kill some typos.
2000-11-20 11:52:37 +00:00
pk
2168a74f89
Add file(1); we use it to determine the shared library type.
2000-11-17 18:01:41 +00:00
pk
c6ab4b179f
Add functions to move a.out shared libraries to /emul/aout, and call
...
them from md_prepare_upgrade().
2000-11-17 17:53:53 +00:00
pk
09d659f070
Remove boot', since it causes all files named
boot' to be removed from
...
all subdirs. This is not the intended effect.
2000-11-11 10:27:56 +00:00
pk
7e005a8804
Eject the floppy disks.
2000-11-06 23:17:45 +00:00
pk
f90ceb9573
Add `eject'.
2000-11-05 18:35:56 +00:00
garbled
83f61a5891
Change all ocurrences of "crunchgen" to ${CRUNCHGEN}
2000-11-01 07:57:55 +00:00
pk
4864442381
Try copying the miniroot kernel only if it exists.
2000-10-31 21:11:20 +00:00
pk
b05c4f8ba0
* 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.
2000-10-31 21:09:22 +00:00
pk
f495c4188d
Put a GENERIC kernel in the miniroot, to retain consistency with the
...
tape, floppy and cdrom images.
2000-10-31 21:02:18 +00:00
pk
ed7f29492d
* 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.
2000-10-31 20:59:00 +00:00
pk
640c32d52d
Drop `release' target; we don't need it.
2000-10-31 20:54:47 +00:00
pk
0caaadb3be
Don't bother with the tape block size unless explicitly requested.
2000-10-31 20:53:04 +00:00
pk
130047c6c1
Remove mount(8) since we can use the fs-specific versions directly.
...
Add umount(8) (scaled-down version).
Add reboot/halt.
2000-10-30 23:16:13 +00:00
pk
3588feb339
Add /cdrom which is used by dot.profile as a mount point.
2000-10-30 23:14:23 +00:00
pk
f016c4b2f5
Support the two-stage memory-disk based bootstrap method for tape, cdrom
...
and floppy.
2000-10-30 23:13:10 +00:00
garbled
1f3a06f4fd
Find a bunch of places where we call "make" and replace it with ${MAKE}
2000-10-26 04:53:56 +00:00
pk
1a2839587c
Fix release: target
2000-10-22 14:18:11 +00:00
pk
f47e330c15
Check if the kernel set was extracted; if not, copy over the miniroot kernel.
2000-10-20 16:48:33 +00:00
pk
6b7e1b7c52
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.
2000-10-20 11:56:55 +00:00
pk
9cbad565fe
Note existence of sysinst.
2000-10-20 11:43:57 +00:00
pk
3dc8d00362
* Add bin/rcmd
...
* Make sysinst `obsolete' sets
* Simplify running dev/MAKEDEV
2000-10-20 11:42:43 +00:00
abs
5aa0a5abb1
Prior art in naming would suggest INSTALL_SYSINST rather than INSTALL-SYSINST.
2000-09-28 12:46:43 +00:00
abs
2d3bda117b
Use $(IMAGE) where appropriate
2000-09-04 17:04:24 +00:00
abs
f4355d4669
Sync (to some extent) with bootfs/Makefile
2000-09-04 17:00:16 +00:00
abs
8b08f6e605
Now the miniroot based 'netbsd.ram.gz' is being installed into the installation
...
release dir we need to rename our 'netbsd.ram.gz' to 'netbsd.syram.gz'.
Man{ag,gl}ing two installation systems for NetBSD/sparc just gets more fun.
2000-09-04 16:54:39 +00:00
abs
b1b976ee25
Handle 'make release'
2000-09-04 16:36:59 +00:00
jhawk
a022cf9d37
Use
...
${MAKE}
instead of
make
2000-08-30 23:51:46 +00:00
pk
a17689f528
Install the default boot program again (hopefully this will last a while..)
2000-08-28 19:14:25 +00:00
abs
dfee9fe080
Removedaccidental CCOPTS+=-Os
2000-08-24 13:38:33 +00:00
abs
863e9c9128
Bring up to date and save some more space (as ever).
2000-08-22 14:11:45 +00:00
abs
911ac86efa
Switch to boot.400000, as the default sparc boot breaks if the in kernel
...
ramdisk is greater than 2950 (for the current INSTALL kernel).
2000-08-22 14:11:07 +00:00
abs
5838140e1a
Add COPYSTRIPCOMMENTS, which passes files through sed to strip comments and
...
some whitespace, which halves the size of at least /etc/services...
2000-08-22 14:08:47 +00:00
pk
79e78efd1c
/kern can go since dmesg now uses sysctl() to get the kernel's msgbuf.
2000-07-08 11:32:05 +00:00
sommerfeld
76827b3e8f
Install netbsd.ram.gz into release area so it can be used to start a netinstall
...
on systems which can use boot_big.net
2000-07-03 02:17:56 +00:00
matt
d877c43bc4
quiet this when boot.fs doesn't exist
2000-06-17 03:10:23 +00:00
cgd
c85d2eb42b
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.
2000-06-14 22:52:37 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
thorpej
2304ada2b0
Need /etc/netconfig.
2000-06-07 20:43:11 +00:00
matt
5d41eae943
Need <bsd.own.mk> to get BSDSRCDIR
2000-05-31 20:28:27 +00:00
sjg
df3dbd39a6
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.
2000-05-06 14:18:53 +00:00
sjg
45fb67b360
remove/change missleading comments
2000-05-03 00:10:33 +00:00
sjg
1f724b9392
use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
2000-05-02 16:06:45 +00:00
sjg
591dd83065
use KERNOBJDIR if set
2000-05-02 13:59:20 +00:00
sjg
1350b8fdf4
use KERNOBJDIR from bsd.kernobj.mk
2000-05-02 13:57:27 +00:00