xref: /openbmc/linux/init/Kconfig (revision 712f47ce)
11da177e4SLinus Torvaldsmenu "Code maturity level options"
21da177e4SLinus Torvalds
31da177e4SLinus Torvaldsconfig EXPERIMENTAL
41da177e4SLinus Torvalds	bool "Prompt for development and/or incomplete code/drivers"
51da177e4SLinus Torvalds	---help---
61da177e4SLinus Torvalds	  Some of the various things that Linux supports (such as network
71da177e4SLinus Torvalds	  drivers, file systems, network protocols, etc.) can be in a state
81da177e4SLinus Torvalds	  of development where the functionality, stability, or the level of
91da177e4SLinus Torvalds	  testing is not yet high enough for general use. This is usually
101da177e4SLinus Torvalds	  known as the "alpha-test" phase among developers. If a feature is
111da177e4SLinus Torvalds	  currently in alpha-test, then the developers usually discourage
121da177e4SLinus Torvalds	  uninformed widespread use of this feature by the general public to
131da177e4SLinus Torvalds	  avoid "Why doesn't this work?" type mail messages. However, active
141da177e4SLinus Torvalds	  testing and use of these systems is welcomed. Just be aware that it
151da177e4SLinus Torvalds	  may not meet the normal level of reliability or it may fail to work
161da177e4SLinus Torvalds	  in some special cases. Detailed bug reports from people familiar
171da177e4SLinus Torvalds	  with the kernel internals are usually welcomed by the developers
181da177e4SLinus Torvalds	  (before submitting bug reports, please read the documents
191da177e4SLinus Torvalds	  <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
201da177e4SLinus Torvalds	  <file:Documentation/BUG-HUNTING>, and
211da177e4SLinus Torvalds	  <file:Documentation/oops-tracing.txt> in the kernel source).
221da177e4SLinus Torvalds
231da177e4SLinus Torvalds	  This option will also make obsoleted drivers available. These are
241da177e4SLinus Torvalds	  drivers that have been replaced by something else, and/or are
251da177e4SLinus Torvalds	  scheduled to be removed in a future kernel release.
261da177e4SLinus Torvalds
271da177e4SLinus Torvalds	  Unless you intend to help test and develop a feature or driver that
281da177e4SLinus Torvalds	  falls into this category, or you have a situation that requires
291da177e4SLinus Torvalds	  using these features, you should probably say N here, which will
301da177e4SLinus Torvalds	  cause the configurator to present you with fewer choices. If
311da177e4SLinus Torvalds	  you say Y here, you will be offered the choice of using features or
321da177e4SLinus Torvalds	  drivers that are currently considered to be in the alpha-test phase.
331da177e4SLinus Torvalds
341da177e4SLinus Torvaldsconfig CLEAN_COMPILE
351da177e4SLinus Torvalds	bool "Select only drivers expected to compile cleanly" if EXPERIMENTAL
361da177e4SLinus Torvalds	default y
371da177e4SLinus Torvalds	help
381da177e4SLinus Torvalds	  Select this option if you don't even want to see the option
391da177e4SLinus Torvalds	  to configure known-broken drivers.
401da177e4SLinus Torvalds
411da177e4SLinus Torvalds	  If unsure, say Y
421da177e4SLinus Torvalds
431da177e4SLinus Torvaldsconfig BROKEN
441da177e4SLinus Torvalds	bool
451da177e4SLinus Torvalds	depends on !CLEAN_COMPILE
461da177e4SLinus Torvalds	default y
471da177e4SLinus Torvalds
481da177e4SLinus Torvaldsconfig BROKEN_ON_SMP
491da177e4SLinus Torvalds	bool
501da177e4SLinus Torvalds	depends on BROKEN || !SMP
511da177e4SLinus Torvalds	default y
521da177e4SLinus Torvalds
531da177e4SLinus Torvaldsconfig LOCK_KERNEL
541da177e4SLinus Torvalds	bool
551da177e4SLinus Torvalds	depends on SMP || PREEMPT
561da177e4SLinus Torvalds	default y
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldsconfig INIT_ENV_ARG_LIMIT
591da177e4SLinus Torvalds	int
601da177e4SLinus Torvalds	default 32 if !USERMODE
611da177e4SLinus Torvalds	default 128 if USERMODE
621da177e4SLinus Torvalds	help
6334ad92c2SRandy Dunlap	  Maximum of each of the number of arguments and environment
6434ad92c2SRandy Dunlap	  variables passed to init from the kernel command line.
651da177e4SLinus Torvalds
661da177e4SLinus Torvaldsendmenu
671da177e4SLinus Torvalds
681da177e4SLinus Torvaldsmenu "General setup"
691da177e4SLinus Torvalds
701da177e4SLinus Torvaldsconfig LOCALVERSION
711da177e4SLinus Torvalds	string "Local version - append to kernel release"
721da177e4SLinus Torvalds	help
731da177e4SLinus Torvalds	  Append an extra string to the end of your kernel version.
741da177e4SLinus Torvalds	  This will show up when you type uname, for example.
751da177e4SLinus Torvalds	  The string you set here will be appended after the contents of
761da177e4SLinus Torvalds	  any files with a filename matching localversion* in your
771da177e4SLinus Torvalds	  object and source tree, in that order.  Your total string can
781da177e4SLinus Torvalds	  be a maximum of 64 characters.
791da177e4SLinus Torvalds
80aaebf433SRyan Andersonconfig LOCALVERSION_AUTO
81aaebf433SRyan Anderson	bool "Automatically append version information to the version string"
82aaebf433SRyan Anderson	default y
83aaebf433SRyan Anderson	help
84aaebf433SRyan Anderson	  This will try to automatically determine if the current tree is a
85aaebf433SRyan Anderson	  release tree by looking for git tags that
86aaebf433SRyan Anderson	  belong to the current top of tree revision.
87aaebf433SRyan Anderson
88aaebf433SRyan Anderson	  A string of the format -gxxxxxxxx will be added to the localversion
89aaebf433SRyan Anderson	  if a git based tree is found.  The string generated by this will be
90aaebf433SRyan Anderson	  appended after any matching localversion* files, and after the value
91aaebf433SRyan Anderson	  set in CONFIG_LOCALVERSION
92aaebf433SRyan Anderson
93aaebf433SRyan Anderson	  Note: This requires Perl, and a git repository, but not necessarily
94aaebf433SRyan Anderson	  the git or cogito tools to be installed.
95aaebf433SRyan Anderson
961da177e4SLinus Torvaldsconfig SWAP
971da177e4SLinus Torvalds	bool "Support for paging of anonymous memory (swap)"
981da177e4SLinus Torvalds	depends on MMU
991da177e4SLinus Torvalds	default y
1001da177e4SLinus Torvalds	help
1011da177e4SLinus Torvalds	  This option allows you to choose whether you want to have support
1021da177e4SLinus Torvalds	  for socalled swap devices or swap files in your kernel that are
1031da177e4SLinus Torvalds	  used to provide more virtual memory than the actual RAM present
1041da177e4SLinus Torvalds	  in your computer.  If unsure say Y.
1051da177e4SLinus Torvalds
1061da177e4SLinus Torvaldsconfig SYSVIPC
1071da177e4SLinus Torvalds	bool "System V IPC"
1081da177e4SLinus Torvalds	depends on MMU
1091da177e4SLinus Torvalds	---help---
1101da177e4SLinus Torvalds	  Inter Process Communication is a suite of library functions and
1111da177e4SLinus Torvalds	  system calls which let processes (running programs) synchronize and
1121da177e4SLinus Torvalds	  exchange information. It is generally considered to be a good thing,
1131da177e4SLinus Torvalds	  and some programs won't run unless you say Y here. In particular, if
1141da177e4SLinus Torvalds	  you want to run the DOS emulator dosemu under Linux (read the
1151da177e4SLinus Torvalds	  DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
1161da177e4SLinus Torvalds	  you'll need to say Y here.
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvalds	  You can find documentation about IPC with "info ipc" and also in
1191da177e4SLinus Torvalds	  section 6.4 of the Linux Programmer's Guide, available from
1201da177e4SLinus Torvalds	  <http://www.tldp.org/guides.html>.
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvaldsconfig POSIX_MQUEUE
1231da177e4SLinus Torvalds	bool "POSIX Message Queues"
1241da177e4SLinus Torvalds	depends on NET && EXPERIMENTAL
1251da177e4SLinus Torvalds	---help---
1261da177e4SLinus Torvalds	  POSIX variant of message queues is a part of IPC. In POSIX message
1271da177e4SLinus Torvalds	  queues every message has a priority which decides about succession
1281da177e4SLinus Torvalds	  of receiving it by a process. If you want to compile and run
1291da177e4SLinus Torvalds	  programs written e.g. for Solaris with use of its POSIX message
1301da177e4SLinus Torvalds	  queues (functions mq_*) say Y here. To use this feature you will
1311da177e4SLinus Torvalds	  also need mqueue library, available from
1321da177e4SLinus Torvalds	  <http://www.mat.uni.torun.pl/~wrona/posix_ipc/>
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvalds	  POSIX message queues are visible as a filesystem called 'mqueue'
1351da177e4SLinus Torvalds	  and can be mounted somewhere if you want to do filesystem
1361da177e4SLinus Torvalds	  operations on message queues.
1371da177e4SLinus Torvalds
1381da177e4SLinus Torvalds	  If unsure, say Y.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvaldsconfig BSD_PROCESS_ACCT
1411da177e4SLinus Torvalds	bool "BSD Process Accounting"
1421da177e4SLinus Torvalds	help
1431da177e4SLinus Torvalds	  If you say Y here, a user level program will be able to instruct the
1441da177e4SLinus Torvalds	  kernel (via a special system call) to write process accounting
1451da177e4SLinus Torvalds	  information to a file: whenever a process exits, information about
1461da177e4SLinus Torvalds	  that process will be appended to the file by the kernel.  The
1471da177e4SLinus Torvalds	  information includes things such as creation time, owning user,
1481da177e4SLinus Torvalds	  command name, memory usage, controlling terminal etc. (the complete
1491da177e4SLinus Torvalds	  list is in the struct acct in <file:include/linux/acct.h>).  It is
1501da177e4SLinus Torvalds	  up to the user level program to do useful things with this
1511da177e4SLinus Torvalds	  information.  This is generally a good idea, so say Y.
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvaldsconfig BSD_PROCESS_ACCT_V3
1541da177e4SLinus Torvalds	bool "BSD Process Accounting version 3 file format"
1551da177e4SLinus Torvalds	depends on BSD_PROCESS_ACCT
1561da177e4SLinus Torvalds	default n
1571da177e4SLinus Torvalds	help
1581da177e4SLinus Torvalds	  If you say Y here, the process accounting information is written
1591da177e4SLinus Torvalds	  in a new file format that also logs the process IDs of each
1601da177e4SLinus Torvalds	  process and it's parent. Note that this file format is incompatible
1611da177e4SLinus Torvalds	  with previous v0/v1/v2 file formats, so you will need updated tools
1621da177e4SLinus Torvalds	  for processing it. A preliminary version of these tools is available
1631da177e4SLinus Torvalds	  at <http://www.physik3.uni-rostock.de/tim/kernel/utils/acct/>.
1641da177e4SLinus Torvalds
1651da177e4SLinus Torvaldsconfig SYSCTL
1661da177e4SLinus Torvalds	bool "Sysctl support"
1671da177e4SLinus Torvalds	---help---
1681da177e4SLinus Torvalds	  The sysctl interface provides a means of dynamically changing
1691da177e4SLinus Torvalds	  certain kernel parameters and variables on the fly without requiring
1701da177e4SLinus Torvalds	  a recompile of the kernel or reboot of the system.  The primary
1711da177e4SLinus Torvalds	  interface consists of a system call, but if you say Y to "/proc
1721da177e4SLinus Torvalds	  file system support", a tree of modifiable sysctl entries will be
1731da177e4SLinus Torvalds	  generated beneath the /proc/sys directory. They are explained in the
1741da177e4SLinus Torvalds	  files in <file:Documentation/sysctl/>.  Note that enabling this
1751da177e4SLinus Torvalds	  option will enlarge the kernel by at least 8 KB.
1761da177e4SLinus Torvalds
1771da177e4SLinus Torvalds	  As it is generally a good thing, you should say Y here unless
1781da177e4SLinus Torvalds	  building a kernel for install/rescue disks or your system is very
1791da177e4SLinus Torvalds	  limited in memory.
1801da177e4SLinus Torvalds
1811da177e4SLinus Torvaldsconfig AUDIT
1821da177e4SLinus Torvalds	bool "Auditing support"
183804a6a49SChris Wright	depends on NET
1841da177e4SLinus Torvalds	default y if SECURITY_SELINUX
1851da177e4SLinus Torvalds	help
1861da177e4SLinus Torvalds	  Enable auditing infrastructure that can be used with another
1871da177e4SLinus Torvalds	  kernel subsystem, such as SELinux (which requires this for
1881da177e4SLinus Torvalds	  logging of avc messages output).  Does not do system-call
1891da177e4SLinus Torvalds	  auditing without CONFIG_AUDITSYSCALL.
1901da177e4SLinus Torvalds
1911da177e4SLinus Torvaldsconfig AUDITSYSCALL
1921da177e4SLinus Torvalds	bool "Enable system-call auditing support"
193f7ceba36SDavid S. Miller	depends on AUDIT && (X86 || PPC || PPC64 || ARCH_S390 || IA64 || UML || SPARC64)
1941da177e4SLinus Torvalds	default y if SECURITY_SELINUX
1951da177e4SLinus Torvalds	help
1961da177e4SLinus Torvalds	  Enable low-overhead system-call auditing infrastructure that
1971da177e4SLinus Torvalds	  can be used independently or with another kernel subsystem,
1981da177e4SLinus Torvalds	  such as SELinux.
1991da177e4SLinus Torvalds
2001da177e4SLinus Torvaldsconfig IKCONFIG
2011da177e4SLinus Torvalds	bool "Kernel .config support"
2021da177e4SLinus Torvalds	---help---
2031da177e4SLinus Torvalds	  This option enables the complete Linux kernel ".config" file
2041da177e4SLinus Torvalds	  contents to be saved in the kernel. It provides documentation
2051da177e4SLinus Torvalds	  of which kernel options are used in a running kernel or in an
2061da177e4SLinus Torvalds	  on-disk kernel.  This information can be extracted from the kernel
2071da177e4SLinus Torvalds	  image file with the script scripts/extract-ikconfig and used as
2081da177e4SLinus Torvalds	  input to rebuild the current kernel or to build another kernel.
2091da177e4SLinus Torvalds	  It can also be extracted from a running kernel by reading
2101da177e4SLinus Torvalds	  /proc/config.gz if enabled (below).
2111da177e4SLinus Torvalds
2121da177e4SLinus Torvaldsconfig IKCONFIG_PROC
2131da177e4SLinus Torvalds	bool "Enable access to .config through /proc/config.gz"
2141da177e4SLinus Torvalds	depends on IKCONFIG && PROC_FS
2151da177e4SLinus Torvalds	---help---
2161da177e4SLinus Torvalds	  This option enables access to the kernel configuration file
2171da177e4SLinus Torvalds	  through /proc/config.gz.
2181da177e4SLinus Torvalds
2191da177e4SLinus Torvaldsconfig CPUSETS
2201da177e4SLinus Torvalds	bool "Cpuset support"
2211da177e4SLinus Torvalds	depends on SMP
2221da177e4SLinus Torvalds	help
223d9fd8a6dSRandy Dunlap	  This option will let you create and manage CPUSETs which
2241da177e4SLinus Torvalds	  allow dynamically partitioning a system into sets of CPUs and
2251da177e4SLinus Torvalds	  Memory Nodes and assigning tasks to run only within those sets.
2261da177e4SLinus Torvalds	  This is primarily useful on large SMP or NUMA systems.
2271da177e4SLinus Torvalds
2281da177e4SLinus Torvalds	  Say N if unsure.
2291da177e4SLinus Torvalds
230dbec4866SSam Ravnborgsource "usr/Kconfig"
231dbec4866SSam Ravnborg
232c45b4f1fSLinus Torvaldsconfig CC_OPTIMIZE_FOR_SIZE
233c45b4f1fSLinus Torvalds	bool "Optimize for size (Look out for broken compilers!)"
234c45b4f1fSLinus Torvalds	default y
235c45b4f1fSLinus Torvalds	depends on ARM || H8300 || EXPERIMENTAL
236c45b4f1fSLinus Torvalds	help
237c45b4f1fSLinus Torvalds	  Enabling this option will pass "-Os" instead of "-O2" to gcc
238c45b4f1fSLinus Torvalds	  resulting in a smaller kernel.
239c45b4f1fSLinus Torvalds
240c45b4f1fSLinus Torvalds	  WARNING: some versions of gcc may generate incorrect code with this
241c45b4f1fSLinus Torvalds	  option.  If problems are observed, a gcc upgrade may be needed.
242c45b4f1fSLinus Torvalds
243c45b4f1fSLinus Torvalds	  If unsure, say N.
244c45b4f1fSLinus Torvalds
2451da177e4SLinus Torvaldsmenuconfig EMBEDDED
2461da177e4SLinus Torvalds	bool "Configure standard kernel features (for small systems)"
2471da177e4SLinus Torvalds	help
2481da177e4SLinus Torvalds	  This option allows certain base kernel options and settings
2491da177e4SLinus Torvalds          to be disabled or tweaked. This is for specialized
2501da177e4SLinus Torvalds          environments which can tolerate a "non-standard" kernel.
2511da177e4SLinus Torvalds          Only use this if you really know what you are doing.
2521da177e4SLinus Torvalds
2531da177e4SLinus Torvaldsconfig KALLSYMS
2541da177e4SLinus Torvalds	 bool "Load all symbols for debugging/kksymoops" if EMBEDDED
2551da177e4SLinus Torvalds	 default y
2561da177e4SLinus Torvalds	 help
2571da177e4SLinus Torvalds	   Say Y here to let the kernel print out symbolic crash information and
2581da177e4SLinus Torvalds	   symbolic stack backtraces. This increases the size of the kernel
2591da177e4SLinus Torvalds	   somewhat, as all symbols have to be loaded into the kernel image.
2601da177e4SLinus Torvalds
2611da177e4SLinus Torvaldsconfig KALLSYMS_ALL
2621da177e4SLinus Torvalds	bool "Include all symbols in kallsyms"
2631da177e4SLinus Torvalds	depends on DEBUG_KERNEL && KALLSYMS
2641da177e4SLinus Torvalds	help
2651da177e4SLinus Torvalds	   Normally kallsyms only contains the symbols of functions, for nicer
2661da177e4SLinus Torvalds	   OOPS messages.  Some debuggers can use kallsyms for other
267f9f97bc0SJesper Juhl	   symbols too: say Y here to include all symbols, if you need them
268f9f97bc0SJesper Juhl	   and you don't care about adding 300k to the size of your kernel.
2691da177e4SLinus Torvalds
2701da177e4SLinus Torvalds	   Say N.
2711da177e4SLinus Torvalds
2721da177e4SLinus Torvaldsconfig KALLSYMS_EXTRA_PASS
2731da177e4SLinus Torvalds	bool "Do an extra kallsyms pass"
2741da177e4SLinus Torvalds	depends on KALLSYMS
2751da177e4SLinus Torvalds	help
2761da177e4SLinus Torvalds	   If kallsyms is not working correctly, the build will fail with
2771da177e4SLinus Torvalds	   inconsistent kallsyms data.  If that occurs, log a bug report and
2781da177e4SLinus Torvalds	   turn on KALLSYMS_EXTRA_PASS which should result in a stable build.
2791da177e4SLinus Torvalds	   Always say N here unless you find a bug in kallsyms, which must be
2801da177e4SLinus Torvalds	   reported.  KALLSYMS_EXTRA_PASS is only a temporary workaround while
2811da177e4SLinus Torvalds	   you wait for kallsyms to be fixed.
2821da177e4SLinus Torvalds
283d59745ceSMatt Mackall
284*712f47ceSGreg Kroah-Hartmanconfig HOTPLUG
285*712f47ceSGreg Kroah-Hartman	bool "Support for hot-pluggable devices" if EMBEDDED
286*712f47ceSGreg Kroah-Hartman	default y
287*712f47ceSGreg Kroah-Hartman	help
288*712f47ceSGreg Kroah-Hartman	  This option is provided for the case where no hotplug or uevent
289*712f47ceSGreg Kroah-Hartman	  capabilities is wanted by the kernel.  You should only consider
290*712f47ceSGreg Kroah-Hartman	  disabling this option for embedded systems that do not use modules, a
291*712f47ceSGreg Kroah-Hartman	  dynamic /dev tree, or dynamic device discovery.  Just say Y.
292*712f47ceSGreg Kroah-Hartman
293d59745ceSMatt Mackallconfig PRINTK
294d59745ceSMatt Mackall	default y
295d59745ceSMatt Mackall	bool "Enable support for printk" if EMBEDDED
296d59745ceSMatt Mackall	help
297d59745ceSMatt Mackall	  This option enables normal printk support. Removing it
298d59745ceSMatt Mackall	  eliminates most of the message strings from the kernel image
299d59745ceSMatt Mackall	  and makes the kernel more or less silent. As this makes it
300d59745ceSMatt Mackall	  very difficult to diagnose system problems, saying N here is
301d59745ceSMatt Mackall	  strongly discouraged.
302d59745ceSMatt Mackall
303c8538a7aSMatt Mackallconfig BUG
304c8538a7aSMatt Mackall	bool "BUG() support" if EMBEDDED
305c8538a7aSMatt Mackall	default y
306c8538a7aSMatt Mackall	help
307c8538a7aSMatt Mackall          Disabling this option eliminates support for BUG and WARN, reducing
308c8538a7aSMatt Mackall          the size of your kernel image and potentially quietly ignoring
309c8538a7aSMatt Mackall          numerous fatal conditions. You should only consider disabling this
310c8538a7aSMatt Mackall          option for embedded systems with no facilities for reporting errors.
311c8538a7aSMatt Mackall          Just say Y.
312c8538a7aSMatt Mackall
3131da177e4SLinus Torvaldsconfig BASE_FULL
3141da177e4SLinus Torvalds	default y
3151da177e4SLinus Torvalds	bool "Enable full-sized data structures for core" if EMBEDDED
3161da177e4SLinus Torvalds	help
3171da177e4SLinus Torvalds	  Disabling this option reduces the size of miscellaneous core
3181da177e4SLinus Torvalds	  kernel data structures. This saves memory on small machines,
3191da177e4SLinus Torvalds	  but may reduce performance.
3201da177e4SLinus Torvalds
3211da177e4SLinus Torvaldsconfig FUTEX
3221da177e4SLinus Torvalds	bool "Enable futex support" if EMBEDDED
3231da177e4SLinus Torvalds	default y
3241da177e4SLinus Torvalds	help
3251da177e4SLinus Torvalds	  Disabling this option will cause the kernel to be built without
3261da177e4SLinus Torvalds	  support for "fast userspace mutexes".  The resulting kernel may not
3271da177e4SLinus Torvalds	  run glibc-based applications correctly.
3281da177e4SLinus Torvalds
3291da177e4SLinus Torvaldsconfig EPOLL
3301da177e4SLinus Torvalds	bool "Enable eventpoll support" if EMBEDDED
3311da177e4SLinus Torvalds	default y
3321da177e4SLinus Torvalds	help
3331da177e4SLinus Torvalds	  Disabling this option will cause the kernel to be built without
3341da177e4SLinus Torvalds	  support for epoll family of system calls.
3351da177e4SLinus Torvalds
3361da177e4SLinus Torvaldsconfig SHMEM
3371da177e4SLinus Torvalds	bool "Use full shmem filesystem" if EMBEDDED
3381da177e4SLinus Torvalds	default y
3391da177e4SLinus Torvalds	depends on MMU
3401da177e4SLinus Torvalds	help
3411da177e4SLinus Torvalds	  The shmem is an internal filesystem used to manage shared memory.
3421da177e4SLinus Torvalds	  It is backed by swap and manages resource limits. It is also exported
3431da177e4SLinus Torvalds	  to userspace as tmpfs if TMPFS is enabled. Disabling this
3441da177e4SLinus Torvalds	  option replaces shmem and tmpfs with the much simpler ramfs code,
3451da177e4SLinus Torvalds	  which may be appropriate on small systems without swap.
3461da177e4SLinus Torvalds
3471da177e4SLinus Torvaldsconfig CC_ALIGN_FUNCTIONS
3481da177e4SLinus Torvalds	int "Function alignment" if EMBEDDED
3491da177e4SLinus Torvalds	default 0
3501da177e4SLinus Torvalds	help
3511da177e4SLinus Torvalds	  Align the start of functions to the next power-of-two greater than n,
3521da177e4SLinus Torvalds	  skipping up to n bytes.  For instance, 32 aligns functions
3531da177e4SLinus Torvalds	  to the next 32-byte boundary, but 24 would align to the next
3541da177e4SLinus Torvalds	  32-byte boundary only if this can be done by skipping 23 bytes or less.
3551da177e4SLinus Torvalds	  Zero means use compiler's default.
3561da177e4SLinus Torvalds
3571da177e4SLinus Torvaldsconfig CC_ALIGN_LABELS
3581da177e4SLinus Torvalds	int "Label alignment" if EMBEDDED
3591da177e4SLinus Torvalds	default 0
3601da177e4SLinus Torvalds	help
3611da177e4SLinus Torvalds	  Align all branch targets to a power-of-two boundary, skipping
3621da177e4SLinus Torvalds	  up to n bytes like ALIGN_FUNCTIONS.  This option can easily
3631da177e4SLinus Torvalds	  make code slower, because it must insert dummy operations for
3641da177e4SLinus Torvalds	  when the branch target is reached in the usual flow of the code.
3651da177e4SLinus Torvalds	  Zero means use compiler's default.
3661da177e4SLinus Torvalds
3671da177e4SLinus Torvaldsconfig CC_ALIGN_LOOPS
3681da177e4SLinus Torvalds	int "Loop alignment" if EMBEDDED
3691da177e4SLinus Torvalds	default 0
3701da177e4SLinus Torvalds	help
3711da177e4SLinus Torvalds	  Align loops to a power-of-two boundary, skipping up to n bytes.
3721da177e4SLinus Torvalds	  Zero means use compiler's default.
3731da177e4SLinus Torvalds
3741da177e4SLinus Torvaldsconfig CC_ALIGN_JUMPS
3751da177e4SLinus Torvalds	int "Jump alignment" if EMBEDDED
3761da177e4SLinus Torvalds	default 0
3771da177e4SLinus Torvalds	help
3781da177e4SLinus Torvalds	  Align branch targets to a power-of-two boundary, for branch
3791da177e4SLinus Torvalds	  targets where the targets can only be reached by jumping,
3801da177e4SLinus Torvalds	  skipping up to n bytes like ALIGN_FUNCTIONS.  In this case,
3811da177e4SLinus Torvalds	  no dummy operations need be executed.
3821da177e4SLinus Torvalds	  Zero means use compiler's default.
3831da177e4SLinus Torvalds
3841da177e4SLinus Torvaldsendmenu		# General setup
3851da177e4SLinus Torvalds
3861da177e4SLinus Torvaldsconfig TINY_SHMEM
3871da177e4SLinus Torvalds	default !SHMEM
3881da177e4SLinus Torvalds	bool
3891da177e4SLinus Torvalds
3901da177e4SLinus Torvaldsconfig BASE_SMALL
3911da177e4SLinus Torvalds	int
3921da177e4SLinus Torvalds	default 0 if BASE_FULL
3931da177e4SLinus Torvalds	default 1 if !BASE_FULL
3941da177e4SLinus Torvalds
3951da177e4SLinus Torvaldsmenu "Loadable module support"
3961da177e4SLinus Torvalds
3971da177e4SLinus Torvaldsconfig MODULES
3981da177e4SLinus Torvalds	bool "Enable loadable module support"
3991da177e4SLinus Torvalds	help
4001da177e4SLinus Torvalds	  Kernel modules are small pieces of compiled code which can
4011da177e4SLinus Torvalds	  be inserted in the running kernel, rather than being
4021da177e4SLinus Torvalds	  permanently built into the kernel.  You use the "modprobe"
4031da177e4SLinus Torvalds	  tool to add (and sometimes remove) them.  If you say Y here,
4041da177e4SLinus Torvalds	  many parts of the kernel can be built as modules (by
4051da177e4SLinus Torvalds	  answering M instead of Y where indicated): this is most
4061da177e4SLinus Torvalds	  useful for infrequently used options which are not required
4071da177e4SLinus Torvalds	  for booting.  For more information, see the man pages for
4081da177e4SLinus Torvalds	  modprobe, lsmod, modinfo, insmod and rmmod.
4091da177e4SLinus Torvalds
4101da177e4SLinus Torvalds	  If you say Y here, you will need to run "make
4111da177e4SLinus Torvalds	  modules_install" to put the modules under /lib/modules/
4121da177e4SLinus Torvalds	  where modprobe can find them (you may need to be root to do
4131da177e4SLinus Torvalds	  this).
4141da177e4SLinus Torvalds
4151da177e4SLinus Torvalds	  If unsure, say Y.
4161da177e4SLinus Torvalds
4171da177e4SLinus Torvaldsconfig MODULE_UNLOAD
4181da177e4SLinus Torvalds	bool "Module unloading"
4191da177e4SLinus Torvalds	depends on MODULES
4201da177e4SLinus Torvalds	help
4211da177e4SLinus Torvalds	  Without this option you will not be able to unload any
4221da177e4SLinus Torvalds	  modules (note that some modules may not be unloadable
4231da177e4SLinus Torvalds	  anyway), which makes your kernel slightly smaller and
4241da177e4SLinus Torvalds	  simpler.  If unsure, say Y.
4251da177e4SLinus Torvalds
4261da177e4SLinus Torvaldsconfig MODULE_FORCE_UNLOAD
4271da177e4SLinus Torvalds	bool "Forced module unloading"
4281da177e4SLinus Torvalds	depends on MODULE_UNLOAD && EXPERIMENTAL
4291da177e4SLinus Torvalds	help
4301da177e4SLinus Torvalds	  This option allows you to force a module to unload, even if the
4311da177e4SLinus Torvalds	  kernel believes it is unsafe: the kernel will remove the module
4321da177e4SLinus Torvalds	  without waiting for anyone to stop using it (using the -f option to
4331da177e4SLinus Torvalds	  rmmod).  This is mainly for kernel developers and desperate users.
4341da177e4SLinus Torvalds	  If unsure, say N.
4351da177e4SLinus Torvalds
4361da177e4SLinus Torvaldsconfig OBSOLETE_MODPARM
4371da177e4SLinus Torvalds	bool
4381da177e4SLinus Torvalds	default y
4391da177e4SLinus Torvalds	depends on MODULES
4401da177e4SLinus Torvalds	help
4411da177e4SLinus Torvalds	  You need this option to use module parameters on modules which
4421da177e4SLinus Torvalds	  have not been converted to the new module parameter system yet.
4431da177e4SLinus Torvalds	  If unsure, say Y.
4441da177e4SLinus Torvalds
4451da177e4SLinus Torvaldsconfig MODVERSIONS
4461da177e4SLinus Torvalds	bool "Module versioning support (EXPERIMENTAL)"
44734a1a63eSPaolo 'Blaisorblade' Giarrusso	depends on MODULES && EXPERIMENTAL
4481da177e4SLinus Torvalds	help
4491da177e4SLinus Torvalds	  Usually, you have to use modules compiled with your kernel.
4501da177e4SLinus Torvalds	  Saying Y here makes it sometimes possible to use modules
4511da177e4SLinus Torvalds	  compiled for different kernels, by adding enough information
4521da177e4SLinus Torvalds	  to the modules to (hopefully) spot any changes which would
4531da177e4SLinus Torvalds	  make them incompatible with the kernel you are running.  If
4541da177e4SLinus Torvalds	  unsure, say N.
4551da177e4SLinus Torvalds
4561da177e4SLinus Torvaldsconfig MODULE_SRCVERSION_ALL
4571da177e4SLinus Torvalds	bool "Source checksum for all modules"
4581da177e4SLinus Torvalds	depends on MODULES
4591da177e4SLinus Torvalds	help
4601da177e4SLinus Torvalds	  Modules which contain a MODULE_VERSION get an extra "srcversion"
4611da177e4SLinus Torvalds	  field inserted into their modinfo section, which contains a
4621da177e4SLinus Torvalds    	  sum of the source files which made it.  This helps maintainers
4631da177e4SLinus Torvalds	  see exactly which source was used to build a module (since
4641da177e4SLinus Torvalds	  others sometimes change the module source without updating
4651da177e4SLinus Torvalds	  the version).  With this option, such a "srcversion" field
4661da177e4SLinus Torvalds	  will be created for all modules.  If unsure, say N.
4671da177e4SLinus Torvalds
4681da177e4SLinus Torvaldsconfig KMOD
4691da177e4SLinus Torvalds	bool "Automatic kernel module loading"
4701da177e4SLinus Torvalds	depends on MODULES
4711da177e4SLinus Torvalds	help
4721da177e4SLinus Torvalds	  Normally when you have selected some parts of the kernel to
4731da177e4SLinus Torvalds	  be created as kernel modules, you must load them (using the
4741da177e4SLinus Torvalds	  "modprobe" command) before you can use them. If you say Y
4751da177e4SLinus Torvalds	  here, some parts of the kernel will be able to load modules
4761da177e4SLinus Torvalds	  automatically: when a part of the kernel needs a module, it
4771da177e4SLinus Torvalds	  runs modprobe with the appropriate arguments, thereby
4781da177e4SLinus Torvalds	  loading the module if it is available.  If unsure, say Y.
4791da177e4SLinus Torvalds
4801da177e4SLinus Torvaldsconfig STOP_MACHINE
4811da177e4SLinus Torvalds	bool
4821da177e4SLinus Torvalds	default y
4831da177e4SLinus Torvalds	depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
4841da177e4SLinus Torvalds	help
4851da177e4SLinus Torvalds	  Need stop_machine() primitive.
4861da177e4SLinus Torvaldsendmenu
4873a65dfe8SJens Axboe
4883a65dfe8SJens Axboemenu "Block layer"
4893a65dfe8SJens Axboesource "block/Kconfig"
4903a65dfe8SJens Axboeendmenu
491