From 26da2245b9e9cba805de2971519035a42248bc3d Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 31 Mar 1996 18:01:55 +0000 Subject: [PATCH] Update the information about kernel options. Mention the ``new option scheme''. Closes PR # docs/1110. --- handbook/dialup.sgml | 6 ++++-- handbook/kernelconfig.sgml | 19 ++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/handbook/dialup.sgml b/handbook/dialup.sgml index 06980f2f44..7c54b179fe 100644 --- a/handbook/dialup.sgml +++ b/handbook/dialup.sgml @@ -1,6 +1,6 @@ + Configuring the FreeBSD Kernel @@ -149,6 +149,23 @@ located in the same directory as GENERIC. If you are in doubt as to the purpose or necessity of a line, check first in LINT. +

The kernel is currently being moved to a better organization + of the option handling. Traditionally, each option in the + config file was simply converted into a -D switch + for the CFLAGS line of the kernel Makefile. Naturally, + this caused a creaping optionism, with nobody really knowing + which option has been referenced in what files. + +

In the new scheme, every #ifdef that is intended to + be dependant upon an option gets this option out of an + opt_foo.h declaration file created in the + compile directory by config. The list of valid options + for config lives in two files: options that don't + depend on the architecture are listed in + /sys/conf/options, architecture-dependant ones + in /sys/arch/conf/options.arch, + with arch being for example i386. + Mandatory Keywords

These keywords are required in every kernel you build.