conf - # # # # # # # # # # # # # # # # # # #...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
# # Machine-independent kernel config definitions. # # The idea is that the files, options, and facilities in the system # are declared by conf.kern and the various files it includes. Then # a kernel config (such as ASST1) is used to select options and # facilities for a particular kernel build. # # To add new files to the system, you need to edit this file (or # others like it) and rerun the config script. # # Note: when running the config script, be sure to be in the # right directory (the same one this file is in) and run it as # "./config", not just "config" - in the latter case you will # probably get the host system's kernel config utility, which # will likely make a mess and produce mysterious error messages. # # The documentation for the syntax of these files follows. # ############################################################ # # Kernel config file syntax: # # The syntax for specifying the processor architecture to use is: # # arch archname # # This must come before anything else in the kernel config. # # # The syntax for including the system definition is: # # include conf.kern # # This should come second, after the architecture. This is # because the system must be defined before you can do much # else useful. # # You can also include other files using the same syntax. # # # The syntax for turning on a kernel compile option is: # # options optname # # A previous "defoption" must have been seen first. See below # for more information. # # The act of compiling with debug info is (has to be) handled # specially, and is just "debug" without the "options". # # # The syntax for turning on a device driver is: # # device foo% # device foo% at bar% # # where the % is either a number or a star, which is treated as
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
# a wildcard. The first line enables a device foo that is not # supposed to be "attached" to anything. The second line enables # a device foo that is attached to a device bar. For more # information about what this means, see below. # # ############################################################ # # Kernel definition file syntax: # # Note: All source file names are relative to the top directory of the # kernel source, that is, src/kern. # # The syntax for adding a regular source file is: # # file sourcefile.c # # Such a file is always included automatically in every kernel. # # # The syntax for defining optional source files is: # # defoption optname # optfile optname sourcefile.c # optofffile optname sourcefile.c # # "defoption" declares the name of a kernel option. These are # then turned on by including "options optname" in a # kernel config. # # Source files added with optfile are compiled in if the option # specified is enabled. Source files added with optofffile are # compiled in if the option specified is not enabled. # # Additionally, a file "opt-optname.h" is created in the compile
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/22/2010 for the course CSE 430 taught by Professor Miller during the Spring '08 term at ASU.

Page1 / 8

conf - # # # # # # # # # # # # # # # # # # #...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online