FreeBSD src
Go to file
dcs 06e9b241d6 First tackle at trying to handle the New Deal on kernels.
Load the first of the following kernels to be found:

${kernel} if ${kernel} is an absolute path
/boot/${kernel}/${kernel}
/boot/${kernel}/${bootfile}
${kernel}/${kernel}
${kernel}/${bootfile}
${kernel}
${bootfile}

The last instance of ${kernel} and ${bootfile} will be treated as a
list of semicolon separated file names, and each will be tried in turn,
from left to right.

Also, for each filename loader(8) will try filename, filename.ko,
filename.gz, filename.ko.gz, in that order, but that's not related
to this code.

This resulted in a major reorganization of the code, and much of what
was accumulating on loader.4th was rightly transfered to support.4th.

The semantics of boot-conf and boot also changed. Both will try to load
a kernel the same as above.

After a kernel was loaded, the variable module_path may get changed. Such
change will happen if the kernel was found with a directory prefix. In
that case, the module path will be set to ${directory};${module_path}.

Next, the modules are loaded as usual.

This is intended so kernel="xyzzy" in /boot/loader.conf will load
/boot/xyzzy/kernel.ko, load system modules from /boot/xyzzy/, and
load third party modules from /boot/modules or /modules. If that doesn't
work, it's a bug.

Also, fix a breakage of "boot" which was recently introduced. Boot without
any arguments would fail. No longer. Also, boot will only unload/reload
if the first argument is a path. If no argument exists or the first
argument is a flag, boot will use whatever is already loaded. I hope this
is POLA. That behavior is markedly different from that of boot-conf, which
will always unload/reload.

The semantics introduced here are experimental. Even if the code works,
we might decide this is not the prefered behavior. If you feel so, send
your feedback. (Yeah, this belongs in a HEADS UP or something, but I've
been working for the past 16 hours on this stuff, so gimme a break.)
2000-09-09 04:52:34 +00:00
bin Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
contrib Revert my last change. libutil.h is still required for setusercontext() 2000-09-06 17:59:37 +00:00
crypto ttyname was not being passed into do_login(), so we were erroneously picking 2000-09-04 08:43:05 +00:00
etc Make sure to accept RA. Some laptops run /etc/pccard_ether before 2000-09-07 03:06:06 +00:00
games BDECFLAGS (with a whitespace change or two) 2000-08-29 03:25:49 +00:00
gnu Fixes and cleanups to the perl build; don't error out when NOCLEAN is 2000-08-20 10:03:26 +00:00
include I have not tested this to completion yet, but this appears to fix world. 2000-09-07 00:10:02 +00:00
kerberos5 Fix ordering for real this time. 2000-08-30 03:44:30 +00:00
kerberosIV
lib Prevent buffer overflow if NLSPATH is too long 2000-09-08 11:42:37 +00:00
libexec strerror is declared in <string.h> 2000-09-04 05:48:09 +00:00
release Note 3C556/3C556B support in the xl(4) driver and subsequent 2000-09-08 22:13:53 +00:00
sbin Fix comment to match previous commit, as per bde. 2000-09-07 07:03:11 +00:00
secure ``Anyone is now free to rub two primes together for their own gratification'' 2000-09-06 23:46:50 +00:00
share Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
sys First tackle at trying to handle the New Deal on kernels. 2000-09-09 04:52:34 +00:00
tools Make this work with current makefiles again. 2000-08-21 14:42:48 +00:00
usr.bin Activate hesinfo. 2000-09-08 23:35:49 +00:00
usr.sbin o When pre-allocating attribute storage space, also allocate space for 2000-09-07 20:32:31 +00:00
COPYRIGHT
Makefile Mention the buildkernel/installkernel targets in the documentation. 2000-07-31 09:26:59 +00:00
Makefile.inc1 USA_RESIDENT is no longer required for buildworld, do not force it. 2000-09-09 04:42:34 +00:00
Makefile.upgrade
README Slightly improve the description of "crypto". "DES" is a subset of 2000-08-31 17:59:01 +00:00
UPDATING Add a mild warning for people to expect problems in -current after the 2000-09-08 06:41:47 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html