Commit Graph

152 Commits

Author SHA1 Message Date
lukem ed56ec3a05 Rework how SMALLPROG was being used and how INET6 support was enabled.
There's two variables added to Makefile.crunch:

    SMALLPROG		If 1, add SMALLPROG=1 to CRUNCHENV.  [default: 1]
			This can be used by various Makefiles to
			determine if a `small' version of the program
			is required.

    SMALLPROG_INET6	If 1 and SMALLPROG == 1, add SMALLPROG_INET6=1
			to CRUNCHENV.  [default: 0]
			This can be used by various Makefiles to
			determine if the `small' version has INET6
			support enabled.

Only enable SMALLPROG_INET6 for programs on the ramdisks that have INET6 in
the appropriate kernel, and cleanup INET6 setting.
(Note: this means that sysinst won't get INET6 support if the kernel
it's running on doesn't have it).

This change saves a fair bit of space on various install images
(including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in
the kernel but were unconditionally getting INET6 support in their tools.
2002-10-17 02:05:35 +00:00
itojun 0c74b798cb make macppc install floppy IPv6 ready
(we have two floppies anyways, and there's plenty of space in 2nd floppy)
2002-06-18 02:02:20 +00:00
itojun 362b9a5b71 add tools to partition MBR-based disk 2002-06-17 15:34:37 +00:00
wiz 38dfbc3274 installboot changed location to /usr/sbin.
Reported in port-macppc/17063 by Makoto Fujiwara.
2002-05-27 10:32:37 +00:00
briggs e4b2e00519 We are switching to usr.sbin/installboot. 2002-05-21 01:57:33 +00:00
lukem a4981c20c4 convert to MI installboot. this now cross compiles. (XXX: boot.fs untested) 2002-05-15 14:03:53 +00:00
lukem 04e61f8526 - whitespace consistency cleanup
- build (mdset/nm/strip) into ${filename} as one rule, and move ${filename}.gz
  into separate rule
- rename MDSET.${filename}.nosymbols -> MDSET_NOSYMBOLS.${filename}
- rename MDSET.${filename}.post -> MDSET_POST.${filename}, and don't do
  suffix handling here
- rework suffix handling:
	- rename MDSET.${filename}.suffixes -> MDSET_SUFFIXES.${filename},
	  and change from list of suffixes to list of "suffix cmdtobuildsuffix",
  	  where cmdtobuildsuffix is the name of the variable containing the
	  command to build ${filename}.${suffix} (available as "${.TARGET}").
	- for each ${filename}.${suffix}, depend upon ${filename} and use
	  ${cmdtobuildsuffix} to create the former.
	- add separate ${filename}.${suffix}.gz rule
- mipsco & pmax: rename "install.gz" to "netbsd-INSTALL.gz", for
  consistency and so the target to build the mdset kernel doesn't get
  confused with general "install" target
2002-05-08 21:44:53 +00:00
lukem 897d27df90 - add support for [-s suffix] to buildfloppies.sh (defaults to "",
rather than the previous ".fs").
- add support for (optional) FLOPPYSUFFIX in Makefile.tarfloppy, and
  use appropriately
- remove (now unnecessary) custom release targets in alpha/instkernel/*
2002-05-04 01:34:36 +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 b9c8fc2871 convert to NDWO ustar bootfloppy creation process.
xxx; untested
2002-04-16 09:16:21 +00:00
tsutsui d2b86ac486 No need to use ${MAKEFS} for ustarfs image. 2002-04-14 03:16:13 +00:00
lukem 8f603e224b consistency cleanup 2002-04-13 13:42:57 +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 e80666c104 cleanup makefiles to NNDWO 2002-04-12 02:19:30 +00:00
lukem fe5992eead convert to using distrib/common/Makefile.mdset 2002-04-11 15:34:52 +00:00
tsutsui 3ff9225d3a Add multiple bootfd support. 2002-04-10 14:23:59 +00:00
tsutsui 501d06334d Add -mstring to DBG to save some more bytes. 2002-04-09 15:28:50 +00:00
tsutsui 9cec21bf50 Make sure to build netbsd.GENERIC_MD.gz by default. 2002-04-09 15:23:22 +00:00
tsutsui 6371ef23e9 Set srcdir for sys/arch/${MACHINE}/stand/installboot
till these ports will switch MI use.sbin/installboot.
2002-04-07 03:46:44 +00:00
tsutsui b3c812e3fd Set DBG="-Os -mmultiple" and also pass it to crunchgen via CRUNCHGEN_FLAGS. 2002-04-06 18:18:57 +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 a8e27b7391 sprinkle .WAIT 2002-03-31 06:45:08 +00:00
lukem fad8efc940 use check_RELEASEDIR 2002-03-31 06:44:12 +00:00
tsutsui dd4c2f54f1 Include distrib/Makefile.inc directly. 2002-03-31 02:15:42 +00:00
tsutsui d701cc2fc9 Remove obsolete files in NDWO. 2002-03-30 07:47:11 +00:00
tsutsui 27c4adf514 Switch to ustarfs-based boot floppy.
Mostly from distrib/i386/floppies/common/Makefile.bootfloppy.

XXX Makefile for multi-volume fdset is not yet. (see Makefile.fdset for i386)
2002-03-30 07:45:33 +00:00
tsutsui 8d4ad53154 Include distrib/Makefile.inc directly. 2002-03-30 07:36:54 +00:00
tsutsui 15691979de Switch to New Distrib World Order. 2002-03-30 07:30:37 +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 811d644d8f don't set the owner or group when installing into $RELEASEDIR 2002-02-09 13:56:48 +00:00
tsutsui bfb4c00da9 NOLIBHACKOPENDIR is gone. 2002-02-04 11:13:33 +00:00
jmc bbce64239a Convert to minimal /dev with the rest generated at bootup on an mfs mounted dir 2001-12-10 06:18:26 +00:00
jmc 440c9209e1 Remove ed. It's not needed for install and consumes way too much space to fit.
Also convert umount to using the x_ version
2001-12-10 06:17:24 +00:00
jmc 44bdb9b1a4 Use x_ed so the floppy once again fits 2001-11-20 05:45:57 +00:00
jmc f8565571ef Make sure clean rule cleans out all of the ramdisk stuff. Also include
bsd.prog.mk so libhack builds.
2001-11-20 05:45:26 +00:00
jmc 424f64c3fb Change rule to realall as dependall is defined in the .mk files 2001-11-20 05:44:47 +00:00
tv 5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
jmc 26b0861d8f Make everything fit once again.
Remove restore from the ramdisk as this is building a bootfloppy for
installing and this simply won't fit anymore. If repair images are desired
this should go the x86 route and build separate floppies for different
purposes.

Change sh to use the x_sh from distrib/utils and move some items around
in the list so they happen earlier (making the pw file).
2001-11-11 07:46:46 +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 5273cb3864 Change ${SIZE} to ${DISKSIZE} to avoid conflicts with vars used with new
toolchain builds.
2001-10-21 23:18:14 +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 8a11e4797f Include bsd.sys.mk so proper DESTDIR processing gets done for libhack.o builds. 2001-09-25 06:00:34 +00:00
tsubai 5b827e1fa6 Use all of libhack (but opendir.c) to fit 1.4M floppy. 2001-07-27 11:37:58 +00:00
tsubai 45e86094c9 Install netbsd.GENERIC_MD instead of netbsd.ram.
(Why did we use netbsd.ram?  It is only a temporary file...)
2001-04-09 20:28:22 +00:00
tsubai e199a20610 Use md-kernel/netbsd.INSTALL.gz. 2001-04-09 20:22:58 +00:00
tsubai b574138b13 Make netbsd.{INSTALL,GENERIC_MD}.gz here. 2001-04-09 20:19:55 +00:00
tsubai cc76c375a2 Use x_mount. 2001-03-25 13:08:47 +00:00
jmc 0b45809568 Change inode allocation numbers to get everything to fit. 2001-01-24 06:11:40 +00:00
tsubai ceb1024f49 Use libhack again. 2000-11-27 15:11:36 +00:00
tsubai 6d7e27b148 Remove slattach, since the INSTALL kernel no longer supprot slip. 2000-11-27 15:08:42 +00:00
garbled 83f61a5891 Change all ocurrences of "crunchgen" to ${CRUNCHGEN} 2000-11-01 07:57:55 +00:00
matt 9b40acae9e Add dependall target
Use the c device for installboot so it will not conflict with the mount a
parition.
2000-09-13 15:53:29 +00:00
matt 71a96f0b47 Need ${.CURDIR} for print-objdir 2000-09-13 15:49:27 +00:00
jhawk a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
tsubai ad07de7aae Use cp to install the kernel.
Use print-objdir target to determine ramdisk directory.
...etc.
2000-07-24 09:27:40 +00:00
tsubai 274dca4f93 Use KERNSRCDIR instead of BSDSRCDIR/sys. 2000-07-24 09:16:27 +00:00
tsubai 4c37b0db76 Remove kernfs, add dmesg link.
Compile with -Os -mmultiple.
2000-07-24 09:15:21 +00:00
matt e13db8434d Export boot.fs 2000-06-23 17:59:03 +00:00
matt e8065169a7 lie about the geometry and get an extra 16 blocks back. 2000-06-22 17:32:22 +00:00
matt 182fce9675 Switch to x_ftp 2000-06-22 17:07:40 +00:00
matt 43c75b3d03 Add dmesg to prog. 2000-06-22 16:00:45 +00:00
matt 6f65b2f744 Nuke mount_kernfs and add the new small dmesg. 2000-06-20 04:30:16 +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
matt 0e1c354b40 Install XCOFF ofwboot into installation area. 2000-06-12 23:02:45 +00:00
matt 238972e741 Add make release support so automake snapshots 2000-06-08 17:39:44 +00:00
matt a83202e259 Add netconfig 2000-06-07 20:08:12 +00:00
matt 3d4cc8a161 Needed so that obj directories are created properly. 2000-06-06 21:00:31 +00:00
matt d5ae57122b need bsd.own.mk 2000-06-01 06:56:55 +00:00
matt b0eda434e1 need bsd.own.mk for BSD*DIR 2000-06-01 06:56:12 +00:00
sjg 1f724b9392 use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels. 2000-05-02 16:06:45 +00:00
tsubai 0a3c98dd5d Delete unnecessary entries. 2000-02-08 12:17:43 +00:00
tsubai 9b4a65a211 Strip kernel to fit floppy. 2000-02-08 12:04:27 +00:00
itojun b20e217bb8 use x_ping for ping, remove reference to -lipsec.
(sorry if you have specific need for "real" ping)
2000-02-03 19:25:16 +00:00
tsutsui 1bf52b391d rename (revert) memory disk filename /dev/mdX -> /dev/mdXa 2000-01-21 12:32:54 +00:00
tsutsui e6824489b4 Fix root device name md0a -> md0 2000-01-10 05:03:24 +00:00
simonb 2e3036aadb Remove update from the miniroot lists. 1999-11-23 23:16:02 +00:00
simonb 71efc75854 Don't start update. 1999-11-23 22:43:20 +00:00
simonb 1b411c7a86 Remove update from all ramdisks. 1999-11-23 22:14:22 +00:00
mycroft 45596efc9f Make the ram disk larger, so it fits. 1999-11-08 23:51:29 +00:00
wrstuden 61e13953b2 Use -f ${DESTDIR}/etc/disktab to find the disktab, so that we can build
-current floppies from 1.4.
1999-10-14 17:46:26 +00:00
tsubai 14b3666e9a Change md size to 2MB.
Don't use libhack temporarily.
1999-08-29 08:45:27 +00:00
tsubai 2f247ac8dd Make ramdiskbin smaller to fit into ramdisk. 1999-07-08 16:36:15 +00:00
cgd 7aa73e55cb 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.
1999-06-26 06:12:49 +00:00
bouyer 90d35fd201 Generate the /dist/obsolete_* files used by sysinst from the obsolete lists
in sets/lists/*. The sript sets/makeobsolete concatenates the mi and md
obsolete list files all or a specified set and dumps it in a file, in a
subdir specified on the command line (inspired from the maketar and makeflist
files).
Use this for all the sysinst-based installs.
Untested for non-i386, and the md obsolete list may be wrong or incomplete.
Each postmaster is supposed to check this on his port.
1999-06-05 20:17:38 +00:00
tron 2f3417d997 Fix listfiles to handle object directories. Patches supplied by
Izumi Tsutsui in PR misc/7628.
1999-05-23 07:31:19 +00:00
veego dfa799a037 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.
1999-05-11 20:46:58 +00:00
itohy 29b70cd215 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.
1999-03-13 09:03:28 +00:00
wrstuden ad140b77ea 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.
1999-03-04 20:32:18 +00:00
tsubai 3849ede50b * Add disktab.preinstall.
* Mount kernfs and mfs.
* Add mount_mfs link.
* Remove strings link.
1999-01-27 13:18:30 +00:00
tsubai 65d8322a2f Uncomment "bootfloppy". 1999-01-27 12:04:32 +00:00
tsubai c9db02d31e Invoke sysinst.
TERM=vt100.
1999-01-20 14:02:53 +00:00
tsubai 2e6f16f3b8 Change image size to 1.5MB. 1999-01-13 10:54:16 +00:00
tsubai 20f9f55a10 * Remove strings.
* Enable sysinst.
1999-01-13 10:52:53 +00:00
mrg f39074b570 use x_gzip over gzip_s 1999-01-11 13:01:34 +00:00
lukem 06b0ffe181 distclean is a synonym for cleandir 1998-09-05 14:46:13 +00:00
tsubai 1d3fe14e52 Add .profile 1998-07-29 05:52:19 +00:00