Main index | Section 8 | 日本語 | Options |
Available options and operands:
| Print the config version number. |
| If the INCLUDE_CONFIG_FILE is present in a configuration file, kernel image will contain full configuration files included literally (preserving comments). This flag is kept for backward compatibility. |
| |
Search in path for any file included by the include directive. This option may be specified more than once. | |
| |
Use destdir as the output directory, instead of the default one. Note that config does not append SYSTEM_NAME to the directory given. | |
| |
Use srcdir as the source directory, instead of the default one. | |
| Print the MACHINE and MACHINE_ARCH values for this kernel and exit. |
| Configure a system for debugging. |
| |
Print kernel configuration file embedded into a kernel file. This option makes sense only if options INCLUDE_CONFIG_FILE entry was present in your configuration file. | |
|
Configure a system for profiling; for example,
kgmon(8)
and
gprof(1).
If two or more
|
SYSTEM_NAME | |
Specify the name of the system configuration file containing device specifications, configuration options and other system parameters for one system configuration. | |
The
config
utility should be run from the
conf
subdirectory of the system source (usually
/sys/ ARCH /conf),
where
ARCH
represents one of the architectures supported by
FreeBSD .
The
config
utility creates the directory
../compile/SYSTEM_NAME
or the one given with the
The
config
utility looks for kernel sources in the directory
../..
or the one given with the
After running config, it is necessary to run "make depend" in the directory where the new makefile was created. The config utility prints a reminder of this when it completes.
If any other error messages are produced by config, the problems in the configuration file should be corrected and config should be run again. Attempts to compile a system that had configuration errors are likely to fail.
For reasons of history, time and space, building a debug kernel is not the
default with
FreeBSD :
a debug kernel takes up to 30% longer to build and
requires about 30 MB of disk storage in the build directory, compared to about 6
MB for a non-debug kernel.
A debug kernel is about 11 MB in size, compared to
about 2 MB for a non-debug kernel.
This space is used both in the root file
system and at run time in memory.
Use the
There is currently little sense in installing and booting from a debug kernel, since the only tools available which use the symbols do not run on-line. There are therefore two options for installing a debug kernel:
/sys/conf/files | list of common files system is built from |
/sys/conf/Makefile. ARCH | |
generic makefile for the ARCH | |
/sys/conf/files. ARCH | |
list of ARCH specific files | |
/sys/ ARCH /compile/SYSTEM_NAME | |
default kernel build directory for system SYSTEM_NAME on ARCH. | |
The SYNOPSIS portion of each device in section 4.
4.4BSD System Manager's Manual (SMM), Building 4.3 BSD UNIX System with Config,
, ,
Before support for
strings -n 3 kernel | sed -n 's/^___//p'
CONFIG (8) | April 9, 2021 |
Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.