Commit Graph

113 Commits

Author SHA1 Message Date
joe
e25128632b Fold the buildopts into the existing crunch.inc file.
Deprecate the "global" crunch.inc file and the CRUNCHFLAGS global build
options.  Tools not policy.  Move these global settings out into each
picobsd distribution.
2000-11-03 01:33:03 +00:00
joe
2e956aba36 Build picobsd object files in /usr/obj/picobsd/${TYPE}. 2000-11-02 13:38:10 +00:00
joe
8791fdf576 Post process the crunch1.mk file to allow make arguments to passed on
a per program basis allowing a greater control on what is built.

The buildopts file contains Makefile lines of form:

	# Anything added to OPTS is added to every build rule.
	OPTS= -DNOPAM

	# These should only be added to the build of user-ppp.
	ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID \
		-DHAVE_DES -DNORADIUS -DNOI4B -DNONETGRAPH

Really these should be added to crunch.inc, but that file is currently
optional, and if defined masks the global one.  Next step will be to move
these global settings back out into the individual builds as OPTS, and
then migrate OPTS and prog_OPTS back into the local crunch.inc file.
2000-11-02 13:16:43 +00:00
joe
04cb3e1100 Remove an unneeded declaration for OBJ. 2000-11-02 12:46:02 +00:00
joe
41d443e4ee Copy the built kernel from the right place. (Forgotten in the last
commit.)
2000-11-02 01:57:23 +00:00
joe
f017b1a42f Build the PICOBSD kernels using the 'make buildkernel' method. 2000-10-16 08:08:31 +00:00
joe
76e0aec5a2 Fix the PICOBSD kernel configs. They're now converted to use
Peter's new format, and I'd added hints files for each.

The build process uses the PICOBSD.hints file as well as the config,
and additionally builds with -DNO_MODULES.  The build process
probably needs to be converted to use the 'buildkernel' method
instead of running config itself.

The kernels now compile.  I've not been able to test the crunch
process however because it used the vn driver and there are no
/dev/vn device nodes under devfs yet.  Maybe someone else could
give it a go.
2000-10-15 20:42:22 +00:00
marcel
510255570c Backout addition of -L switch to mtree. Using -L breaks the
build process in too many cases. Adding mtree to bootstrap-tools
to solve this breaks the upgrade path because mtree needs a
libc that has strtofflags and fflagstostr.
2000-07-23 16:33:00 +00:00
ache
6eee0d45af Add -L to mtree.
Not shure ever it needed for MFS, but just to keep old behaviour exact, can be
removed later
2000-07-16 08:44:40 +00:00
roger
88ee2872aa Add .image.list to the list of temporary files which can be deleted 2000-07-01 13:51:22 +00:00
roger
d65ba30aaf Add 'bridge' so we can clean up the bridge files too 2000-07-01 04:40:01 +00:00
dwhite
de8b1605ae Commit PicoBSD mega-patch:
. Bring PicoBSD up to date with -CURRENT reality.
. Make PicoBSD smart and not spam /dev/vn0 and /mnt.  Now it uses the first
  unused vn device and creates a temporary mountpoint in /tmp.
. Miscellaneous build cleanups and optimizations.

Unfortunately the bridge, isp, and router floppies are too big and need
the axe treatment.  The install floppy needs updating to -CURRENT. Dial and
net build and (appear to) run OK.  I will be adressing these in the
near future (unless someone beats me to it :-) ).

PR:		misc/17737
Submitted by:	Omachonu Ogali <oogali@intranova.net>
2000-04-25 19:00:08 +00:00
luigi
e222c2e6c8 Add global version of mfs.mtree -- this is common to most floppy types
Approved-by: jordan
2000-02-08 11:39:28 +00:00
luigi
87daff0de5 Add a new file to be included by the makefiles used by crunchgen
(this is a convenient place to put Make variables until we add a -D
option to crunchgen).

Approved-By: jordan
2000-02-08 08:29:18 +00:00
luigi
7a9620709a The Makefile for building the crunched image is the same
for almost all images, so let's have a centralized copy.

Approved-By: jordan
2000-02-08 08:27:55 +00:00
luigi
96619dbf47 Cleanup the build scripts.
Approved-by: jordan
2000-02-08 08:25:00 +00:00
grog
6855e801ec Handle building individual targets better. It's still broken; the
only way to be sure the build works correctly is to do a 'make all'.
But with these changes, it's easier to test individual targets.  In
particular, ensure that the vnode file systems are mounted before
writing to them.

Ensure that we don't get CVS directories on our floppies.

Use kgzip instead of kzip to compress the loader.  This saves a few
kB.

Remove some test cruft.
1999-12-20 02:07:42 +00:00
jkh
9a3f1f4929 Correct slight stuff-up in previous patch. 1999-12-16 02:14:30 +00:00
jkh
c4a2fd34b9 Update to use MD disk instead of MFS 1999-12-16 02:08:52 +00:00
grog
d84305a288 Add 'custom' directory with significantly restructured build (now
using make instead of custom scripts) and two floppies instead of
one.  The resultant floppy can do everything that the individual
floppies (dial, net, install, isp, router) could do, modulo some bit
rot that has occurred since PicoBSD last compiled.  It also includes
all the programs on the fixit floppy, which could thus also die.

/bin currently contains the following files:

-sh             dump            ln              ns              sps
[               ed              login           ping            stty
badsect         ex              ls              ps              swapon
cat             expr            mkdir           pwd             sync
chgrp           fdisk           mknod           pwd_mkdb        sysctl
chmod           find            more            rdump		syslogd
chown           fsck            mount           reboot          tar
chroot          ftp             mount_cd9660    restore         telnet
clri            getty           mount_msdos     rlogin		telnetd
cp              grep            mount_nfs       rm              test
date            gunzip          mount_std       rmdir		traceroute
dd              gzip            msg             route           umount
dev_mkdb        hostname        mt              routed          vi
df              ifconfig        mv              rrestore        view
dhclient        inetd           natd            rsh             vm
dhclient-script init            netstat         sed             w
disklabel       kget            newfs           sh              zcat
dmesg           kill            nfs             sleep

Structure is in place for using the same build for the other
directories, but I'm no longer sure we need this.  The current first
floppy will run fine by itself, but the size of a compressed kernel
has increased by nearly 50% since 3.2, and there's not much space for
anything useful on the remainder of the floppy.  The current method
creates a larger mfs and can read as many floppies as the user can
stand.  The footprint appears to be round 14 MB.

Work-sponsored-by:    Sitara Networks Inc.
1999-12-10 21:43:10 +00:00
pb
fec446a949 A (harmless) forgotten MFS_ROOT -> MD_ROOT. 1999-11-30 21:41:11 +00:00
dwhite
6ee2209df1 Change MFS sizes to 2400k since gzip will compact free space anyway.
Add 'install' to the internal floppy type list.
1999-10-20 04:48:35 +00:00
dwhite
12aedb126c Reverse the sense of the /mnt/boot/defaults dir check. This was causing
the bootloader to not load the loader.conf and thus the MFS image.  The result
was 'panic: no init'.
1999-10-17 22:42:57 +00:00
dwhite
ad345ff4e4 Fix handling of the 'custom' directory symlink.
Properly abstract the PicoBSD build directory instead of depending too much
on pwd's and relative paths.

Submitted by:	 John Baldwin <jobaldwi@vt.edu>
1999-10-11 20:52:50 +00:00
dwhite
aafa907b0c Be explicit about kzip location to avoid accidentally calling KDE kzip. 1999-10-11 05:13:52 +00:00
dwhite
7bbfacece4 Add a new floppy type, install. This type builds a disk that can
slice, partition, newfs, and install FreeBSD from a tarball on a remote server.
Handy for doing mass-installs for server farms.

Documentation following shortly.
1999-10-08 04:00:21 +00:00
dwhite
84de4ae03c Remove tee from stage1 call. You can't capture the return code from stage1
(easily) so it gives false 'success' indications.
1999-08-29 19:16:29 +00:00
dwhite
c0fcda6e0b MFS: Dialog-ify 'reuse custom directory' question. 1999-08-29 19:11:11 +00:00
roger
4551595b84 Backout my last commit. Exit status is $? 1999-08-28 08:04:15 +00:00
peter
efabb9ccb1 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
roger
74c7494ba1 'build' calls 'stage1'
The check for the exit status of the 'stage1' script was broken.
Change "X$?" != "X0" to "X?" != "X0"
1999-08-27 07:41:25 +00:00
dwhite
e0240141ee Add missing quote. 1999-08-25 01:12:55 +00:00
luigi
56742da8c9 Additional cleanup of the picobsd scripts.
Also bump Version to 0.445
1999-08-23 08:33:08 +00:00
dwhite
9cda01decb Major PicoBSD update by luigi with some debugging help from myself.
. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by:	luigi
1999-08-22 21:45:24 +00:00
roger
8aaed59fdd Update to PicoBSD 0.44 from RELENG_3 1999-06-14 15:45:56 +00:00
abial
52c6e124b0 Take boot1/boot2 from their new place, i.e. /boot/, not from
(currently nonexistent) /usr/mdec/.

Submitted by:	luigi
1999-03-09 21:15:08 +00:00
abial
e504062bce Copy the 'reboot' script only for "dial" floppy. 1999-02-15 00:27:00 +00:00
abial
35ae892d35 Merge from RELENG_3. 1999-02-12 20:36:13 +00:00
abial
151e711453 Next round of fixes before 3.1-RELEASE. 1999-01-19 23:02:05 +00:00
abial
6fb0dad2ed Make transition to ELF kernel. Fix the userconfig_script handling. 1999-01-14 23:14:46 +00:00
abial
6d1cb55661 Allow to use other floppy sizes for "router" floppy. 1998-10-25 15:15:55 +00:00
abial
e8799dedf6 Various fixups and corrections to match the 3.0-RELEASE tree.
The PicoBSD version is now 0.42.
1998-10-15 21:40:07 +00:00
abial
19b039f9a4 Better handling of "custom" setup.
Submitted by:	Randal Masutani <randal@comtest.com>
1998-09-29 11:58:54 +00:00
abial
4b94d1ed41 Small rearrangements for a bugfix release 0.41. 1998-09-26 17:27:26 +00:00
abial
70df17cc7d Correct comment in the "build" script about aout/ELF. 1998-09-23 14:54:46 +00:00
abial
1f1f8a83ca All PicoBSD userland is now ELF. This buys us extra 15-30kB on the floppy.
NOTIE: If you don't use /usr/obj (or you wiped it), remember to clean also
the source tree of stale .depend and *.o files...
1998-09-22 15:40:00 +00:00
abial
205e0d1f5a Hmm... Let's make the switch to non-DEVFS actually work. :-/ 1998-09-20 00:46:27 +00:00
abial
610fc53b70 Kill the remnants of DEVFS, since it's broken without the SLICE code...
Pity - it was _very_ handy.

This also required increasing of MFS size, so that PicoBSD consumes more
memory now...
1998-09-19 21:45:18 +00:00
abial
e878e33d01 Update ucd-snmp to version 3.5. It's slightly bigger, so also increase
the MFS size of net and isp floppies.

Add comment to crunch.conf on how to prepare the ucd-snmp port to work
with the build process.

Submitted by:	Jim Flowers <jflowers@ezo.net>
1998-09-15 11:12:25 +00:00
abial
9993c373dc Fix to properly newfs the MFS in case of custom setup. Mention this in docs.
Submitted by:	Richard Wackerbarth <rkw@Dataplex.NET>
1998-09-11 13:14:33 +00:00
abial
06f84d5212 Change the way the help files are stored, and save ca. 30kB on the
"dial" floppy.

Submitted by:	Eric P. Scott <eps@sirius.com>
1998-09-07 19:00:34 +00:00
abial
25736f2460 Set the ${suffix} only once... 1998-09-07 06:46:25 +00:00
abial
6e0b0b48ec Added special type of setup called 'custom'. It allows you to supply
your own config directory laid out exactly like the standard ones.

Suggested by:	Richard Wackerbarth <rkw@dataplex.net>
1998-09-04 19:38:57 +00:00
abial
9e91d3d6c6 Set OBJFORMAT=aout to affect the whole build - for now, it seems that too
many tools needed to build the floppies are dependent on a.out...
1998-09-04 08:08:05 +00:00
abial
3d3bcf57cf Minor fixes to 'clean' script.
Changed the 'build' script to use ../${TYPE}/conf/Makefile in order to
have true dependency of kernel image on the kernel config file.
1998-09-03 10:40:27 +00:00
abial
a5cf33f88f Set OBJFORMAT=aout, until crunchide learns about ELF format... 1998-09-03 10:16:03 +00:00
abial
d4d86f1afd Remove CVS directories from the target floppy.
Submitted by:	Eric P. Scott <eps@sirius.com>
1998-08-31 13:35:06 +00:00
abial
eb89ee0b59 This commit was generated by cvs2svn to compensate for changes in r38589,
which included commits to RCS files with non-trunk default branches.
1998-08-27 17:38:45 +00:00
abial
d38ad53320 Initial import of PicoBSD v0.4 tree. 1998-08-27 17:38:45 +00:00
phk
5026643ad5 Add a "I know it points to my foot!" -f option.
PR:		3288
Reviewed by:	phk
Submitted by:	Martin Kammerhofer <dada@freepass.tu-graz.ac.at>
1997-09-18 18:27:34 +00:00
peter
83b3c2c161 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
phk
9389f84a98 This is a helper program to patch a filesystem into a "MFS_ROOT" kernel. 1995-04-25 03:45:18 +00:00