Commit Graph

353 Commits

Author SHA1 Message Date
lukem
9e5598221a replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version 2002-04-26 15:50:21 +00:00
lukem
e59919804c we don't want "rescue-tiny.fs.fs" ... 2002-04-16 09:08:01 +00:00
lukem
ad423f169c Migrate MI-shareable stuff to distrib/common/Makefile.tarfloppy. 2002-04-16 09:06:49 +00:00
lukem
33e7bb62d6 - Convert to using distrib/common/buildfloppies.sh, which can build both
single and multi-volume floppies in better fashion that the crufty
  shell commands in the various Makefiles.
- Move fdset* -> bootfloppy*, as that's more consistent
2002-04-16 05:23:33 +00:00
lukem
353c097f28 Use 3rd argument of MDSETTARGETS to change name of the rescue kernels
from netbsd.INSTALL_{SMALL,TINY} to netbsd.RESCUE_{SMALL,TINY}.
Go back to installing copies of these in the release directory.
2002-04-13 00:07:46 +00:00
tv
5e4efd6a99 Actually, this reuses the same kernel names, so we can't simply install
to the RELEASEDIR here.  Use an empty "release" rule instead.
2002-04-12 23:54:28 +00:00
tv
67194ea5d2 Define MDSETDIR so "make release" DTRT. 2002-04-12 23:47:09 +00:00
lukem
0dfdd76021 Makefile.mdset:
replace
		TARGETS = KERNEL IMAGE [...]
	with
		MDTARGETS = KERNEL IMAGE FILENAME [...]
	If FILENAME is "-", use "netbsd.${KERNEL}" as the target filename

The rest:
	Update for new MDTARGETS syntax.  In some cases, the kernel
	name from the "old" method will be used to override the default.
2002-04-12 13:39:43 +00:00
lukem
627174f862 - don't pull in <bsd.prog.mk> in Makefile.mdset; do that in the caller instead
- renamed optional post-strip action variable from ${KERNEL}.post to
  netbsd.${KERNEL}.post
2002-04-12 05:33:58 +00:00
lukem
cfb4cb0f97 remove unused cruft;
- Chuck Silvers pointed out that the nocluster goop set a now-unused variable
- we now use distrib/common/Makefile.mdset
2002-04-11 15:36:49 +00:00
lukem
fe5992eead convert to using distrib/common/Makefile.mdset 2002-04-11 15:34:52 +00:00
lukem
d51dc48537 tweak 2002-04-11 12:59:47 +00:00
lukem
ad40a21aec add dependencies for release 2002-04-11 12:59:19 +00:00
lukem
091e142cec use ${RELINSTALL} instead of cp -p 2002-04-11 12:22:58 +00:00
lukem
e74b6d4e20 Yet Another Cleanup:
- factor more stuff into common/Makefile.*
- use NDWO makefile layout
- don't always rebuild bootfloppy-* and fdset-* stuff. (mmm, dependencies)
- add .WAIT sync in top level Makefile
2002-04-11 12:17:14 +00:00
mycroft
6a6b4b6686 We need bsd.sys.mk to get ${STRIP} when USETOOLS is not set. 2002-04-10 21:12:15 +00:00
lukem
e5ef62ef2b - add specific special entry for sys/arch/${MACHINE}/stand/installboot
for ports that don't yet use the MI usr.sbin/installboot
- remove now-unnecessary srcdir for sys/arch/${MACHINE}/stand
2002-04-09 00:31:38 +00:00
tsutsui
ebf5fffe65 Set DBG=-Os for libhack. 2002-04-06 18:16:09 +00:00
groo
7a1f1869d1 Reduce free inode count by one so ramdisk-big builds. 2002-04-03 03:12:28 +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
1d10faf92a cosmetic reorg 2002-03-28 02:57:29 +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
deffb66504 parselist.awk
- improve comments
- provide a general purpose variable replacement; replace contents of ${FOO}
  with ENVIRON["FOO"].
- deprecate @MACHINE@ and @MACHINE_ARCH@ in favour of using ${MACHINE}
  and ${MACHINE_ARCH} instead
- add errx() function; like err(), but doesn't print the line number
- invoke this script with various variables defined via PARSELISTENV

*/Makefile*
- use PARSELISTENV instead of POPULATEENV, and add variables like DESTDIR
- other minor tweaks

*/list*
- replace @MACHINE@ with ${MACHINE}
2002-03-14 22:26:08 +00:00
lukem
3566e993db use parselist.awk's newly added MTREE arg rather than having an
mtree.conf fragment for one file
2002-03-07 01:41:48 +00:00
lukem
b627dc63c4 cosmetic tweak 2002-03-06 13:11:34 +00:00
lukem
23a0a8fb2e replace ${_SRC_TOP_}/distrib with ${DISTRIBDIR} 2002-03-06 04:29:35 +00:00
thorpej
bdf6ab32ff Use ${PRINTOBJDIR}. 2002-03-05 20:29:33 +00:00
lukem
3f4dba701e cosmetic sort 2002-03-04 04:49:26 +00:00
lukem
1ee852b54c pull in bsd.own.mk first, incase RELEASEDIR is defined there 2002-02-27 13:42:35 +00:00
lukem
9918e3a90e use CLEANFILES as appropriate 2002-02-26 22:54:05 +00:00
lukem
0242a73525 cosmetic cleanup 2002-02-26 22:52:52 +00:00
lukem
e1ab92e728 minor whitespace cleanup 2002-02-26 22:52:10 +00:00
lukem
e77cbad9fa add check_RELEASEDIR to targets that require RELEASEDIR to be set 2002-02-26 13:27:50 +00:00
lukem
b719f1f08d explain why gethost.o is disabled 2002-02-25 23:00:59 +00:00
lukem
7533a60e6a - migrate a bunch of the common list stuff to common/list.ramdisk
- use ${DISTRIBDIR} as appropriate
- use ${DISTRIBDIR}/common/list.sysinst if USE_SYSINST is defined,
  removing any replicated list info
- define USE_SYSINST in the sysinst-using ramdisks
- replace MAKEDEV_DEVS with MAKEDEVTARGETS
2002-02-08 05:02:16 +00:00
lukem
44f0b844b5 since we have ${TOP}, use it... 2002-02-08 04:53:50 +00:00
lukem
5e74123ea2 - set ${TOP} to ${.CURDIR}/.., and use as appropriate
- use ${DISTRIBDIR} as appropriate
- migrate most of mtree.conf to ${DISTRIBDIR}/common/mtree.common,
  leaving /.profile in mtree.conf
- remove MAKEDEV_DEVS support; replaced with MAKEDEVTARGETS support in
  ${DISTRIBDIR}/common/Makefile.makedev
2002-02-08 04:52:42 +00:00
lukem
64f10843ad set TOP to ${.CURDIR}/.., and use that 2002-02-08 04:40:51 +00:00
lukem
db1902fd02 since we have ${TOP}, use it... 2002-02-08 04:37:25 +00:00
lukem
727ce6ba40 don't need REV and VER here anymore 2002-02-08 04:33:03 +00:00
lukem
339d59ee8a Changes to the tiny images so that an mfs /dev isn't required (there might
not be enough RAM to support that), at the expense of more inodes and a
slightly larger md file system (which, when compressed down, still fits in
a kernel and that kernel still fits on a 1.2MB floppy):
- Define MAKEDEV_DEVS to 'std md0 fd0 fd1 wd0 wd1 wd2 wd3 cd0 cd1 pty0 ttyv0'.
- Call makefs with -f 10, to add a few spare inodes.
- Crank imagesize from 1344k to 1440k to handle extra space needed by the
  inodes containing the devices.
2002-02-06 16:15:56 +00:00
lukem
f551aa0ea4 If MAKEDEV_DEVS is defined, run etc.i386/MAKEDEV through MAKEDEV.wrapper and
makedev2spec.awk to generate another mtree specfile for use when building
the image, and don't copy dev/MAKEDEV to the target image.  This is primarily
for the tiny images which might not have enough memory for an mfs /dev.
Otherwise (MAKEDEV_DEVS not defined), continue to copy dev/MAKEDEV.
2002-02-06 16:12:18 +00:00
lukem
876b3e8195 no need to list etc/passwd anymore 2002-02-06 16:09:14 +00:00
lukem
848861bf4f add some more IMAGEDEPENDS 2002-02-05 11:15:04 +00:00
lukem
de1da0afc1 remove XXX comments left in by mistake 2002-02-03 16:58:46 +00:00
lukem
c8099b4072 Major overhaul, to enable unprivileged (cross) building, removing the
requirement to build as root on a system with vnconfig.


Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate

Remove now-obsolete:
	list2sh.awk runlist.sh bootfloppy-common/list

Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more

Rename  bootfloppy-common/Makefile.inc  to  common/Makefile.bootfloppy
and	fdset-common/Makefile.inc       to  common/Makefile.fdset
This uses makefs instead of vnconfig and disklabel, thus removing the
need for root privileges to build these floppies..

Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile.
Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and
${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things.

Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which
detects whether it's an install or rescue profile based on the existance
of /sysinst.  Remove /dev generation code as init(8) now does that for us.

Migrate common parts of */list to a shared common/list.ramdisk.
Convert ramdisk-*/list to new format used by distrib/common/parselist.awk
Don't bother running pwd_mkdb now that libhack's getpwent parses
/etc/master.passwd instead of /etc/passwd.

Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a
new full-path-style specfile.

Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated
from ramdisk-*/list by parselist.awk.

Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini.

Remove unused ramdisk-{small,tiny}/disktab.preinstall.

Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated
targets.

ramdisk-*/Makefile: convert to using common/Makefile.ramdisk

Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 16:22:19 +00:00
lukem
b5c22acdbc revert revs 1.10 (and 1.11); now back to using the ustarfs build framework
from ../bootfloppy-common/Makefile.inc like the other boot floppies.
it wasn't ustarfs that was broken, it was the broken PAD=yes code in the
latter trashing the last 8k of the kernel...
2002-02-03 14:58:24 +00:00
lukem
ce248e3fc1 - fix PAD=yes code so that it won't potentially trash some of the last
8k of the kernel.
- minor cleanup of an error message
2002-02-03 14:56:00 +00:00
lukem
9a9a577188 - remove unused variables, and variables that don't need to be set here
- use ${NM} instead of nm
- define KERNELSYMS from KERNELS
- remove netbsd.tmp in clean
2002-01-27 15:31:57 +00:00
lukem
19e7af73bc whitespace cleanup 2002-01-26 02:34:30 +00:00
tv
1399f528bf Don't gzip these .fs's either; only boot-big.fs gets gzipped in the end. 2002-01-08 04:00:01 +00:00
jmc
0a04168b5e Change to use utils/x_ed 2001-12-02 01:44:08 +00:00
jmc
ce9f4d2c00 Fix VND device for unconfig 2001-12-02 01:43:38 +00:00
jmc
de9d0f2c64 Tweak newfs params and fix VND device for unconfig 2001-12-02 01:43:12 +00:00
jmc
132a19d90a Add bsd.prog.mk so libhack components build. (gets proper CPPFLAGS pulled in
for builds).
2001-11-19 05:31:00 +00:00
jmc
9cc2cb211f Turn back on all floppies. They all build once again with both new and old
toolchains
2001-11-08 07:41:03 +00:00
jmc
c79e9118a0 Nuke chio and chroot to make some room. Also twiddle with inode size on newfs.
Makes everything build once again.
2001-11-08 07:40:01 +00:00
jmc
fbc66d002f Bump inode size up to get some space. Very few inodes actually get used here 2001-11-08 07:37:39 +00:00
tron
ae4a0efaaa Fix oversight in last commit. 2001-11-08 07:30:00 +00:00
christos
6e43164c91 1. delete all instances of /dev/{r,}vnd0d. Use vnconfig vnd0 and disklabel
vnd0 and let opendisk(3) DTRT.
2. resize some of the images since we've gotten an average of 5K more
   with the new toolchain.
3. comment out the rescue disks, since they don't fit anymore.

Now the whole directory compiles and works with the in-tree toolchain,
but does not work still with USETOOLS.
2001-11-08 02:10:25 +00:00
christos
9dda7754d1 Use the raw device for vnconfig. 2001-11-07 03:54:13 +00:00
christos
18e3ce40a8 Use the raw device for vnconfig and disklabel. 2001-11-07 02:50:22 +00:00
jmc
b13224ff44 This file doesn't belong...No need for it and direct obj dirs can/will pick it up and do the wrong thing 2001-10-30 04:58:08 +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
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
jmc
1f7d4add83 Change DBG= to DBG?= so it's controllable from the top level makefile easier. 2001-10-05 01:19:42 +00:00
jmc
545ea87341 Tweak newfs so this has space again. Really need barely any inodes on the floppy 2001-10-04 04:57:20 +00:00
jmc
7ae0c501ca Add DBG=-Os to all so libhack.o gets built without using -O2 on it.
Also adjust the clean rule to first run the clean rule from ramdiskbin.mk
if it exists (cleans up the object subdirs then from the new crunchgen setup)
2001-10-04 04:14:06 +00:00
jmc
ecf83970eb Add an unconfig target for the fdset's 2001-10-04 04:11:26 +00:00
tls
aeb590fb1f GCC 2.95 generates significantly larger code with -O2 than our old compiler did; thus we overflow the floppies. I thought we used to explicitly set -Os in here; anyway, with this change, we do now! 2001-09-23 23:40:29 +00:00
tv
124e80aa4c Get new dhclient-script from usr.sbin/dhcp/clientscript/. 2001-08-18 16:03:48 +00:00
matt
06c22beb4b Copy dhcp file from dist (since it has now moved there.) 2001-08-16 14:27:19 +00:00
jdolecek
87b865f2a9 It takes quite a while for the /dev to be setup on my PS/2 test machine.
Since impatient users might think the machine locked up, print a message
'Creating real /dev (this may take a while) ...' so that they know what's
happening.
2001-07-30 22:43:36 +00:00
jdolecek
8fca9dfe2d make BLOCK8K match DISKSIZE 2001-07-30 21:38:22 +00:00
jdolecek
6780bcba0b Add PS/2 bootfloppy, to be used for installation on IBM PS/2 machines. 2001-07-21 14:46:08 +00:00
tv
b21858f304 Don't create gzipped versions of the install floppies. The floppy images are
not padded to disk-size boundaries (except for boot-big, for somewhat
unnecessary reasons), and the included kernel is already gzipped.  Adding
another round of gzip saves only tens of K, but creates a duplicate image,
wasting space on release media including these files.
2001-07-02 14:10:09 +00:00
veego
bc41e8429e Remove tmplabel during a make clean. 2001-06-24 12:15:58 +00:00
veego
f208f983fe Remove also the kernel symbols files during a make clean and co. 2001-06-24 12:09:04 +00:00
chs
dcb3005097 Use x_mount and x_umount. 2001-06-12 03:26:08 +00:00
christos
c027433aad dhclient-script moved to sbin
XXX: other ports should be broken because of that
2001-05-26 16:01:32 +00:00
christos
ad5c2aaf93 make this work again (don't specify explicitly object files in x_dhclient) 2001-05-26 16:01:03 +00:00
christos
6e87bd852f fix the rest of the ! lossage. 2001-05-26 00:10:06 +00:00
christos
af5257fca4 Don't run crunchgen 3 times, extra crunchiness is only good in chocolate. 2001-05-25 17:12:41 +00:00
fvdl
0dc0aa727e Use x_mount and x_umount. 2001-04-29 15:20:55 +00:00
fvdl
6bb58cf2c0 Use x_mount and x_umount. Remove mount_ext2fs, since there's no ext2fs
support in INSTALL_TINY.
2001-04-29 15:20:33 +00:00
fvdl
a95d02b2a4 Remove more(1) from the 'small'image, it is not used in a sysinst install. 2001-04-29 00:24:39 +00:00
atatat
671d048ebd Adjust the dhclient objs to deal with the new dhcp source that was
imported.
2001-04-08 04:23:43 +00:00
jmc
af957ccb50 Make sure crunchgen remakes the makefile everytime and it doesn't use it's
cache since other Makefiles could change source files too easily.
2001-02-25 03:54:24 +00:00
jmc
5b7e142d78 Only put std devices onto the image's /dev.
Then once booted mount mfs onto /dev and make a full device tree. This gets
around the silliness of running out of either space/inodes all the time when
building the floppy images. Tested this on all combinations of floppies.
2001-01-24 18:18:57 +00:00
jmc
0c549828e0 Change inode allocation to 5000 since we don't need nearly as many inodes now and do need the space they take up. 2001-01-24 18:18:56 +00:00
jmc
bcdff193d6 Only put std devices onto the image's /dev.
Then once booted mount mfs onto /dev and make a full device tree. This gets
around the silliness of running out of either space/inodes all the time when
building the floppy images. Tested this on all combinations of floppies.
2001-01-24 18:18:56 +00:00
jmc
26563cce4d Trim down /dev entries to only things that are configured in INSTALL_TINY
kernels (which doesn't include sd, ld, etc). Tested on a 4M constrained
machine.
2001-01-24 18:16:43 +00:00
jmc
6e076acf2e Add var/spool/lock so tip works 2000-12-24 23:50:48 +00:00
jmc
55d6fd3a35 Force crunchgen to remake the makefile each time. This way dependency checking can occur 2000-12-17 09:57:48 +00:00
jmc
00bf71bd90 Replace less (1) with more(1) so the smaller images build. 2000-12-14 22:28:31 +00:00
jmc
2218a87a45 Re-enable all floppies. All of them now build. 2000-12-14 22:27:29 +00:00
jmc
48af220041 First pass at standard floppy set that uses serial boot blocks. Still need to finish sysinst patches to install/ask for these at install time. 2000-12-14 22:26:06 +00:00
jmc
987b4b68dd Add serial bootblocks onto the image so these are available for sysinst. 2000-12-14 16:04:51 +00:00